Tutorials



Developing with Docker (ENG) - Mo Khan | Ruby Meditation 30 - YouTube
I hope that the code I write continues to be used after I die. Which is why I only ever write legacy code" - this is what Patterson mentioned on his Twitter last September. In this talk, I will define metrics and try to distinguish code from Legac...


Rails 6.1 adds support for PostgreSQL interval data type
PostgreSQL Interval Data Type allows us to store a duration/period of time in years, months, days, hours, minutes, seconds, etc. It also allows us to perform arithmetic operations on that interval.There are two input formats for interval data. The...




How ActiveRecord Uses Caching To Avoid Unnecessary Trips To The Database
A general way to describe caching is storing the result of some code so that we can quickly retrieve it later. In some cases, this means storing a computed value to avoid needing to recompute it later. However, we can also cache data by simply kee...

Rails 6.1 adds support for belongs_to to has_many inversing
Before Rails 6.1, we could only traverse the object chain in one direction - from has_many to belongs_to. Now we can traverse the chain bi-directionally.The inverse_of option, both in belongs_to and has_many is used to specify the name of the inve...