You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
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