mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
13 lines
422 B
Ruby
13 lines
422 B
Ruby
class AddNotificationsSettingsToUser < ActiveRecord::Migration
|
|
def up
|
|
add_column :users, :assignments_notification, :boolean, default: true
|
|
add_column :users, :recent_notification, :boolean, default: true
|
|
|
|
User.update_all(assignments_notification: true, recent_notification: true)
|
|
end
|
|
|
|
def down
|
|
remove_column :users, :assignments_notification
|
|
remove_column :users, :recent_notification
|
|
end
|
|
end
|