search for: property_key

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

2006 Aug 13
2
Arbitrary "Columns" for ActiveRecord
...e of solutions that work pretty well but many use way too many queries or are just not very good. Basically I want to store something of a property list for a model. class Model < AR has_many :properties, :dependent => :delete end class Property < AR belongs_to :model belongs_to :property_key end |------------------ |properties |------------------ | id (serial) | value (varchar) | property_key_id (int) | model_id (int) |------------------ Now an issue is that I also store possible KEYs for my properties. class PropertyKey < AR has_many :properties, :dependent => :delete end...