I'm mobile devices programmer and I'm a newbie in DB, web, server programming and this problem make me sick :(
I've dug all day long for this situation, and no answer solve my problem.
I have production.sqlite3 in my Ruby on Rails project, and this was in AWS server using sqlite3 DB in production mode.
Now I uploaded this application to heroku using postgresql DB with no data(empty), changing sqlite3 -> postgresql in production mode.
I want to transfer data in production.sqlite3 to empty remove postgresql DB.
How can I do that? I couldn't get the concept how I achieve this.
1) local sqlite3 -> remote empty postgresql DB directly ?
2) local sqlite3 -> local postgresql (migrate) -> remote empty postgresql DB ?
I installed postgresql92 (because of heroku remote postgresql version) via macports,
so the path is '/opt/local/lib/postgresql92'.
I tried
pg:transfer
psql
pg_ctl
and still have no idea to do this. please help me solve this situation.