Blog

Thoughts from my daily grind
Posted by Ziyan Junaideen 04 June 2022
Enums are a useful and commonly used data type in Ruby applications. Rails 7 introduces support to create native PG enum data types. This post discusses the creation and use of native enums with PostgreSQL, advantes & disadvantages.
Posted by Ziyan Junaideen 29 May 2021
Those who enjoyed the where.not(...) query method will surely find the query.invert_where query method a welcoming feature. It allows us to easily invert entire queries.
Posted by Ziyan Junaideen 24 August 2019
Learn how you can track an ActiveRecord objects attribute changes across its lifecycle or page request. The methods [attr]_was, [attr]_chagned?, [attr]_previously_was are some among the helpful methods implemented in ActiveModel::Dirty module.