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

20170809161910_add_project_export_enabled_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: 9dd520de264900e694fa60c5e2df1ebf81e752ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class AddProjectExportEnabledToApplicationSettings < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  DOWNTIME = false

  def up
    add_column_with_default(:application_settings, :project_export_enabled, :boolean, default: true)
  end

  def down
    remove_column(:application_settings, :project_export_enabled)
  end
end