Rails migration won't run, no error thrown

Posted by kouak on Stack Overflow See other posts from Stack Overflow or by kouak
Published on 2010-04-04T12:08:35Z Indexed on 2010/04/04 12:13 UTC
Read the original article Hit count: 272

Filed under:
|
|

Here's a simple migration I'd like to run :

class AddTimeOfRevisionToBrandWikis < ActiveRecord::Migration
  def self.up
    add_column :brand_wikis, :time_of_revision, :datetime
  end

  def self.down
    remove_column :brand_wikis, :time_of_revision
  end
end

Here's what I get when I try to run it :

$ rake db:migrate
(in /Users/kouak/Documents/workspace/wtb)
You have 1 pending migrations:
  20100404115341 AddTimeOfRevisionToBrandWikis
Run "rake db:migrate" to update your database then try again.

What's wrong with rake db:migrate ?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about migration