Skip to content

Commit

Permalink
removed wrong 'dependent' parameter in MeetingProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoro committed Mar 7, 2022
1 parent f7c0478 commit db8946c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

_Please, add the latest build info on top of the list; use Version::MAJOR only after gold release; keep semantic versioning in line with framework's_

- **0.3.48** [Steve A.] removed wrong 'dependent' parameter in MeetingProgram
- **0.3.47** [Steve A.] removed wrong 'dependent' parameter in MeetingEvent
- **0.3.45** [Steve A.] added 'payed' to meeting reservations; renamed fin_calendars to simply 'calendars', with basic implementation & decorator; minor data-fix for existing reservations
- **0.3.44** [Steve A.] updated country gem; improved AbstractMeeting helper methods; added eager loading for Swimmer, Meeting, UserWorkshop and others as default scopes
Expand Down
6 changes: 3 additions & 3 deletions app/models/goggles_db/meeting_program.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module GogglesDb
#
# = MeetingProgram model
#
# - version: 7-0.3.35
# - version: 7-0.3.48
# - author: Steve A.
#
class MeetingProgram < ApplicationRecord
Expand Down Expand Up @@ -33,8 +33,8 @@ class MeetingProgram < ApplicationRecord
has_many :meeting_relay_swimmers, through: :meeting_relay_results
has_many :meeting_entries, dependent: :delete_all

# Laps are usually added before the actual final result is available:
has_many :laps, -> { joins(:laps).order('laps.length_in_meters') }, dependent: :delete_all
# Allow laps to be retrieved even if they are added before the final result is available:
has_many :laps

validates :event_order, presence: { length: { within: 1..3, allow_nil: false } }

Expand Down
2 changes: 1 addition & 1 deletion lib/goggles_db/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Version
CORE = 'C7'
MAJOR = '0'
MINOR = '3'
PATCH = '47'
PATCH = '48'
BUILD = '20220307'

# Full label
Expand Down

0 comments on commit db8946c

Please sign in to comment.