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

20180314100728_add_external_authorization_service_timeout_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: c3c6aa0ddf8333602f169e7479d1517ccd2d967d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class AddExternalAuthorizationServiceTimeoutToApplicationSettings < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    # We can use the regular `add_column` with a default since `application_settings`
    # is a small table.
    add_column :application_settings,
               :external_authorization_service_timeout,
               :float,
               default: 0.5
  end

  def down
    remove_column :application_settings, :external_authorization_service_timeout
  end
end