tab/db/migrate/20170109150245_create_notifications.rb

12 lines
275 B
Ruby
Raw Normal View History

2018-06-20 16:02:33 +00:00
class CreateNotifications < ActiveRecord::Migration[5.0]
2017-01-09 15:22:58 +00:00
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