Way to “flatten” Rails migrations?

前端 未结 2 1208
半阙折子戏
半阙折子戏 2021-02-13 22:26

I\'m working on deploying my first Rails application right now, and somewhere along the way, I botched a migration. When I try to push my application to the production server an

2条回答
  •  面向向阳花
    2021-02-13 22:57

    This is what the db/schema.rb file is for. If you've only got structural changes in your migrations you will be able to run rake db:schema:load rather than running rake db:migrate to get the absolute structure for your tables.

提交回复
热议问题