Displaying 1 result from an estimated 1 matches for "path_to_your_fil".
Did you mean:
path_to_your_file
2008 Dec 13
2
how to import a dump .sql file in a rake task
I have a dump of some tables to be filled when the app is setup
''.../db/dataset/regions_dpt_cities_codes.sql''
I would like to execute a task similar to the >mysql source
<dump_file>
like :
ActiveRecord::Base.connection.execute("source #{path};") (which
doesn''t run fine, of course....
is it possible in a rake task ? if yes, any suggestion ?