search for: entity_membership

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

2006 Aug 03
0
How to create/save unary (pk-only) models
I have a table that''s currently only a primary key. Basically: create_table "entites", :force => true do |t| end class Entity < ActiveRecord::Base has_many :entity_members end create_table "entity_membership", :force => true do |t| t.column "person_id", :integer, :null => false t.column "role", :string, :null => false t.column "entity_id", :integer, :null => false end class EntityMembershp < ActiveRecord::Base belongs_to :entity_me...