Answer the question
In order to leave comments, you need to log in
What is the problem with "uninitialized constant"?
Good afternoon.
I updated the system, downloaded the project from Git and try to run it in the development environment.
When running migrations for the development environment, it gives an error
NameError: uninitialized constantto one of the old migrations, the run is terminated.
Answer the question
In order to leave comments, you need to log in
Look closely at the name of the models. Well, or show the code at least. The error is probably somewhere more specific than in your question.
Most likely, a model is called in the migration that was later deleted. On production, everything happened sequentially, first they ran the migrations, so they deleted the model. When passing migrations from scratch, a problem got out.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question