scinote-web/db/migrate/20160928114915_create_user_notifications.rb
2016-09-29 14:49:58 +02:00

11 lines
326 B
Ruby

class CreateUserNotifications < ActiveRecord::Migration
def change
create_table :user_notifications do |t|
t.belongs_to :user, index: true, foreign_key: true
t.belongs_to :notification, index: true, foreign_key: true
t.boolean :checked, default: false
t.timestamps null: false
end
end
end