I created a model for comments at the start of a project, but have now come to the realisation I need to create some polymorphic relations so I can use comments with a number of other models as well. Considering the the code I already have etc, I'm thinking it might be easier for me to just start again from scratch so I can build all the views/controllers etc in the correct way for my new polymorphic world.
I see that I can run rails destroy model comments
to achieve this but I have two questions on that:
- Will this delete the model, migrations AND the actual DB table?
- What are the implications when I want to create a new model with the exact same name?