Commit dcb23df2 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'pages-domain-letsencrypt-settings' into 'master'

Add auto_ssl_enabled to pages domains

See merge request gitlab-org/gitlab-ce!27304
parents a339e35d 75194ade
# 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
...@@ -1548,6 +1548,7 @@ ActiveRecord::Schema.define(version: 20190408163745) do ...@@ -1548,6 +1548,7 @@ ActiveRecord::Schema.define(version: 20190408163745) do
t.string "verification_code", null: false t.string "verification_code", null: false
t.datetime_with_timezone "enabled_until" t.datetime_with_timezone "enabled_until"
t.datetime_with_timezone "remove_at" t.datetime_with_timezone "remove_at"
t.boolean "auto_ssl_enabled", default: false, null: false
t.index ["domain"], name: "index_pages_domains_on_domain", unique: true, using: :btree t.index ["domain"], name: "index_pages_domains_on_domain", unique: true, using: :btree
t.index ["project_id", "enabled_until"], name: "index_pages_domains_on_project_id_and_enabled_until", using: :btree t.index ["project_id", "enabled_until"], name: "index_pages_domains_on_project_id_and_enabled_until", using: :btree
t.index ["project_id"], name: "index_pages_domains_on_project_id", using: :btree t.index ["project_id"], name: "index_pages_domains_on_project_id", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment