Managing Data the Rails Way
There are many different kinds of abstractions that can be used on the data layer; some have a lower level of abstraction and are “closer” to the way the database works, while others have a higher one. Ruby is a high-level object-oriented programming (OOP) language, and therefore, it makes sense that the most popular data-mapping abstractions would match its high-level, OOP-ish spirit. This type of data abstraction is called ORM—object-relational mapping. In essence, ORM maps runtime objects to a set of data. This is paired with a relational database management system (RDBMS), which stores data in a structured format using rows, columns, and tables. ORM maps each row to a different object, with a class corresponding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access