From 819a3edae405227f11283ad494a7f4ca9c771467 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 21 Aug 2021 19:30:19 -0400 Subject: init --- app/models/machine.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/models/machine.rb (limited to 'app/models/machine.rb') diff --git a/app/models/machine.rb b/app/models/machine.rb new file mode 100644 index 0000000..5563abb --- /dev/null +++ b/app/models/machine.rb @@ -0,0 +1,4 @@ +class Machine < ApplicationRecord + validates :name, presence: true + validates :edition, presence: true +end -- cgit 1.4.1