Tag: activerecord
All the articles with the tag "activerecord".
-
Retrieving a Random Row in ActiveRecord
Updated:Learn different ways to fetch a random row in ActiveRecord, their trade-offs in PostgreSQL and MySQL, and which method to prefer for performance.
-
Connecting to Multiple Databases in a Rails App
Updated:Learn how to connect a Rails app to multiple databases using establish_connection, with context on modern Rails features for handling multi-DB setups.