- first I have my application and I'm on master, I created a branch called "one" and I switched to it.
- I wrote some code then commited it, then I created a model called "category" and commited it
- now I don't want this table to exist no more, so I wanted to revert back to the older commit.
- I wrote "git log" and I got the ssh of my older commits when there was no category table created yet, then I created a new branch from one of the old commits ,the new branch called "two", then I switched to "two" branch
- this means that, now on the new branch called "two", I have no category model created, because this branch was created from an old commit from branch "one" where there's no category model created yet
- but what I found was strange, when opening the application on sublime text, there's no model called category, and there are no migrations for a model called category ....... while when try to view the database of the application using "db browser for sqlite", I still see the category model exist even after refresh, and when trying to create the category model on branch "two" and migrate it, there's an error stating that the category model already exists ....
so how could this happen, and do you know any ways to revert back in commits and remove completly a table created before ?