Displaying 1 result from an estimated 1 matches for "ar_class".
Did you mean:
r_class
2005 Nov 02
4
acts_as_metadata?
...;t find any references
to how to approach this. So I''m going to try to implement something
myself. Hopefully, this can be released to the community if it works.
Here''s the basic concept as I see it:
CREATE TABLE property(
id int not null primary key auto_increment,
ar_class varchar(255), -- AR class this property extends
property_name varchar(255),
property_type text -- MySQL or Ruby type
);
CREATE TABLE property_value(
id int not null primary key auto_increment,
foreign_id int not null, -- PK of the referenced object
proper...