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

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online Ruby Developer Job Interview Questions And Answers