简体   繁体   中英

How do I push only one table from my development database to my production database in rails 3

I'd like to push my "defaults" table from my development database to my production database.

Any rake command to do this?

I think it'll make the trick:

A simple database agnostic import/export app to transfer data to/from a remote database.

https://github.com/ricardochimal/taps

when you want to transfer a list of tables

$ taps push postgres://dbuser:dbpassword@localhost/dbname http://httpuser:httppassword@example.com:5000 --tables logs,tags

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM