switching from MySQL to PostgreSQL for Ruby on Rails for the sake of Heroku

前端 未结 4 617
臣服心动
臣服心动 2021-01-12 13:53

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

4条回答
  •  感动是毒
    2021-01-12 14:34

    If you have no data to migrate, it should be as simple as telling your Gemfile to use the pg gem instead, running bundle install, and updating your database.yml file to point to your PostgreSQL databases. Then just run your migrations (rake db:migrate) and everything should work great.

提交回复
热议问题