search for: salestartd

Displaying 1 result from an estimated 1 matches for "salestartd".

Did you mean: sale_start
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 u...