Описание тега rails-activerecord

The implementation of object-relational mapping (ORM) using the Active Record pattern in the Ruby on Rails framework.

A popular ORM in the Ruby on Rails framework, based on the Active Record pattern.

Features that are provided by this ORM:

  • automated mapping between classes and tables, attributes and columns
  • associations between objects defined by simple class methods.
  • aggregations of value objects
  • validation rules that can differ for new or existing objects
  • callbacks available for the entire life cycle (instantiation, saving, destroying, validating, etc.)
  • inheritance hierarchies
  • transactions
  • reflections on columns, associations, and aggregations
  • database abstraction through simple adapters
  • logging support for Log4r and Logger
  • database agnostic schema management with Migrations
  • scopes for chaining commonly used database queries

Further reading: