summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2019-04-23 11:59:48 +0000
committerAndreas Brandl <abrandl@gitlab.com>2019-04-23 11:59:48 +0000
commitdcb23df2f0194ab264d57cdc0b7c8ff1cc9c0e99 (patch)
tree2ca2e5e437b281b34cfc921025879e0c22a66d3b /db/migrate
parenta339e35dbcddcd0a5e7fb419ac110b4dc68f4fb4 (diff)
parent75194adeee020aca9646963807e7c257b5b2105b (diff)
downloadgitlab-ce-dcb23df2f0194ab264d57cdc0b7c8ff1cc9c0e99.tar.gz
Merge branch 'pages-domain-letsencrypt-settings' into 'master'
Add auto_ssl_enabled to pages domains See merge request gitlab-org/gitlab-ce!27304
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190322164830_add_auto_ssl_enabled_to_pages_domain.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20190322164830_add_auto_ssl_enabled_to_pages_domain.rb b/db/migrate/20190322164830_add_auto_ssl_enabled_to_pages_domain.rb
new file mode 100644
index 00000000000..e74a9535ddf
--- /dev/null
+++ b/db/migrate/20190322164830_add_auto_ssl_enabled_to_pages_domain.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddAutoSslEnabledToPagesDomain < ActiveRecord::Migration[5.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default :pages_domains, :auto_ssl_enabled, :boolean, default: false
+ end
+
+ def down
+ remove_column :pages_domains, :auto_ssl_enabled
+ end
+end