Skip to content

Instantly share code, notes, and snippets.

@eagsalazar
eagsalazar / gist:1637700
Created January 19, 2012 03:58
Migrating from Devise to Authentication from Scratch ala Railscasts #250
field :encrypted_password, :type => String
field :email, :type => String
attr_accessor :password
validates_confirmation_of :password
validates_presence_of :password, :on => :create, :message => "can't be blank"
validates_presence_of :email, :message => "can't be blank"
validates_uniqueness_of :email, :message => "already in use"