parsley/db/migrate/20160705181132_add_ingredient_units.rb

10 lines
282 B
Ruby

class AddIngredientUnits < ActiveRecord::Migration
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