debian-mirror-gitlab/db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb
2021-02-22 17:27:13 +05:30

18 lines
401 B
Ruby

# 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