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

20200513171959_enable_hashed_storage.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 53e52b1caffa78574c2b44d82cfb08c33ed4895c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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

  class ApplicationSetting < ActiveRecord::Base
    self.table_name = 'application_settings'
  end

  def up
    ApplicationSetting.update_all(hashed_storage_enabled: true)
  end

  def down
    # in 13.0 we are forcing hashed storage to always be enabled for new projects
  end
end