Rails 6.1 adds support for where with a comparison operator
16-Jul-2020 1902
Rails 6.1 adds support to comparison operator in the where clause. The four comparison operators supported are:Greater than (>).Greater than equal to (>=).Less than (<).Less than equal to (<=).The comparison operator is also supported by the finder methods in ActiveRecord which internally uses where clause, for example: find_by, destroy_by, delete_by.
Rails 6.1 adds support for where with a comparison operator #ruby #rubydeveloper #rubyonrails #Rails #support #where #comparison #operator https://rubyonrails.ba/link/rails-6-1-adds-support-for-where-with-a-comparison-operator