Skip to content

Instantly share code, notes, and snippets.

@ryhmrt
Forked from kenchan/User.rb
Created April 19, 2012 03:05
Show Gist options
  • Save ryhmrt/2418105 to your computer and use it in GitHub Desktop.
Save ryhmrt/2418105 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