Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:46:36+00:00 2026-06-01T12:46:36+00:00

I m working on a simple Rails app called lists4me to create a minimalistic

  • 0

I m working on a simple Rails app called lists4me to create a minimalistic task management application and learn Rails in the bargain. The tables I ve setup are users, categories, projects, tasks and steps. Basically a user has many categories, a category has many projects, a project has many tasks and a task has many (actionable) steps. Currently the user_id field is set in the categories table but not in the rest of the tables.

Recently I was looking at the data that is posted form todoist.com when new tasks or projects are created, the user_id seems to be sent as well. Since I ve set a user_id only on the categories table, this got me thinking should all of my tables have a user_id as a field as well? If so then why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:46:38+00:00Added an answer on June 1, 2026 at 12:46 pm

    Basically, to answer that, I would consider the question of “Will I ever need to know to which user a (project | task | step) belongs to?”

    If that will never be an issue, either because it won’t be necessary or because you can simply work by joining Users to (Projects | Tasks | Steps) via Categories, then you’ll be OK without having a user id field in the other tables.

    If, however, you’re going to frequently want to look up say, all outstanding tasks for a given user, it would probably be worth it to add a user id field there, to save the join operations, which if my understanding is correct, are not terribly fast.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a simple Rails/jQuery HTML templater app which stores a series
I'm working on a simple Rails app, which currently has four pages - Home,
Morning, everyone! I'm working on a Rails app that is just a simple check
I am a newbie working in a simple Rails app that translates a document
I'm working on setting up a simple multi-tier Rails 3.1 setup -- web apps
I'm working on a simple rails project where I can create a post. My
I am building a simple rails application and am working with Tornado for some
Working a simple custom authentication portion for my Ruby on Rails application. I'm trying
I have been struggling to get a simple autocomplete working with my Rails app
I have the simple following code, which is working in a ruby (not rails)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.