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

20200128184209_add_usage_to_pages_domains.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac6448140764f13fe8fc99bafe9586dbf39be991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class AddUsageToPagesDomains < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  PAGES_USAGE = 0

  disable_ddl_transaction!

  def up
    add_column_with_default :pages_domains, :usage, :integer, limit: 2, default: PAGES_USAGE, allow_null: false
  end

  def down
    remove_column :pages_domains, :usage
  end
end