summaryrefslogtreecommitdiff
path: root/db/post_migrate/20201102114018_remove_storage_size_limit_from_application_settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20201102114018_remove_storage_size_limit_from_application_settings.rb')
-rw-r--r--db/post_migrate/20201102114018_remove_storage_size_limit_from_application_settings.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/post_migrate/20201102114018_remove_storage_size_limit_from_application_settings.rb b/db/post_migrate/20201102114018_remove_storage_size_limit_from_application_settings.rb
new file mode 100644
index 00000000000..6646cf2ad0c
--- /dev/null
+++ b/db/post_migrate/20201102114018_remove_storage_size_limit_from_application_settings.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class RemoveStorageSizeLimitFromApplicationSettings < ActiveRecord::Migration[6.0]
+ DOWNTIME = false
+
+ def up
+ remove_column :application_settings, :namespace_storage_size_limit
+ end
+
+ def down
+ add_column :application_settings, :namespace_storage_size_limit, :bigint, default: 0
+ end
+end