Generating rails model for dropped migration

Viewed 4022

I had a model customer, which I have generated using the following

rails g model Customer name:string

After some time, I decided to rename the model to customer_type, to accomplish this we wrote an another migration

rails g migration RenameCutomerToCustomerType

everything was smooth until I had the requirement to add the model named customer. When I issued the following command, I've started getting "Another migration is already named create_customer"

rails g model Customer

I think this kind of scenario is very common in CRUD based project, please suggest on how to over come this? Is this a limitation with rails?

2 Answers
Related