ActiveRecord is the object-relational mapping (ORM) layer for Ruby on Rails. It provides database abstraction, allowing you to interact with relational databases through Ruby objects rather than writing raw SQL. ActiveRecord implements the Active Record pattern, where each database table maps to a Ruby class, and each row becomes an object instance. This gem handles database connections, query generation, migrations, and model associations, making it a core component of most Rails applications.
gem install activerecord Run this gem instantly in your browser without any installation:
Open in RunRuby.dev →All 508 versions available for installation