about summary refs log tree commit diff
path: root/db/migrate/20171122120436_add_index_account_and_reblog_of_id_to_statuses.rb
blob: a02ffe09d6a72e0875e432ce77483da80218a63c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class AddIndexAccountAndReblogOfIdToStatuses < ActiveRecord::Migration[5.2]
  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