mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 00:24:42 +08:00
11 lines
347 B
Ruby
11 lines
347 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
|
|
end
|
|
|
|
def down
|
|
remove_column :users, :assignments_notification
|
|
remove_column :users, :recent_notification
|
|
end
|
|
end
|