Sexy migrations on Edge Rails

In: Ruby|Ruby on Rails

7 May 2007

So it seems DHH was inspired by the Sexy Migrations plugin (which in turn was inspired by Hobo) and committed changeset 6667.

Now, you can do this:


create_table :products do |t| 
  t.integer :shop_id, :creator_id 
  t.string  :name, :value, :default => "Untitled"
  t.timestamps
end

Succinct!

2 Responses to Sexy migrations on Edge Rails

Avatar

links for 2007-05-07 | Urubatan`s Weblog

May 7th, 2007 at 6pm

[…] Sexy migrations on Edge Rails […]

Avatar

A Fresh Cup » Blog Archive » RailsConf Day 1 Report

December 31st, 2007 at 9am

[…] 6. Sexy migrations – A simpler syntax for migrations which is already in edge […]