cirandas.net

ref: master

db/migrate/20150712130827_index_user_id_on_profiles.rb


1
2
3
4
5
6
7
8
class IndexUserIdOnProfiles < ActiveRecord::Migration

  def change
    add_index :profiles, :user_id
    add_index :profiles, [:user_id, :type]
  end

end