Tag: ActiveRecord

  • The Highlander query with Rails’ ActiveRecord

    The Highlander query with Rails’ ActiveRecord

    For those cases in which there can be one and only one record on the database with certain fields and I don’t just want to get the first one and silently get the wrong one. I want to make sure there’s one and only one, so, I wrote this little extension to ActiveRecord that does…

  • random_unique_id version 1.0.0 released

    random_unique_id version 1.0.0 released

    The core of random_unique_id was developed for Watu very early on, which means that it has been used in production for more than two years and a few thousands millions of records. It’s been released as a gem and we had a few iterations. It has 100% code coverage, code climate rating 4.0, 100% documentation coverage, a…