Class: CreateNotes
- Inherits:
-
Object
- Object
- CreateNotes
- Defined in:
- lib/db/migrate/20161003121448_create_notes.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. null: false end end |