search for: field_type_id

Displaying 1 result from an estimated 1 matches for "field_type_id".

2006 Aug 15
0
ActiveRecord inheritance with types table
I have a Field class: class Field < ActiveRecord::Base belongs_to :field_type end with it''s table: fields: id field_type_id name ordering every field has a type class FieldType < ActiveRecord::Base end stored in the field_types table field_types: id name class_name for each field type, there''s a subclass of Field that do whatever special things class BooleanField < Field def get_...