here is my issue. i want to get the id of of the record extracted here. it however gives me 37832400 instead of 9. i am not sure why. >> t=Trade.find_by_sql("select * from trades where tradestatus='O' and symbol_al ias='USD.CHF-IDEALPRO-CASH'") => [#<Trade:0x4828a80 @attributes={"tradestatus"=>"O", "tradestrategy"=>nil, "sy mbol_alias"=>"USD.CHF-IDEALPRO-CASH", "tradeinterval"=>"5MINUTE", "getpictures"= >nil, "tradename"=>nil, "id"=>"9", "grossrevenue"=>nil, "tradecomments"=>nil, "t radedirection"=>"Long"}>] >> t.id (irb):8: warning: Object#id will be deprecated; use Object#object_id => 37832400 >>