Displaying 1 result from an estimated 1 matches for "saleendd".
Did you mean:
  saleena
  
2013 Sep 15
1
Why does Rails convert scopes to downcase
I found a strange behavior in Rails 4 with scopes when I use postgres.
I have a Object with saleStartDate and saleEndDate attributes.
scope :active, -> { where(isActivate: true) }
 
> scope :activeDate, -> { active.where("? BETWEEN saleStartDate AND 
> saleEndDate", Date.today)}
When I use sqlite, all works when I want to get the object with the 
activeDate scope.
When I use postgres, I g...