diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-30 19:15:22 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-30 19:22:24 +0200 |
| commit | a7a6ad786eeb9f94f7882462bccbdd31e1bb4743 (patch) | |
| tree | ecc0a17db462065b27270f7e593a8244e24c8846 /config/initializers/postgresql_adapter_patch.rb | |
| parent | 31ca8e93efa860d73918b57ddddeaedf9917b22d (diff) | |
Phase 1: standalone events, external_url on nodes
- Migration: node_id nullable on events and occurrences, add
title/description/is_primary to events, external_url to nodes
- Existing events marked is_primary: true (were all 1:1 with nodes)
- Node: has_one :event -> has_many :events
- Event: belongs_to :node optional, validates title presence for
standalone events, is_primary uniqueness scoped to node_id,
display_title helper falling back through node title
- Occurrence: belongs_to :node optional, summary falls back to
event.display_title
- nodes_helper: event_information uses events.first (interim; will
be replaced in Phase 3 event UI)
- Tests: fix node.event -> node.events.first in event_test
Diffstat (limited to 'config/initializers/postgresql_adapter_patch.rb')
0 files changed, 0 insertions, 0 deletions
