ActiveRecord greater/less Than Comparison
Many times you will find yourself query for some records in between of a range being it a date range or a numeric range. ActiveRecord allows you to use a Ruby range or incomplete range to query data in the database.