tab/db/migrate/20170109150245_create_notifications.rb
2018-06-20 18:02:33 +02:00

12 lines
275 B
Ruby

class CreateNotifications < ActiveRecord::Migration[5.0]
def change
create_table :notifications do |t|
t.references :user, index: true, null: false
t.string :message
t.boolean :read, default: false
t.timestamps null: false
end
end
end