OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20210802114054_add_notifica...

20 lines
899 B

class AddNotificationSettingOptions < ActiveRecord::Migration[6.1]
def change
add_notification_settings_options
end
def add_notification_settings_options
change_table :notification_settings, bulk: true do |t|
# Adding indices here is probably useful as most of those are expected to be false
# and we are searching for those that are true.
# The columns watched, involved and mentioned will probably be true most of the time
# so having an index there should not improve speed.
t.boolean :work_package_commented, default: false, index: true
t.boolean :work_package_created, default: false, index: true
t.boolean :work_package_processed, default: false, index: true
t.boolean :work_package_prioritized, default: false, index: true
t.boolean :work_package_scheduled, default: false, index: true
t.index :all
end
end
end