scinote-web/db/migrate/20150716062013_create_checklists.rb

12 lines
265 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateChecklists < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
def change
create_table :checklists do |t|
t.string :name, null: false
t.integer :step_id, null: false
t.timestamps null: false
end
add_foreign_key :checklists, :steps
end
end