您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20091017214336_add_missing_indexes_to_users.rb 272B

1234567891011
  1. class AddMissingIndexesToUsers < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_index :users, [:id, :type]
  4. add_index :users, :auth_source_id
  5. end
  6. def self.down
  7. remove_index :users, :column => [:id, :type]
  8. remove_index :users, :auth_source_id
  9. end
  10. end