(This is for a side project/personal website)
Right now I have the activities table/model with the following columns... How would I add the specific days of the week the event is happening on? The user should be able to click days of the week from the view, if selected then the value for that day becomes true.
So I was thinking Id need a table of booleans called days of week, but how Im not quite sure how to tie it to the activites model.I was also thinking I could make 7 day boolean values in the activities table. I feel like that would be really sloppy
Activities model/ table
create_table "activities", force: :cascade do |t|
t.text "content", null: false
t.string "activity_name", null: false
t.string "additional_info"
t.bigint "user_id"
t.string "cost", null: false
t.string "addressLN1", null: false
t.string "addressLN2"
t.string "city", null: false
t.string "state", null: false
t.string "zip", null: false
t.string "picture"
t.string "capacity", null: false
t.string "contact_number"
t.string "contact_email", null: false
t.datetime "start_date", null: false
t.datetime "end_date", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["user_id", "created_at"], name:
"index_activities_on_user_id_and_created_at"
t.index ["user_id"], name: "index_activities_on_user_id"
end