search for: entity_type

Displaying 3 results from an estimated 3 matches for "entity_type".

2006 Feb 12
3
memcache-client/cached_model help
Hi - Just downloaded and installed the memcache-client and cached_model gems and am trying to test it out on a development setup. I added this to my environment/development.rb CACHE = MemCache.new :c_threshold => 10_000, :compression => true, :debug => true, :namespace => ''eztrip'',
2006 Jun 11
4
[Question} how best to use attribute driven db with Rails
I designed out a mostly attribute driven database. Originally i was going to use PHP, but have now decided to use RoR. Being able to use the built in OR functionality would be nice, but I am not sure how well it melds with attribute dbs. If anyone can give me some pointers, I would really appreciate it (especially since this is my first endeavor and on an important project as well).
2006 Apr 22
9
one to many question
...t; "name" #... end class Product < ActiveRecord:Base #... has_and_belongs_to_many categories #... end class Image < ActiveRecord:Base #... # ?? #... end Lets say the image table sql looks like this: create table images ( image_id int not null, entity_id int not null, entity_type varchar(20) not null, image_path varchar(255) not null, image_type varchar(20) not null, primary key(image_id) ); For example if i were to store the "BIG", "SMALL" images for a category in the above table, I would do: insert into images values(1, 1, "CATEGORY", &...