You know those sexy migrations you’ve been lusting over? Yeah, well they’re mainstream now. I won’t unnecessarily duplicate here what’s already been written about them – but the gist is that a sexy migrations inspired syntax is now part of Rails.
You can now do:
1 2 3 4 5
create_table "users", :force => true do |t| t.integer :group_id, :employer_id t.string :first, :last t.timestamps end
integer columns in
string columns in
timestamps gets you the magic columns
The list of supported column types are:
So spin that Barry White record and lay it down right, sexy’s back.