In case anyone else has this a problem, a work-around is to popular
the Users table using seed_fu.

Then you can just pass it the :password and :password_confirmation,
and your app takes care of generating the salted versions etc.

s.

On Jul 13, 6:19 pm, steven_noble <ste...@snoble.net> wrote:
> Hi all,
>
> How do you create a data-only migration for my User model that adds a
> password salt and encrypted password to the Users table?
>
> Also, my model validates the equivalence of :password
> and :password_confirmation, neither of which are columns in the Users
> table. I need my data-only migration to either bypasses the validation
> or pass it. How do I do this?
>
> Thanks!
>
> Steven.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to