aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/user.rb')
-rw-r--r--activerecord/test/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/user.rb b/activerecord/test/models/user.rb
index 23cd2e0e1c..f5dc93e994 100644
--- a/activerecord/test/models/user.rb
+++ b/activerecord/test/models/user.rb
@@ -2,3 +2,7 @@ class User < ActiveRecord::Base
has_secure_token
has_secure_token :auth_token
end
+
+class UserWithNotification < User
+ after_create -> { Notification.create! message: "A new user has been created." }
+end