module JsonbAccessor::QueryBuilder

def self.validate_column_name!(query, column_name)

def self.validate_column_name!(query, column_name)
  if query.model.columns.none? { |column| column.name == column_name.to_s }
    raise InvalidColumnName, "a column named `#{column_name}` does not exist on the `#{query.model.table_name}` table"
  end
end