search for: property_key_id

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

2006 Aug 13
2
Arbitrary "Columns" for ActiveRecord
...cally 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 |----------------- |property_keys |----------------- | id (serial) | key (varchar) |----------------- I...