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

20230116143310_add_pages_unique_domain_columns_to_project_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 53c4f429243e340df6cc349070d1451321b0137a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddPagesUniqueDomainColumnsToProjectSettings < Gitlab::Database::Migration[2.1]
  def up
    add_column :project_settings, :pages_unique_domain_enabled, :boolean, default: false, null: false
    add_column :project_settings, :pages_unique_domain, :text # rubocop: disable Migration/AddLimitToTextColumns
  end

  def down
    remove_column :project_settings, :pages_unique_domain_enabled, :boolean
    remove_column :project_settings, :pages_unique_domain, :text
  end
end