为了Heroku,从MySQL切换到PostgreSQL for Ruby on Rails [英] switching from MySQL to PostgreSQL for Ruby on Rails for the sake of Heroku
问题描述
我试图将一个全新的Ruby on Rails应用推向Heroku。目前,它位于MySQL上。看起来Heroku并不真的支持MySQL,所以我们正在考虑使用PostgreSQL,他们会支持它。
我应该有多难?我需要做些什么才能做到这一点?
请再次注意,我现在的数据库(包括开发和生产)都是空的。 p>
感觉不需要迁移到Postgres - Heroku上有几个MySQL Addon提供程序 - http://addons.heroku.com/cleardb 是我取得过最成功的一个。
I'm trying to push a brand new Ruby on Rails app to Heroku. Currently, it sits on MySQL. It looks like Heroku doesn't really support MySQL and so we are considering using PostgreSQL, which they DO support.
How difficult should I expect this to be? What do I need to do to make this happen?
Again, please note that my DB as of right now (both development & production) are completely empty.
Don't feel you have to migrate to Postgres - there are several MySQL Addon providers available on Heroku - http://addons.heroku.com/cleardb is the one I've had the most success with.
这篇关于为了Heroku,从MySQL切换到PostgreSQL for Ruby on Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!