summaryrefslogtreecommitdiff
path: root/db/migrate/20140304043652_add_index_to_users_email.rb
blob: 934d23be2c06df383bfc9a7351f3416d016811fa (plain)
1
2
3
4
5
6
7
8
class AddIndexToUsersEmail < ActiveRecord::Migration

# adding unique: true ensures there can be no duplicates
  def change
	add_index :users, :email, unique: true
  end

end