Popular Activerecord Programming Tips
Use schema_associations to to make your ActiveRecord models more DRY
Diogo Biazus
·
0 responses
·
rails, activerecord, database, postgresql
Validation conditions on-the-fly
yaojie
·
0 responses
·
ruby, rails, activerecord
Create a random account id for a user
Jordan Trevino
·
0 responses
·
ruby, rails, activerecord, random
Doctor, doctor; Why is my ActiveRecord scope eager-loading?
Stuart Liston
·
0 responses
·
activerecord, scope, eager load
Find or Initialize objects RoR
Agustin Anfuso
·
0 responses
·
activerecord, ruby on rail
count and size for ActiveRecord
Leo.liang
·
2 responses
·
rails, activerecord
DB Charmer
Guillaume Hain
·
0 responses
·
rails, activerecord
Rails 4's `.select` and `.select!` object masked as a typical Array
Justin Smestad
·
0 responses
·
ruby, activerecord, bug, array
Select table names from SQL Server from a Mac via ActiveRecord and TinyTDS driver
Edward J. Stembler
·
0 responses
·
activerecord, mac, sql server, tinytds
Have you lost a second of data?
Aaron Lasseigne
·
0 responses
·
ruby, activerecord, sqlite, rails
Readonly ActiveRecord Columns
Sean Todd
·
0 responses
·
rails, activerecord, validation, readonly
Protector: ORM security DSL
Boris Staal
·
0 responses
·
ruby, rails, activerecord, sequel
SwissDB: ActiveRecord for RubyMotion Android
Jon S
·
0 responses
·
activerecord, sqlite, android, sql
Safely Add Hstore Support to Postgres via ActiveRecord Migrations
Charles Zhang
·
0 responses
·
rails, activerecord, postgres, hstore
DRY up your Rails App by using scopes
RJ Pittman
·
0 responses
·
activerecord, rails, dry
Postgres/Resque Bug Fix
Adrian Peterson Co
·
0 responses
·
activerecord, postgres, resque, pg
Working with time offsets into the past
Brad Fults
·
0 responses
·
rails, activerecord, time
Faster ActiveRecord Migrations Using change_table :bulk
Aaron Lasseigne
·
0 responses
·
ruby, rails, activerecord
Monkeypatch ActiveRecord so .find_each goes in descending order by id
Jeremy Raines
·
0 responses
·
rails, activerecord
Postgres, the Best Tool You're Already Using
Bhavin Javia
·
0 responses
·
rails, activerecord, postgres
ActiveRecord: Use efficient queries for counting
Jon Tai
·
0 responses
·
ruby, rails, activerecord, sql
User migration helpers outside migrations
Wojtek Kruszewski
·
0 responses
·
activerecord, rails, console, migrations
Skip AR callbacks
Wojtek Kruszewski
·
0 responses
·
activerecord, rails, callbacks, wojt-eu
Mixing query conditions in AR
Diogo
·
0 responses
·
activerecord, rails
Check for empty columns in your database
Anatoli Makarevich
·
0 responses
·
ruby, rails, activerecord
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#
Coderwall Dev Community
Explore the all-time favorite tutorials, design patterns and engineering guides that thousands of readers keep sharing and coming back to, year after year.
These proven techniques, reusable code samples, programming tips and vibe coding habits earned their place through steady views and member likes.
Each entry here is still useful today, covering programming languages, frameworks and workflows that stay relevant long after they were first published.
Whether you're new to a tech stack or an experienced engineer refreshing your skills, start with the most useful tips our dev community members recommend and build on solid, well-tested coding knowledge.