diff --git a/test/dummy/app/models/comment.rb b/test/dummy/app/models/comment.rb
index <HASH>..<HASH> 100644
--- a/test/dummy/app/models/comment.rb
+++ b/test/dummy/app/models/comment.rb
@@ -1,3 +1,3 @@
 class Comment < ActiveRecord::Base
-  has_many :likes
+  has_many :likes, as: :likeable
 end
diff --git a/test/dummy/app/models/post.rb b/test/dummy/app/models/post.rb
index <HASH>..<HASH> 100644
--- a/test/dummy/app/models/post.rb
+++ b/test/dummy/app/models/post.rb
@@ -1,3 +1,3 @@
 class Post < ActiveRecord::Base
-  has_many :likes
+  has_many :likes, as: :likeable
 end
updated has_many entries in models related to polymorphic associations