Registry / database / activerecord

activerecord

JSON →
library8.1.3rbrubygemsunverified

Databases on Rails. Build a persistent domain model by mapping database tables to Ruby classes. Strong conventions for associations, validations, aggregations, migrations, and testing come baked-in.

databaseorm
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

require 'active_record'

Connect to a database and create a record

require 'active_record' ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') class User < ActiveRecord::Base; end User.create(name: 'Alice')
Debug
Known footguns
gotchaActive Record requires a database adapter gem (e.g., sqlite3, mysql2, pg) to be installed.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
28 hits · last 30 days
gptbot
3
amazonbot
3
bytedance
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources