Displaying 2 results from an estimated 2 matches for "new_email".
2006 Aug 14
3
validating required fields during an update?
I have a User model with an email attribute. I''m using the following
validations:
validates_confirmation_of :email
validates_format_of :email,
:with => RFC822::EmailAddress,
:message => "must be a valid address in the form user@domain.com"
validates_uniqueness_of :email, :message => "address has already
been taken. If you''ve forgotten your
2006 Sep 05
0
rake craziness with Migrate as a dependency
...n(:line_items, "offer_id", :integer, {:default=>"0",
:null=>false})
-> 0.2300s
== AddOfferIdToLineItem: migrated (0.2300s)
===================================
== AddNewEmailToUser: migrating
===============================================
-- add_column(:users, "new_email", :string, {:default=>"", :limit=>255,
:null=>false})
-> 0.2110s
-- add_column(:users, "new_email_token", :string, {:default=>"",
:limit=>255, :null=>false})
-> 0.1800s
== AddNewEmailToUser: migrated (0.3910s)
========================...