Skip to content

Instantly share code, notes, and snippets.

@kenchan
Created April 19, 2012 02:52
Show Gist options
  • Save kenchan/2418014 to your computer and use it in GitHub Desktop.
Save kenchan/2418014 to your computer and use it in GitHub Desktop.
indent?
class User < ActiveRecord::Base
validates :email, presence: true, format: { with: VALID_EMAIL_REGEX },
uniqueness: { case_sensitive: false }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment