Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
Rails 3.1 reversible migrations and change_table
18 views
Skip to first unread message
Szymon Nowak
unread,
Aug 19, 2011, 8:36:32 AM
8/19/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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