Software Development
The Active Record pattern: keep row data and persistence behavior together
Active Record represents a database row as an object that carries its data, persistence operations, and related domain behavior. A Rails `ActiveRecord::Base` model is a well-known implementation. Load a row, change an attribute, and call `save`; the framework issues SQL, so the pattern reduces repetitive mapping code without hiding SQL, transactions, or schema constraints. [Martin Fowler: Active Record](https://martinfowler.com/eaaCatalog/activeRecord.html) [Rails 8.1: Active Record Basics](https://guides.rubyonrails.org/active_record_basics.html)