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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:41:50+00:00 2026-05-23T10:41:50+00:00

I have Shop entity I need 7 checkboxes to set working days for this

  • 0

I have Shop entity

I need 7 checkboxes to set working days for this shop on frontend

I’m looking for best solution to store values in db.
The easiest method is to keep 7 boolean fields like “monday?” “tuesday?” … in db

Can you help me? thanks

PS: it should be searchable (ex. i want all shops working today)

Rails 3, Postgresql 8.4

  • 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-05-23T10:41:51+00:00Added an answer on May 23, 2026 at 10:41 am

    How are you going to use this data? If you need to find by working day(s) of week then do boolean columns as you say. If you don’t, store as a string representation such as ‘tttttff’ (open monday to friday).

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

Sidebar

Related Questions

I am looking for the best solution for custom file parsing for our enterprise
We have a small programming shop of at most 5 people working on a
I have a E-Shop Site and I need some customization for my users like
I have my shop showing this URL when a user checks out. index.php?page=checkout.index&option=com_virtuemart&Itemid=65&redirected=1&Itemid=65 for
I have two entity with a many-to-one relationship. For example Employee <<---> Shop .
This should be really simple! I have a shop, it opens at 8:30 and
I have tree in my shop. I need when i go trough some good
I have an osCommerce-shop where I need to access a variable from inside an
I have a shop system that integrates PayPal in the usual way, i.e. the
I am designing a Point-Of-Sale system for a small shop. The shop just have

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.