Gab-Social/db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb

8 lines
207 B
Ruby
Raw Permalink Normal View History

2019-07-02 07:10:25 +00:00
class AddIndexReblogOfIdAndAccountToStatuses < ActiveRecord::Migration[5.1]
disable_ddl_transaction!
def change
add_index :statuses, [:reblog_of_id, :account_id], algorithm: :concurrently
end
end