debian-mirror-gitlab/db/post_migrate/20220202105733_delete_service_template_records.rb
2023-03-04 22:38:38 +05:30

17 lines
332 B
Ruby

# 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