Maybe i should rename the table users in employees. For example: A company has 20 employees. The company gets a job from his customer. So i decied that 5 of my employees work on this job. There we got the habtm jobs_users. When the job is completed i will make a delivery note with positions for every work, which has been done. Every position could be done by one or more of the 5 teammembers from jobs_users. So i tried to make a jointable between positions and jobs_users and name this table jobs_users_positions. But it seems not to work.
Best regards Dennis Am 27.01.2012 19:31, schrieb Kaupo Vana: > Hi, > > I'm don't know the background of this task so the users habtm jobs looks a > bit strange to me but if you want to keep the position concept then you can > create a model for this. > > Table positions with fileds id, user_id, job_id and give habtm relationship > to deliverynotes. > > Best regards, > Kaupo >
signature.asc
Description: OpenPGP digital signature
