Displaying 1 result from an estimated 1 matches for "not_archiv".
Did you mean:
not_archived
2012 Jul 25
3
rails scope without raw sql
Hi, I''ve been stung when deploying a rails app to heroku, and I''m fairly
confident the problem is the difference between my local db sqlite3, and
the heroku standard free shared db which is postgres(i think).
I have a scope in my model that looks like this
scope :not_archived, :conditions => [''application_state != "archived"'']
The idea is I want to get back all the records where the
application_sate value is not equal to the string "archived".
This works fine locally, but in the Heroku logs it throws up the
following error :...