Class: CreateItems

Inherits:
Object
  • Object
show all
Defined in:
lib/db/migrate/20160912172429_create_items.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/db/migrate/20160912172429_create_items.rb', line 2

def change
  create_table :items do |t|
    t.string :body
    t.boolean :done
    t.timestamps null: false
  end
end