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

  • Home
  • SEARCH
  • 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 9067073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:51:49+00:00 2026-06-16T16:51:49+00:00

I have a User model generated with Devise. Now I want every user to

  • 0

I have a User model generated with Devise.

Now I want every user to have other columns

- balance
- paperclip logo
- website
- address
- phone
etc

What is the best way to organize such data?

Should I make separate tables (like Phones table, Address table, Userlogo table etc) and establish One-To-One relationship?

I’ve heard that putting everything to one table is bad.

Would be nice to hear some opinions.

  • 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-16T16:51:51+00:00Added an answer on June 16, 2026 at 4:51 pm

    Putting everything to one table:

    • Benefits: No need for joins to get the user model, which saves query time
    • Drawbacks: User model will contain a a lot of data, so if you are holding an array of 1000 users, they will consume memory

    Separating attributes:

    • Benefits: User model will consume little memory (only basics such as email, name, ….)
    • Drawbacks: Lots of joins to get info about the user

    I think you choice depends a lot on what your application does, so if you always need all info about user, then put everything in one table other wise you could separate data.
    Anyway, you could do both so you could have the user model and another model named user_data, and that model will hold all the extra information such as phone, address, etc … this way you get the benefits from both approaches.

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

Sidebar

Related Questions

I have a User model (generated by devise) and a Submission model in a
I have a model User which automatically has a Task generated. I want to
I have a user model that is generated using Devise. I am extending this
I have generated a User model along with 2 other accompanying models called Update
I have a user model that requires the user to change their password every
I have a model User and when I create one, I want to pragmatically
UPDATED I'm using Devise 1.4.9 for authentication and my Devise-generated User model doesn't seem
I already have set up Devise to My App. So User model is already
I have a very simple issue: User model: class User < ActiveRecord::Base devise :database_authenticatable,
I have a User model that Devise manages - i.e. all users have email

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.