Multiple migrations have the name *, after renaming tables

ruby-on-rails

Solution

Delete the already existed `create_upload.rb` in your `db/migrate` folder and generate the model again.

This should resolve the Issue.

Problem

I have created a model `Upload`, later renamed it to `UploadFile`. Then created a new model on name `"Upload"` So now there are two same migrations with `"CreateUpload"` Error in console: `ActiveRecord::DuplicateMigrationNameError: Multiple migrations have the name CreateUpload` How to fix this?

Original source