Based on [https://github.com/DmitryTsepelev/store_model]
module JsonbQuery
extend ActiveSupport::Concern
included do
# where_jsonb(:info, { name: "John", age: 18..28, date: "< 2020-01-01" })
scope :where_jsonb, -> (column_name, attributes) do