Checking in the migration helps.

This commit is contained in:
Raphael Sofaer 2011-02-12 22:41:30 -08:00
parent 753a113aa9
commit 8fabe0f402

View file

@ -0,0 +1,14 @@
class AddMoreIndicies < ActiveRecord::Migration
def self.up
#For making validates_uniqueness_of, :case_sensitive => false, fast
add_index :users, [:id, :username], :unique => true
add_index :users, [:id, :email], :unique => true
add_index :people, [:id, :diaspora_handle], :unique => true
#For the includes of photos in the stream
add_index :posts, [:id, :type]
end
def self.down
end
end