I have a csv file which have the user detail. I want to migrate this
information into the “users” table.
My application use “Authlogic” for user aunthentication so I have to
encrypt the password during migration. I have written the script which
is reading the csv file and adds the record into “users” table, it is
working fine. But I am not able to encrypt the password.
I am doing like this:-
My users.rb as follows :-
“acts_as_authentic do |c|
c.transition_from_restful_authentication = true
It is creating the entry in users table with crypted_password is equal
How should I fix this?
Any help appreciated?