aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/wheel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/wheel.rb')
-rw-r--r--activerecord/test/models/wheel.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/models/wheel.rb b/activerecord/test/models/wheel.rb
index cba2b3e518..22fc74995f 100644
--- a/activerecord/test/models/wheel.rb
+++ b/activerecord/test/models/wheel.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class Wheel < ActiveRecord::Base
- belongs_to :wheelable, polymorphic: true, counter_cache: true
+ belongs_to :wheelable, polymorphic: true, counter_cache: true, touch: :wheels_owned_at
end