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

20190322164830_add_auto_ssl_enabled_to_pages_domain.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e74a9535ddfb22cec496159d70a8324427c94491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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