about summary refs log tree commit diff
path: root/app/models/machine.rb
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2021-08-21 19:30:19 -0400
committerBen Harris <ben@tilde.team>2021-08-21 19:30:33 -0400
commit819a3edae405227f11283ad494a7f4ca9c771467 (patch)
tree8da57ee1777f992f4f13879795916615009f6a53 /app/models/machine.rb
init
Diffstat (limited to 'app/models/machine.rb')
-rw-r--r--app/models/machine.rb4
1 files changed, 4 insertions, 0 deletions
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