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

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

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:application_settings, :mirror_available, :boolean, default: true, allow_null: false) unless column_exists?(:application_settings, :mirror_available)
  end

  def down
    # ee/db/migrate/20171017125928_add_remote_mirror_available_to_application_settings.rb will remove the column.
  end
end