Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.authentication_keys=[:email, :organization_id]
- validates_uniqueness_of :email, scope: :organization_id
- def up
- remove_index :users, name: 'index_users_on_email'
- add_index :users, :email, unique: true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement