gab-social/db/migrate/20200806231714_add_indexes_to_status_stats.rb

11 lines
392 B
Ruby
Raw Normal View History

class AddIndexesToStatusStats < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :status_stats, :updated_at, algorithm: :concurrently
add_index :status_stats, :replies_count, algorithm: :concurrently
add_index :status_stats, :reblogs_count, algorithm: :concurrently
add_index :status_stats, :favourites_count, algorithm: :concurrently
end
end