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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:52:01+00:00 2026-06-06T04:52:01+00:00

I am facing a design problem that I cannot figure out at all. I

  • 0

I am facing a design problem that I cannot figure out at all. I have a table in my DB called Timed_Tests. Timed_Tests has an associated model called Timed_Test.

Recently, I realized that I actually need three types of Timed_Test with slightly different features. There is current Timed_Test, there will be a Test_Basic without the end date that Timed_Test has, and there will be a Special_Test with a couple of additional attributes.

I’m trying to figure out what the best way is to set this up. Should I have one large Tests table with all the different types of attributes for all the different types of Tests? How should I setup my class inheritance structure? Should I use citier (http://peterhamilton.github.com/citier/)? How do mixins fit in with DB schema…?

I have asked a bunch of questions and they are a bit vague I know – please feel free to ask me clarifying questions, and feel free to answer any one of the issues I’m thinking about above.

Thanks so much!

  • 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-06T04:52:03+00:00Added an answer on June 6, 2026 at 4:52 am

    If the specific attributes for the SpecialTest instances are not many, you can safely go with single table inheritance. This way you are free to specialize the behavior of your classes in any desired way, retaining simplicity of the mapping.

    Using mixins (so not having table inheritance in any way) will prevent you to retrieve test instances across the classes.

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

Sidebar

Related Questions

This is a design problem I am facing. Let's say I have a cars
I'm facing a problem which is probably extremely common in game-design. Let's assume that
Im facing following problem I have created mentioned condition, but when I choose y
I'm making the design of a OO framework and I'm facing the following problem.
I have the case where I have a public facing service sitting out on
i'm facing a design problem within my project. PROBLEM i need to query solr
I am facing a little annoying design problem. Not easy to give a title
I have a compound control contains nested controls. The problem i am facing is
I'm facing a design challenge that I just can't seem to solve in a
I want to design a Forum using Php but the problem I am facing

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.