aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/tuning_peg.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/tuning_peg.rb')
-rw-r--r--activerecord/test/models/tuning_peg.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/tuning_peg.rb b/activerecord/test/models/tuning_peg.rb
new file mode 100644
index 0000000000..1252d6dc1d
--- /dev/null
+++ b/activerecord/test/models/tuning_peg.rb
@@ -0,0 +1,4 @@
+class TuningPeg < ActiveRecord::Base
+ belongs_to :guitar
+ validates_numericality_of :pitch
+end