Editing Existing Rails Migrations is a good idea?

前端 未结 3 1472
面向向阳花
面向向阳花 2020-12-11 17:33

When starting out a new project, there are lot of changes in models that I find it easy to edit an existing migration & run db:clean or db:reset

3条回答
  •  孤街浪徒
    2020-12-11 18:19

    I'm working on a web-app in development mode. Although I am working alone, it's best practice to use migrations to modify the database. It might leave a trail of modifications, but you can see the evolution of your database structure. In the long run, you will become faster at resolving db issues with migrations.

提交回复
热议问题