summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-03 02:00:53 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-03 02:00:53 +0200
commitbff34fb568f7a83c03e2e51b458a1e44b67b794e (patch)
tree00d0dd9de6f3df600a727b8d745dbd202c0292ae /config/initializers
parent4ffa03a809f19b3676e08e452475c0bc586a5ea9 (diff)
ascade-destroy occurrences; support events without a fixed start time
- Event#occurrences is now dependent: :destroy, so destroying an Event (directly, or via Node's cascade) removes its Occurrence rows instead of orphaning them. - Renamed generate_occurences -> generate_occurrences (typo fix); callback and method updated together. - Occurrence.generate returns early when event.start_time is nil, so a chapter with no sourced time produces zero occurrences instead of a guessed one. - seed_chapter no longer falls back to 19:00 when start_time is absent; base_time/end_time are nil in that case. Database-level foreign key cascade on occurrences.event_id is still pending.
Diffstat (limited to 'config/initializers')
0 files changed, 0 insertions, 0 deletions