I have a model, that is located in models/statistics(Model1) and a model in models(Model2)
How do i correctly connect Model1 in Model2 via has_many?
I have tried has_many :statistics_model1s, but that didn’t work
I have a model, that is located in models/statistics(Model1) and a model in models(Model2)
Share
You can refer to this question : How to do has_many with a model that is in a namespace.
This might resolve your problem 😉