scinote-web/db/migrate/20150716062013_create_checklists.rb
2017-06-30 10:23:28 +02:00

11 lines
265 B
Ruby

class CreateChecklists < ActiveRecord::Migration[4.2]
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