I am junior Ruby on Rails dev.
I have this problem: I've updated my rails from 5.1 to 6. If I try to run
rails db:migrate
there are errors:
TypeError: superclass mismatch for class CreateVacancyFields
Looking inside my migration file:
class CreateVacancyFields < ActiveRecord::Migration[ 5.1 ]
Ok, I've changed 5.1 to 6.0 like this:
class CreateVacancyFields < ActiveRecord::Migration[ 6.0 ]
But it doesn't help. What I do wrong?
Possibly you're having the same named class CreateVacancyFields
twice. If so, rename it to some different name to resolve this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With