Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add missing belongs_to to UserAction model (#26415)

Martin Brennan1ab2fe0a81b8
diff --git a/app/models/user_action.rb b/app/models/user_action.rb
index 01828bf9337..8c4e8d3709e 100644
--- a/app/models/user_action.rb
+++ b/app/models/user_action.rb
@@ -2,6 +2,8 @@
class UserAction < ActiveRecord::Base
belongs_to :user
+ belongs_to :acting_user, class_name: "User"
+ belongs_to :target_user, class_name: "User"
belongs_to :target_post, class_name: "Post"
belongs_to :target_topic, class_name: "Topic"