diff options
author | Nick Thomas <nick@gitlab.com> | 2019-06-06 16:57:50 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-06 16:57:50 +0300 |
commit | 10dcfac1f17cffbbc542d47bdf27b682ab453dd2 (patch) | |
tree | 046df7d2929558adae980f2c362253bf499d0f46 /db/post_migrate | |
parent | 64c6987dfdcd5cb78b4a192a4632b227eabe801f (diff) |
Revert "Merge branch 'pages-domain_ssl-valid-period' into 'master'"
This reverts merge request !28743
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20190524073827_schedule_fill_valid_time_for_pages_domain_certificates.rb | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/db/post_migrate/20190524073827_schedule_fill_valid_time_for_pages_domain_certificates.rb b/db/post_migrate/20190524073827_schedule_fill_valid_time_for_pages_domain_certificates.rb deleted file mode 100644 index 1d8510e4514..00000000000 --- a/db/post_migrate/20190524073827_schedule_fill_valid_time_for_pages_domain_certificates.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# See http://doc.gitlab.com/ce/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - -class ScheduleFillValidTimeForPagesDomainCertificates < ActiveRecord::Migration[5.1] - include Gitlab::Database::MigrationHelpers - - MIGRATION = 'FillValidTimeForPagesDomainCertificate' - BATCH_SIZE = 500 - BATCH_TIME = 5.minutes - - # Set this constant to true if this migration requires downtime. - DOWNTIME = false - - disable_ddl_transaction! - - class PagesDomain < ActiveRecord::Base - include ::EachBatch - - self.table_name = 'pages_domains' - end - - def up - queue_background_migration_jobs_by_range_at_intervals( - PagesDomain.where.not(certificate: [nil, '']), - MIGRATION, - BATCH_TIME, - batch_size: BATCH_SIZE) - end - - def down - end -end |