debian-mirror-gitlab/db/migrate/20180815175440_add_index_on_list_type.rb
2018-11-20 20:47:30 +05:30

17 lines
303 B
Ruby

# frozen_string_literal: true
class AddIndexOnListType < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :lists, :list_type
end
def down
remove_concurrent_index :lists, :list_type
end
end