diff options
-rw-r--r-- | db/post_migrate/20190625184066_remove_sentry_from_application_settings.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20190625184066_remove_sentry_from_application_settings.rb b/db/post_migrate/20190625184066_remove_sentry_from_application_settings.rb index c9fee63ad23..427df343193 100644 --- a/db/post_migrate/20190625184066_remove_sentry_from_application_settings.rb +++ b/db/post_migrate/20190625184066_remove_sentry_from_application_settings.rb @@ -18,6 +18,8 @@ class RemoveSentryFromApplicationSettings < ActiveRecord::Migration[5.0] :clientside_sentry_dsn ].freeze + disable_ddl_transaction! + def up (SENTRY_ENABLED_COLUMNS + SENTRY_DSN_COLUMNS).each do |column| remove_column(:application_settings, column) if column_exists?(:application_settings, column) |