March 2025
Intermediate to advanced
472 pages
12h 10m
English
We cover:
Active Record is the object-relational mapping (ORM) layer supplied with Rails. It’s the part of Rails that implements your application’s model.
In this chapter, we’ll build on the mapping data to rows and columns that we did in Depot. Then we’ll look at using Active Record to manage table relationships and in the process cover create, read, update, and delete operations (commonly referred to in the industry as CRUD methods). Finally, we’ll dig into the Active Record object life cycle (including callbacks and transactions).
Read now
Unlock full access