Commit 8874171f authored by Harrison Brock's avatar Harrison Brock

The variable INDEX_NAME was missing.

parent dc158130
......@@ -462,8 +462,9 @@ class MyMigration < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
INDEX_NAME = 'index_name'
def up
remove_concurrent_index :table_name, :column_name, name: :index_name
remove_concurrent_index :table_name, :column_name, name: INDEX_NAME
end
end
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment