Rails 3.1 reversible migrations and change_table

18 views
Skip to first unread message

Szymon Nowak

unread,
Aug 19, 2011, 8:36:32 AM8/19/11
to rubyonra...@googlegroups.com
Hi,

is the following migration really supposed to be irreversible?

class AddColumnsToUsers < ActiveRecord::Migration
  def change
    change_table :users do |t|
      t.integer :foo
      t.integer :bar
    end
  end
end

I'm using Rails 3.1 RC6 and when trying to redo this migration I'm getting ActiveRecord::IrreversibleMigration error.

Cheers,
Szymon
Reply all
Reply to author
Forward
0 new messages