11 lines
217 B
Ruby
11 lines
217 B
Ruby
|
class CreateNotes < ActiveRecord::Migration[5.0]
|
||
|
def change
|
||
|
create_table :notes do |t|
|
||
|
t.integer :user_id, null: false, index: true
|
||
|
t.text :content, null: false
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|