The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

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