New Rails Core Feature Proposal: Super Sexy Migrations

Posted by jeff

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.

Comments

Leave a response

  1. Paul GoscickiMay 05, 2008 @ 09:35 AM

    Uhm, 404 on the wiki link.

  2. Jeff DeanMay 20, 2008 @ 09:22 PM

    Thanks for pointing that out – I’ve updated the link to point to the new railscast video that describes the change.

Comment