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

20180503141722_add_remote_mirror_available_overridden_to_projects.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa3d9a804ab31570c14657a1733e16405e8dd7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AddRemoteMirrorAvailableOverriddenToProjects < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column(:projects, :remote_mirror_available_overridden, :boolean) unless column_exists?(:projects, :remote_mirror_available_overridden) # rubocop:disable Migration/AddColumnsToWideTables
  end

  def down
    # ee/db/migrate/20171017130239_add_remote_mirror_available_overridden_to_projects_ee.rb will remove the column.
  end
end