If you are running Rails Edge from github, you can now get Super Sexy Migrations, like this:
1 2 3 4 5 6 7 8 |
change_table :videos do |t| t.add_timestamps t.add_belongs_to :goat t.add_string :name, :email, :limit => 20 t.remove_column :name, :email # => that's right - remove finally takes an array! t.rename t.string :some_string # => executes against the renamed table name! end |
Check out the github wiki for instructions. You can also freeze your app to this fork by executing:
1 |
git clone git://github.com/zilkey/rails.git vendor/rails |
Uhm, 404 on the wiki link.