The code powering m.abunchtell.com https://m.abunchtell.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

14 řádky
396 B

  1. class MigrateWebPushSubscriptions < ActiveRecord::Migration[5.2]
  2. disable_ddl_transaction!
  3. def up
  4. add_index :web_push_subscriptions, :user_id, algorithm: :concurrently
  5. add_index :web_push_subscriptions, :access_token_id, algorithm: :concurrently
  6. end
  7. def down
  8. remove_index :web_push_subscriptions, :user_id
  9. remove_index :web_push_subscriptions, :access_token_id
  10. end
  11. end