Rails: Alter migrations during early development phases

前端 未结 6 678
栀梦
栀梦 2021-02-04 22:08

During the very early phases of development in a Rails app, I prefer to modify the migrations files directly to add new columns (fields) to my tables (models) instead of piling

6条回答
  •  不要未来只要你来
    2021-02-04 22:47

    I recommend using fixtures when taking this approach (as it allows quickly recreating sample data for the application after dropping the database to recreate). Another option is http://datamapper.org/ (does not require migrations).

提交回复
热议问题