summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-12-18 13:32:58 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-12-18 13:32:58 +0000
commita8794c42255b65147f3bd07f5ca632ec930f0793 (patch)
treebf87e947f63763d5a70c6e43b44bc5c881d10553 /db
parentda54f81bc0038cb06c208a9b7c00a6ca3d4c4900 (diff)
parent61b14a202653dad90e8f491171561b2772b73003 (diff)
downloadgitlab-ce-a8794c42255b65147f3bd07f5ca632ec930f0793.tar.gz
Merge branch '54719-enable-hashed-storage-by-default-in-development-mode' into 'master'
Resolve "Enable Hashed Storage by default in development mode" Closes #54719 See merge request gitlab-org/gitlab-ce!23889
Diffstat (limited to 'db')
-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