diff options
Diffstat (limited to 'db/post_migrate/20200513171959_enable_hashed_storage.rb')
-rw-r--r-- | db/post_migrate/20200513171959_enable_hashed_storage.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20200513171959_enable_hashed_storage.rb b/db/post_migrate/20200513171959_enable_hashed_storage.rb new file mode 100644 index 00000000000..53e52b1caff --- /dev/null +++ b/db/post_migrate/20200513171959_enable_hashed_storage.rb @@ -0,0 +1,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 |