search for: use_map

Displaying 2 results from an estimated 2 matches for "use_map".

Did you mean: use_bmap
2007 Apr 26
1
mapping column names in legacy schemata
...(legacy) column names to different Class method names? e.g.: given legacy schema: Table _fix has columns: _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...
2007 Apr 26
0
ActiveRecord: mapping column names when using legacy schemata
...f all (legacy) column names to new Class method names? e.g.: given legacy schema: Table _fix has columns: _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...