What's a good way to clean up my migrations in Rails?

后端 未结 4 1575
梦如初夏
梦如初夏 2021-02-04 09:30

So I\'ve been working on this web app for a year now and I would like to compile to schema into ONE migration, that way my text editor loads faster, git working directory isn\'t

4条回答
  •  自闭症患者
    2021-02-04 09:53

    Remove the migration files once you've migrated your servers. If you ever want to start with a fresh deployment, run rake db:schema:load or rake db:setup. You shouldn't be re-running all your migrations as explained here.

提交回复
热议问题