0

I'm trying to create a Ruby on Rails app and I have recently started using NoSQL databases to store the data. However, I'm not sure how to organize the database files within the file tree. For instance, is the code for NoSQL only supposed to be put in the context of regular code files or can it have it's own folder for NoSQL database files?

1 Answer 1

2

Whether your are using SQL or NoSQL databases, the design pattern of Rails won't change. Rails uses MVC and the M part which stands for model is the layer that interacts with the database.

In short, don't create another folder for NoSQL database files, they are all models so they should go in models folder.

Sign up to request clarification or add additional context in comments.

1 Comment

Would the nosql sequences be written in the form of methods? I have never used nosql.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.