Skip to content

[Event::Configuration] Add unique index on event_id #11960

@garyhtou

Description

@garyhtou

We don't want multiple Event::Configurations per Event. So, let's add a unique index on event_configurations.event_id. A Rails validation would also be nice

class Event::Configuration
  validates :event, uniqueness: true
end

https://hcb.hackclub.com/blazer/queries/998-duplicate-event-configuration

Metadata

Metadata

Labels

Bad Prod DataBad data in productionBeginner FriendlyIt's great for those just getting started or hoping to improve their skills!

Type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions