The code powering m.abunchtell.com https://m.abunchtell.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

12 wiersze
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