gitlab-org--gitlab-foss/db/fixtures/development/02_application_settings.rb
Rémy Coutable 22c1c9805b
Fix ApplicationSetting development seed
It could happen that there's a cached (in Redis) ApplicationSetting
record, and calling
`Gitlab::CurrentSettings.current_application_settings` only returns it
instead of creating a new DB record, which makes the
`ApplicationSetting.current_without_cache.update!` call fail.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-10 15:56:46 +02:00

10 lines
361 B
Ruby

# frozen_string_literal: true
puts "Creating the default ApplicationSetting record.".color(:green)
ApplicationSetting.create_from_defaults
# Details https://gitlab.com/gitlab-org/gitlab-ce/issues/46241
puts "Enable hashed storage for every new projects.".color(:green)
ApplicationSetting.current_without_cache.update!(hashed_storage_enabled: true)
print '.'