13 lines
260 B
Ruby
13 lines
260 B
Ruby
|
class CreateReminders < ActiveRecord::Migration[6.0]
|
||
|
def change
|
||
|
create_table :reminders do |t|
|
||
|
t.string :title
|
||
|
t.text :body
|
||
|
t.datetime :date
|
||
|
t.references :user, null: false, foreign_key: true
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|