Class: CreateNotes

Inherits:
Object
  • Object
show all
Defined in:
lib/db/migrate/20161003121448_create_notes.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :notes do |t|
    t.belongs_to :item
    t.text :body
    t.timestamps null: false
  end
end