ActiveRecord::Events - Awesome Gems
Mike Rogers ✈️

Mike Rogers ✈️ @mikerogers0

About: A Rubyist, a menace, a web hygienist.

Location:
London, UK
Joined:
Jun 30, 2019

ActiveRecord::Events - Awesome Gems

Publish Date: Oct 14 '20
6 0

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.

Comments 0 total

    Add comment