18 lines
343 B
Ruby
18 lines
343 B
Ruby
![]() |
class CreateRecipeIngredients < ActiveRecord::Migration
|
||
|
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
|
||
|
|
||
|
t.string :quantity
|
||
|
t.string :units
|
||
|
|
||
|
t.timestamps null: false
|
||
|
end
|
||
|
end
|
||
|
end
|