summaryrefslogtreecommitdiff
path: root/db/migrate/20201217111448_change_pages_deployment_size_to_bigint.rb
blob: 75420166b87ab1021949e4368c6e7230e287aa2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class ChangePagesDeploymentSizeToBigint < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    change_column_type_concurrently :pages_deployments, :size, :bigint
  end

  def down
    undo_change_column_type_concurrently :pages_deployments, :size
  end
end