summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2018-12-17 20:19:13 +0100
committerGabriel Mazetto <brodock@gmail.com>2018-12-18 00:44:13 +0100
commit61b14a202653dad90e8f491171561b2772b73003 (patch)
tree92e0eb71553ea5194b0f92580c7dc34969f63cb2 /db/fixtures
parent37da7f2382fe1cfa226402b206086998a4484274 (diff)
downloadgitlab-ce-61b14a202653dad90e8f491171561b2772b73003.tar.gz
Enable Hashed Storage by default in development mode via seed_fu54719-enable-hashed-storage-by-default-in-development-mode
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/03_settings.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/fixtures/development/03_settings.rb b/db/fixtures/development/03_settings.rb
new file mode 100644
index 00000000000..3a4a5d436bf
--- /dev/null
+++ b/db/fixtures/development/03_settings.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+# Enable hashed storage, in development mode, for all projects by default.
+Gitlab::Seeder.quiet do
+ ApplicationSetting.create_from_defaults unless ApplicationSetting.current_without_cache
+ ApplicationSetting.current_without_cache.update!(hashed_storage_enabled: true)
+ print '.'
+end