Rails remove old models with migrations

后端 未结 7 1951
傲寒
傲寒 2021-02-13 01:41

I have a bunch of rails models that i\'m re-writing into a single model to simplify my code and reduce unnecessary tables.

I\'m wondering what the best way to delete a

7条回答
  •  青春惊慌失措
    2021-02-13 02:23

    You can take a look at this one at rails guide. But I suggest, if it is possible, you should delete the models and all references to the models. This will probably save time later as you don't need to maintain the dead code in the codebase.

提交回复
热议问题