Answers

Question and Answer:

  Home  Ruby Developer

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

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.

 210 views

More Questions for you: