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:
authorNick Thomas <nick@gitlab.com>2019-06-06 16:20:16 +0300
committerNick Thomas <nick@gitlab.com>2019-06-06 16:20:16 +0300
commita05f86cef14dc24df655705e1976c95ebf31fd1c (patch)
tree378f59649da7e96297eac454a56e80cd2dfb7096 /db/migrate
parent0a5020b494e88719fb8b8d6a5039b450a98081fb (diff)
parent3aab750d076774b2adef9493171f29ea3b4523d6 (diff)
Merge branch 'pages-domain_ssl-valid-period' into 'master'
Add certificate valid time to pages domain table See merge request gitlab-org/gitlab-ce!28743
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190524071727_add_ssl_valid_period_to_pages_domain.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20190524071727_add_ssl_valid_period_to_pages_domain.rb b/db/migrate/20190524071727_add_ssl_valid_period_to_pages_domain.rb
new file mode 100644
index 00000000000..18544dcb6d3
--- /dev/null
+++ b/db/migrate/20190524071727_add_ssl_valid_period_to_pages_domain.rb
@@ -0,0 +1,16 @@
+# 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 AddSslValidPeriodToPagesDomain < ActiveRecord::Migration[5.1]
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ add_column :pages_domains, :certificate_valid_not_before, :datetime_with_timezone
+ add_column :pages_domains, :certificate_valid_not_after, :datetime_with_timezone
+ end
+end