Multiple addresses
Up until 30 mins ago, my company table contained columns for the companies address. However, now that I'm building the users (employees) part of onplan, I've come across a problem: What 2 users working for the same company work at different locations (as is often the case with building projects)? It's simple - create a table Addresses. Addresses belong_to Company and have_many Users.
This means now that at account sign up I've got three different models to validate (User, Company and now Address) but I'll cross that bridge when I come to it.
This means now that at account sign up I've got three different models to validate (User, Company and now Address) but I'll cross that bridge when I come to it.

0 Comments:
Post a Comment
<< Home