I am using the Division of Railway Gavi on Ruby to authenticate users. I want to import data from a file using MySQL stored procedure. This file contains a list of new users. So, how can I create a user from this stored procedure?
Would not it be easy to seed the database with your list of users or if you have a bit more complex If you want to create, you can import the users in Rail / Devices using the CSV class in Ruby. Here is a video from GoRails that shows you how to do this.
In addition, there is a link to import CSV using a MySQL stored function.
No comments:
Post a Comment