scinote-web/db/migrate/20160928114915_create_user_notifications.rb

12 lines
344 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateUserNotifications < ActiveRecord::Migration[4.2]
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, index: true
t.timestamps null: false
end
end
end