diff options
Diffstat (limited to 'app/models')
| -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 |
