Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20191213120427_fix_max_pages_size.rb')
-rw-r--r--db/migrate/20191213120427_fix_max_pages_size.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20191213120427_fix_max_pages_size.rb b/db/migrate/20191213120427_fix_max_pages_size.rb
deleted file mode 100644
index 498ea91b773..00000000000
--- a/db/migrate/20191213120427_fix_max_pages_size.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class FixMaxPagesSize < ActiveRecord::Migration[5.2]
- DOWNTIME = false
- MAX_SIZE = 1.terabyte / 1.megabyte
-
- class ApplicationSetting < ActiveRecord::Base
- self.table_name = 'application_settings'
- self.inheritance_column = :_type_disabled
- end
-
- def up
- table = ApplicationSetting.arel_table
- ApplicationSetting.where(table[:max_pages_size].gt(MAX_SIZE)).update_all(max_pages_size: MAX_SIZE)
- end
-
- def down
- # no-op
- end
-end