Ruby Developer Question:
Download Questions PDF

Explain me what is the function of ORM in Ruby on Rails?

Answer:

ORM stands for Object Relationship Model that models the classes and helps in setting a relationship between the existing models.

Functions:

1. It allows the classes to be mapped to the table that is present in the database and objects get mapped to the rows in database table.

2. It shows the relationship that exists between the object and frame it using the model to display the output to the users.

3. It keeps the data in the database according to its relationships and performs the functions accordingly.

Download Ruby Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me can you call a private method outside a Ruby class using its object?Tell me the role of modules and mixins in Ruby?