Skip to content

Instantly share code, notes, and snippets.

@richessler
Last active December 30, 2015 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richessler/26a307e32c7da78ba0e0 to your computer and use it in GitHub Desktop.
Save richessler/26a307e32c7da78ba0e0 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
validates :email, :type, presence: true, length: { maxiumum: 60 }
validates :email, uniqueness: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment