This repository has been archived on 2023-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/db/migrate/20171122120436_add_index_ac...

13 lines
403 B
Ruby

class AddIndexAccountAndReblogOfIdToStatuses < ActiveRecord::Migration[5.1]
disable_ddl_transaction!
def up
# This index has been superseded by migration 20171125185353
# add_index :statuses, [:account_id, :reblog_of_id], algorithm: :concurrently
end
def down
remove_index :statuses, [:account_id, :reblog_of_id] if index_exists?(:statuses, [:account_id, :reblog_of_id])
end
end