mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
14 lines
491 B
Ruby
14 lines
491 B
Ruby
class AddEmailNotificationSettingsToUser < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :users, :assignments_notification_email, :boolean, default: false
|
|
add_column :users, :recent_notification_email, :boolean, default: false
|
|
|
|
User.update_all(assignments_notification_email: false,
|
|
recent_notification_email: false)
|
|
end
|
|
|
|
def down
|
|
remove_column :users, :assignments_notification_email
|
|
remove_column :users, :recent_notification_email
|
|
end
|
|
end
|