如何从SQLite迁移到PostgreSQL(Rails)
我是一个DB菜鸟,所以请和我好心。
我有一些问题通过点击gem将我的SQLite DB推送到Heroku。 与他们交谈,他们告诉我其中一个解决方案可能是将我的数据库从SQLite转换为PostgreSQL。 有一个简单的方法吗?
谢谢
更多信息: – 来自Rails应用程序的数据库 – 我在Mac OS X上 – 刚刚通过macports安装了PostgreSQL
sqlite3 development.db .dump | psql dbname username
续集会帮助你
gem install sequel sequel -C sqlite://db/development.sqlite3 postgres://username:password@localhost/dbname