initial commit
This commit is contained in:
14
whatforlunch.com/db/migrate/20140330100608_create_recipes.rb
Normal file
14
whatforlunch.com/db/migrate/20140330100608_create_recipes.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateRecipes < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :recipes do |t|
|
||||
t.string :name
|
||||
t.string :duration
|
||||
t.string :ingredients
|
||||
t.string :process
|
||||
t.string :picture_url
|
||||
t.string :original_url
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddOrdinalToRecipes < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :recipes, :ordinal, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user