I have a need to preload 900 user names into a new Rails app.
I have used the console to load the initial admin user and passwoard
as in the
Pragmatic Programmers book "Active Development ..." Ed 2 page 162.
Now I need to load 900 users extracted out of a legacy db.
I have the appropriate details in a csv file, including the new
initial passwords generated
How can I script a bulk load of this through the site User.create
I have tried with runner and got a bunch of undefined errors.
If there is a simple script out there that correctly links to the
and opens a csv file, read in the datalines and then executes the
please point me at it.
I am still getting up to speed on Rails, this is first project, for a
small internal company
database (its my Rails-Capistrano 'production-in-a-sandpit').