May 2023
Intermediate to advanced
476 pages
12h 5m
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