Recent Posts

  • December 10, 2019

    json and jsonb - Postgresql

    Postgresql provides a data-type jsonb to save data from JSON format. There are two ways for it - using json and jsonb. This article will clarify difference in short terms.

  • November 28, 2019

    Sidekiq By Example

    What is the best way of handling background jobs in Rails, (maybe) using sidekiq.

  • November 22, 2019

    Run seed data only on first Docker instance up

    Q: Do we need to run rails db:seed, rails db:migrate every time the deployment happen? Ans - Absolutely no. rails db:seed should only run for the first time i.e. first deployment. But migrations should be run on every deployments.

  • August 20, 2019

    HTTP request response headers

    At the end browser talks in the language of HTTP request. But we really know minimal about it.

  • August 15, 2019

    Ruby Ranges

    Range in ruby can be used in following situations