Mr.DevEng
Mr.DevEng

Reputation: 2421

Relation Does not Exist Error While Using Existing database with Rails new Project

I already done one project using Rails 6 version with PostgreSQL 9.6 version. And for learning TDD purpose, I created new project and tried to use my old project's database. And I have Categories and Articles which are having many to many association. While I trying to run one simple test case it showing Relation categories does not exist error. The same test model I copied to my old rails project, But there its successfully running.

I am new to Ruby and rails world. Is there any additional thing that I need to take care when using existing database to new project? Or Do I need to add the association again in my new project?

Can anyone suggest/guide me to avoid these type of errors while using existing database while working with new rails project please?

Upvotes: 0

Views: 70

Answers (0)

Related Questions