gitlab-org--gitlab-foss/db/post_migrate/20220202105733_delete_servi...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
331 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class DeleteServiceTemplateRecords < Gitlab::Database::Migration[1.0]
class Integration < ActiveRecord::Base
# Disable single-table inheritance
self.inheritance_column = :_type_disabled
end
def up
Integration.where(template: true).delete_all
end
def down
# no-op
end
end