Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add foreign key constraint and relationship checks from timecard_entry to eventdate #529

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Nov 13, 2023

  1. Add foreign key constraint and relationship checks from timecard_entr…

    …y to eventdate
    
    Prevent inconsistency when eventdates are deleted by enforcing that timecard entries must reference a valid eventdate
    NoRePercussions committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    84de300 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. Eventdate validation helpers and form errors

    Add can_destroy? helper method, orm-level checks before
    the eventdate is destroyed, and a validator to event so
    trying to destroy an eventdate that has been billed for
    raises an error.
    NoRePercussions committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    b562178 View commit details
    Browse the repository at this point in the history