aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/ship_part.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/ship_part.rb')
-rw-r--r--activerecord/test/models/ship_part.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/ship_part.rb b/activerecord/test/models/ship_part.rb
new file mode 100644
index 0000000000..0a606db239
--- /dev/null
+++ b/activerecord/test/models/ship_part.rb
@@ -0,0 +1,5 @@
+class ShipPart < ActiveRecord::Base
+ belongs_to :ship
+
+ validates_presence_of :name
+end \ No newline at end of file