tab/db/migrate/20170109150245_create_notifications.rb
2017-01-09 16:22:58 +01:00

11 lines
270 B
Ruby

class CreateNotifications < ActiveRecord::Migration
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