scinote-web/db/migrate/20150716062013_create_checklists.rb
2016-02-12 16:52:43 +01:00

11 lines
260 B
Ruby

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