Data-only migrations when User model does not store plain text passwords

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.

In case anyone has a similar problem, a workaround is to populate your
Users table using seed_fu:

http://github.com/mbleigh/seed-fu/tree/master

s.

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.