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/20210701073944_add_digest_s...

21 lines
468 B

class AddDigestSetting < ActiveRecord::Migration[6.1]
def up
# No-op
end
def down
remove_digest_channels
end
# Removes all digest channels. Includes non default channels as those might
# also have been added not by the migration but in the cause of the functionality
# the migration was added for.
def remove_digest_channels
execute <<~SQL
DELETE FROM
notification_settings
WHERE
channel = 2
SQL
end
end