search for: application_st

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

Did you mean: application_set
2012 Jul 25
3
rails scope without raw sql
...g 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 : ActionView::Template::Error (PG::Error: ERROR:...