Created
March 4, 2009 21:48
-
-
Save mattyb/74030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conditions = {:source => @source} | |
# conditions = {"source_id" => @source.id} | |
if classlist | |
conditions[:object_class] = classlist | |
end | |
puts conditions.inspect | |
unresolved_ids = UnresolvedId.find(:all, :select => "id", | |
:conditions => conditions) | |
{:object_class=>["CustomNote", "TabulationArea"], :source=>#<Source id: 134, contrib_id: nil, file_internal_id: 0, filesource: nil, name: "State of Ohio", vip_id: 39, datetime: "2008-03-31 15:45:10", description: "The State of Ohio is the official source of eletion...", organization_url: "http://www.sos.state.oh.us/", feed_contact_id: 1555122, tou_url: "http://www.sos.state.oh.us/vipFeed/terms_of_use.htm...", created_at: "2009-03-04 21:24:48", updated_at: "2009-03-04 21:24:48", import_completed_at: nil, active: 0>} | |
rake aborted! | |
Mysql::Error: Unknown column 'unresolved_ids.source' in 'where clause': SELECT id FROM `unresolved_ids` WHERE (`unresolved_ids`.`source` = 134 AND `unresolved_ids`.`object_class` IN ('CustomNote','TabulationArea')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment