mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
13 lines
334 B
Ruby
13 lines
334 B
Ruby
|
class CreateChecklistItems < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :checklist_items do |t|
|
||
|
t.string :text, null: false
|
||
|
t.boolean :checked, null: false, default: false
|
||
|
t.integer :checklist_id, null: false
|
||
|
|
||
|
t.timestamps null: false
|
||
|
end
|
||
|
add_index :checklist_items, :checklist_id
|
||
|
end
|
||
|
end
|