aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/guitar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/guitar.rb')
-rw-r--r--activerecord/test/models/guitar.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/guitar.rb b/activerecord/test/models/guitar.rb
new file mode 100644
index 0000000000..649b998665
--- /dev/null
+++ b/activerecord/test/models/guitar.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+
+class Guitar < ActiveRecord::Base
+ has_many :tuning_pegs, index_errors: true
+ accepts_nested_attributes_for :tuning_pegs
+end