diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 16:55:46 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 16:55:46 +0200 |
| commit | 6a1102e69230ed62138b8e6aec8a6348e8571b23 (patch) | |
| tree | faef6c4062714dbbc421665fa8c1b16bfae2f25d | |
| parent | 37c542bee952193ebfbced8529b8699e2712fdc8 (diff) | |
Give action_participants an explicit order
| -rw-r--r-- | app/models/node_action.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/node_action.rb b/app/models/node_action.rb index a9bb0e45..fec5a062 100644 --- a/app/models/node_action.rb +++ b/app/models/node_action.rb | |||
| @@ -3,7 +3,7 @@ class NodeAction < ApplicationRecord | |||
| 3 | belongs_to :page, optional: true | 3 | belongs_to :page, optional: true |
| 4 | belongs_to :user, optional: true | 4 | belongs_to :user, optional: true |
| 5 | 5 | ||
| 6 | has_many :action_participants, :dependent => :destroy | 6 | has_many :action_participants, -> { order(:id) }, :dependent => :destroy |
| 7 | 7 | ||
| 8 | validates :action, presence: true | 8 | validates :action, presence: true |
| 9 | validates :occurred_at, presence: true | 9 | validates :occurred_at, presence: true |
