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

前端 未结 4 584
臣服心动
臣服心动 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:29

    It should be simplicity itself: port the DDL from MySQL to PostgreSQL.

    Does Heroku have any schema creation scripts? I'd depend on those if they were available.

    MySQL and PostgreSQL are different (e.g. identity type for MySQL, sequences for PostgreSQL). But the port shouldn't be too hard. How many tables? Tens are doable.

提交回复
热议问题