• Spring
  • PHP
  • SQL Tutorial
  • JSP
  • Servlet
  • JavaScript
  • Java IO
  • Struts
  • RubyonRails

  • <

    Ruby on Rails Active Record


    Active Record is the MVC pattern which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.

    Object Relational Mapping, commonly referred to as its abbreviation ORM, is a technique that connects the rich objects of an application to tables in a relational database management system. Using ORM, the properties and relationships of the objects in an application can be easily stored and retrieved from a database without writing SQL statements directly and with less overall database access code.


    Active Record as an ORM Framework


    Active Record gives us several mechanisms, the most important being the ability to:

  • Represent models and their data.

  • Represent associations between these models.

  • Represent inheritance hierarchies through related models.

  • Validate models before they get persisted to the database.

  • Perform database operations in an object-oriented fashion.
















  • © copyright 2017-2021 Completedone pvt ltd.