Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20220202105733_delete_service_template_records.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b70bacc83aa64b49144837b7a9cfc8e3fee75f8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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