Generate .sql files using rake task

Posted by Prasanna on Stack Overflow See other posts from Stack Overflow or by Prasanna
Published on 2010-05-01T06:05:18Z Indexed on 2010/05/01 6:17 UTC
Read the original article Hit count: 215

Filed under:
|

Hi,

I have a table called 'choices' in this table i am storing static data for my site like Blood Groups , qualification, job types etc., I have to create rake tasks one is for to create backup choices.sql file from choices table data, second one is dump the data from .sql file to choice table. How can I create the rake tasks.

Any other best way to take backup data from a table and load data into the table

Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rake