Gab-Social/db/migrate/20200806162649_add_index_to_statuses_reply.rb
2020-12-12 16:46:53 -08:00

10 lines
221 B
Ruby

class AddIndexToStatusesReply < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
if !index_exists?(:statuses, :reply)
add_index :statuses, :reply, algorithm: :concurrently
end
end
end