Displaying 2 results from an estimated 2 matches for "_change".
Did you mean:
change
2007 Apr 26
1
mapping column names in legacy schemata
...ns:
_job
_ change
_date
_effect
When defining the Ruby class, I''d like to do something like this:
class Fix < ActiveRecord::Base
self.table_name = "_fix"
use_mapping ( # imaginary construct..
:_job => "job_id",
:_change => "change_id" ,
:_date => "date" ,
:_effect => "status")
self.primary_key = "job_id"
end
and want to access it like this:
Fix.find( id ).status = "partial fix"
which should acces the
Is there a way to do this?
thanks...
2007 Apr 26
0
ActiveRecord: mapping column names when using legacy schemata
...ns:
_job
_ change
_date
_effect
When defining the Ruby class, I''d like to do something like this:
class Fix < ActiveRecord::Base
self.table_name = "_fix"
use_mapping ( # imaginary construct..
:_job => "job_id",
:_change => "change_id" ,
:_date => "date" ,
:_effect => "status")
self.primary_key = "job_id" # no more reference to _job column
end
and want to access it like this:
Fix.find( id ).status = "partial fix" # should update t...