If you are running Rails Edge from github, you can now get Super Sexy Migrations, like this:
1 2 3 4 5 6 |
change_table :videos do |t| t.timestamps t.belongs_to :goat t.string :name, :email, :limit => 20 t.remove :name, :email # => that's right - remove finally takes an array! end |
Check out the railscast video for more details.
Uhm, 404 on the wiki link.
Thanks for pointing that out – I’ve updated the link to point to the new railscast video that describes the change.