aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/image.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/image.rb')
-rw-r--r--activerecord/test/models/image.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/image.rb b/activerecord/test/models/image.rb
new file mode 100644
index 0000000000..7ae8e4a7f6
--- /dev/null
+++ b/activerecord/test/models/image.rb
@@ -0,0 +1,3 @@
+class Image < ActiveRecord::Base
+ belongs_to :imageable, foreign_key: :imageable_identifier, foreign_type: :imageable_class
+end