The code powering m.abunchtell.com https://m.abunchtell.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20170507141759_optimize_index_subscriptions.rb 371 B

1234567891011
  1. class OptimizeIndexSubscriptions < ActiveRecord::Migration[5.0]
  2. def up
  3. add_index :subscriptions, [:account_id, :callback_url], unique: true
  4. remove_index :subscriptions, [:callback_url, :account_id]
  5. end
  6. def down
  7. add_index :subscriptions, [:callback_url, :account_id], unique: true
  8. remove_index :subscriptions, [:account_id, :callback_url]
  9. end
  10. end