search for: application_sate

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

Did you mean: application_state
2012 Jul 25
3
rails scope without raw sql
...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: column "archived" does not exist SELECT COUNT(*) FROM "coach_applications" WHERE "coa...