diff options
Diffstat (limited to 'db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb')
-rw-r--r-- | db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb b/db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb new file mode 100644 index 00000000000..4c1f29f8e47 --- /dev/null +++ b/db/post_migrate/20200511130130_ensure_deprecated_jenkins_service_records_removal.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class EnsureDeprecatedJenkinsServiceRecordsRemoval < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + execute <<~SQL.strip + DELETE FROM services WHERE type = 'JenkinsDeprecatedService'; + SQL + end + + def down + # no-op + + # The records were removed by `up` + end +end |