mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
13 lines
427 B
Ruby
13 lines
427 B
Ruby
class AddNotificationsSettingsToUser < ActiveRecord::Migration[4.2]
|
|
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
|