The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

15 satır
419 B

  1. class RemoveOldReblogIndexOnStatuses < ActiveRecord::Migration[5.1]
  2. disable_ddl_transaction!
  3. def up
  4. # This index may not exists (see migration 20171122120436)
  5. remove_index :statuses, [:account_id, :reblog_of_id] if index_exists?(:statuses, [:account_id, :reblog_of_id])
  6. remove_index :statuses, :reblog_of_id
  7. end
  8. def down
  9. add_index :statuses, :reblog_of_id, algorithm: :concurrently
  10. end
  11. end