summaryrefslogtreecommitdiff
path: root/db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb
blob: 4ed29ba61f964bd96314464504fffadb0696163a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    cleanup_concurrent_column_type_change :pages_deployments, :size
  end

  def down
    undo_cleanup_concurrent_column_type_change :pages_deployments, :size, :integer, limit: 4
  end
end