diff options
Diffstat (limited to 'db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb')
-rw-r--r-- | db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb b/db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb new file mode 100644 index 00000000000..258142f950e --- /dev/null +++ b/db/migrate/20200511130129_remove_deprecated_jenkins_service_records.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class RemoveDeprecatedJenkinsServiceRecords < 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 |