2016-10-14 12:19:00 -05:00
|
|
|
class AddIngredientUnits < ActiveRecord::Migration[4.2]
|
2016-07-05 16:31:36 -05:00
|
|
|
def change
|
|
|
|
create_table :ingredient_units do |t|
|
|
|
|
t.integer :ingredient_id, null: false, index: true
|
|
|
|
t.string :name, null: false
|
|
|
|
t.decimal :gram_weight, precision: 10, scale: 2, null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|