Commit 19abaa73 authored by Peter Leitzen's avatar Peter Leitzen

Remove index before adding it

parent fd0dcf41
......@@ -12,7 +12,10 @@ class IndexUsersBotType < ActiveRecord::Migration[5.0]
end
def up
remove_concurrent_index :users, :bot_type
add_concurrent_index :users, :bot_type
remove_concurrent_index :users, :state, name: internal_index
add_concurrent_index :users, :state,
name: internal_index,
where: 'ghost <> true AND bot_type IS NULL'
......
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