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.

gem install activerecord
INSTALL
IMPORT
SIG · ACTIVERECORD
A
activerecord
databaserubyv8.1.3
harness data pending
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.

ActiveRecord
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 issues
gotchaActive Record requires a database adapter gem (e.g., sqlite3, mysql2, pg) to be installed.
fix
Add the appropriate adapter gem to your Gemfile.
affects: >= 0
Upgrade
Version history
8.1.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
44
OpenAI (training)
1
Resources
activerecord — gem install activerecord · libregistry