parsley/db/migrate/20160113002615_create_recipe_steps.rb

13 lines
244 B
Ruby
Raw Normal View History

2016-10-14 12:19:00 -05:00
class CreateRecipeSteps < ActiveRecord::Migration[4.2]
2016-01-12 18:43:00 -06:00
def change
create_table :recipe_steps do |t|
t.integer :recipe_id, index: true
2016-01-13 17:10:43 -06:00
t.integer :sort_order
2016-01-12 18:43:00 -06:00
t.text :step
t.timestamps null: false
end
end
end