debian-mirror-gitlab/db/migrate/20190919162036_add_index_to_clusters_providers_gcp_on_cloud_run.rb
2019-12-21 20:55:43 +05:30

18 lines
365 B
Ruby

# frozen_string_literal: true
class AddIndexToClustersProvidersGcpOnCloudRun < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index(:cluster_providers_gcp, :cloud_run)
end
def down
remove_concurrent_index(:cluster_providers_gcp, :cloud_run)
end
end