mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
12 lines
260 B
Ruby
12 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
|