summaryrefslogtreecommitdiff
path: root/db/fixtures/development/08_settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/08_settings.rb')
-rw-r--r--db/fixtures/development/08_settings.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/fixtures/development/08_settings.rb b/db/fixtures/development/08_settings.rb
new file mode 100644
index 00000000000..141465c06cf
--- /dev/null
+++ b/db/fixtures/development/08_settings.rb
@@ -0,0 +1,7 @@
+# We want to enable hashed storage for every new project in development
+# Details https://gitlab.com/gitlab-org/gitlab-ce/issues/46241
+Gitlab::Seeder.quiet do
+ ApplicationSetting.create_from_defaults unless ApplicationSetting.current_without_cache
+ ApplicationSetting.current_without_cache.update!(hashed_storage_enabled: true)
+ print '.'
+end