Skip to content

Commit

Permalink
Merge branch 'modeling-users'
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Aug 26, 2010
2 parents 641eedf + 6c83498 commit bae3179
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20100822012431_add_email_uniqueness_index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddEmailUniquenessIndex < ActiveRecord::Migration
def self.up
add_index :users, :email, :unique => true
end

def self.down
remove_index :users, :email
end
end

0 comments on commit bae3179

Please sign in to comment.