scinote-web/db/migrate/20150716062110_create_checklist_items.rb

13 lines
339 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateChecklistItems < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
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