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

20200210135504_remove_packages_deprecated_dependencies.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 476b3de659acd0134e8c07dee508a14ea3240546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class RemovePackagesDeprecatedDependencies < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    execute('DELETE FROM packages_dependency_links WHERE dependency_type = 5')
  end

  def down
    # There is nothing to do to reverse this migration
  end
end