2016-10-14 12:19:00 -05:00
|
|
|
class CreateRecipeIngredients < ActiveRecord::Migration[4.2]
|
2016-01-12 18:43:00 -06:00
|
|
|
def change
|
|
|
|
create_table :recipe_ingredients do |t|
|
|
|
|
|
|
|
|
t.integer :ingredient_id
|
|
|
|
t.integer :recipe_id, index: true
|
|
|
|
|
|
|
|
t.string :custom_name
|
|
|
|
t.string :custom_density
|
|
|
|
|
2016-01-13 17:10:43 -06:00
|
|
|
t.integer :sort_order
|
2016-01-12 18:43:00 -06:00
|
|
|
t.string :quantity
|
|
|
|
t.string :units
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|