Skip to content

Instantly share code, notes, and snippets.

@HusseinMorsy
Created October 18, 2009 15:41
Show Gist options
  • Save HusseinMorsy/212714 to your computer and use it in GitHub Desktop.
Save HusseinMorsy/212714 to your computer and use it in GitHub Desktop.
migration 1, :shoe do
up do
create_table :shoes do
column :id, Serial, :nullable? => false
column :brand, String,, :nullable? => false
column :price, Float,, :nullable? => false
column :available, Boolean, :nullable? => false
column :created_at, DateTime, :nullable? => false
column :updated_at, DateTime, :nullable? => false
end
end
down do
drop_table :shoes
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment