DEV Community

Mike Rogers ✈️
Mike Rogers ✈️

Posted on

ActiveRecord::Events - Awesome Gems

I really like using timestamps over booleans, they add so much more free information compared to a standard boolean, plus they nicely avoid the issue of "What if a boolean field is nil?".

The ActiveRecord::Events gem really compliments using a timestamp as a boolean, as it adds the conventional methods & scopes.

In the video, I cover how to install it & give some example usage.

Latest comments (0)