Displaying 1 result from an estimated 1 matches for "hllarupdatesql".
2009 Mar 03
2
Passing an SQL fragment in AR save
I have a basic model class TestTime with no customization.
class TestTime < ActiveRecord::Base
end
I would like to pass the following SQL fragment as part of an AR save
call to TestTime objects. How and where would I do this in the model?
"set c_time=current_time"
(current_time is an SQL method, not a variable).
--
Posted via http://www.ruby-forum.com/.