When you deploy a fresh Rails 8 app with the Solid “trifecta” (Solid Cache, Solid Queue, Solid Cable), you actually have four database connections in production: primary, cache, queue, and cable. If only `DATABASE_URL` is set, the other three try to connect via the default…
Tag: rails
Polymorphic Associations in Rails Explained
Polymorphic Associations allow you to create a single model and let it “belong to” multiple models. Allow me to explain how they work. I wanted to have a single Photo model, which can be used for thumbnails, employees, product, etc. for the practice management app…