mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
11 lines
339 B
Ruby
11 lines
339 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, index: true
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|