What is the function of ORM in Ruby on Rails?

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.

-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.

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

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

-It maps the database in case of any updates and update for the same if the fields are changed or new values are entered.
Post your comment