The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

12 rader
371 B

  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