rake db:schema:load vs. migrations

前端 未结 7 1077
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 09:39

Very simple question here - if migrations can get slow and cumbersome as an app gets more complex and if we have the much cleaner rake db:schema:load to call in

相关标签:
7条回答
  • 2020-11-27 10:30

    Because migrations can be rolled back, and provide additional functionality. For example, if you need to modify some data as part of a schema change then you'll need to do that as a migration.

    0 讨论(0)
提交回复
热议问题