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 8902399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:36:10+00:00 2026-06-15T01:36:10+00:00

Right now I have a model called Profile which is associated with a User

  • 0

Right now I have a model called Profile which is associated with a User (basically in Profile I save all the information associated with the User, and in User I store stuff like password, last_sign_in,…). I want to be able to send some (weekly) emails to the users and I was wondering on just adding a new column to the Profile table.

However, I think that it can happen that I want to send daily too, so I was thinking on creating a new table called “Notifications” that is associated with Profile. However, I fail to see which kind of association I should do.

A profile can have many notifications, but a kind of notification can be in many Profiles. How would you guys do that?

Thanks!

  • 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-15T01:36:12+00:00Added an answer on June 15, 2026 at 1:36 am

    I think it depends exactly what you are trying to accomplish it sounds like you have a notifications type and also instances of notifications against profiles.

    If this is the case then you’d typically have a one to many relationship a profile can have many notifications; in your Profile model include has_many => notifications. And each notification has a type reference; in your Notification model include belongs_to => profile and has_many => notification_types. Which means notification_type belongs to many notifications; in your NotificationType model include belongs_to => notifications.

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

Sidebar

Related Questions

Right now, I have three models Post, Comment and User (using Devise ) associated
I have a model called User which has_one Player . A Player belongs_to a
Right now, I have more than 25 vertices that form a model. I want
Right now I have 3 tables: User, Roles, and User_Roles for the many-to-many association.
Right now I have this SQL query which is valid but always times out:
In my app, I have a User model, which includes a number of attributes
Right now I have a table called Campaigns that has many Hits, if I
I have a model called user and a controller for user with an action
If I have a model called User that has: has_many :parent_relationships, :class_name => Relationship,
Good day! I right now have a function the drags an element from a

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.