Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is there a way to copy my local sqlite database table into my postgres database on production? I'm very new to Rails so any help is appreciated!

share|improve this question
 
Trucker would seem to fit the bill for this. –  PinnyM Apr 10 '13 at 2:47
add comment

3 Answers

up vote 1 down vote accepted

You need a tool to export data from Sqlite and import it to Postgres. You can use https://github.com/ricardochimal/taps.

Here is a tutorial for this: http://railscasts.com/episodes/342-migrating-to-postgresql

share|improve this answer
 
Thanks, this worked. Great railscast! –  Sara Apr 10 '13 at 15:09
add comment

You can use taps

notice

I saw you have a question about heroku a few day before. Does this question involved with Heroku? If so, you should not use sqlite locally and postgres remotely.

share|improve this answer
add comment

Take a look at yaml_db for dumping and loading data. Easy to use.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.