title: Rails multi tenant app
body: <p>I'm creating a multi tenant app that something like project management software.</p>
  
  <p>In my structure, there is a <strong>User</strong> table that excluded from multi tenant.</p>
  
  <p>User comes my sign-up page, fills the subdomain field called Company then I create a schema for this user. So, they can access their account as <em>companyname.example.com</em>. Everything is okay so far.</p>
  
  <p>I also have an <strong>Account</strong> table to store subdomains with a creator user. </p>
  
  <p>Now, I also created a table for Account permissions. This table includes Account_id and user_id. I did something like that because, user could join more than one Company with same email address.</p>
  
  <p>Conclusion;</p>
  
  <ul>
  <li>User table</li>
  <li>Account table</li>
  <li>Account_permissions (to check when someone try to login to specific company. Because, they have more then one company.)</li>
  </ul>
  
  <p>Does this make sense ? Do you have any idea in this case ?</p>