about summary refs log tree commit diff
path: root/app/models
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
init
Diffstat (limited to 'app/models')
-rw-r--r--app/models/application_record.rb3
-rw-r--r--app/models/concerns/.keep0
-rw-r--r--app/models/machine.rb4
-rw-r--r--app/models/player.rb2
4 files changed, 9 insertions, 0 deletions
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
new file mode 100644
index 0000000..10a4cba
--- /dev/null
+++ b/app/models/application_record.rb
@@ -0,0 +1,3 @@
+class ApplicationRecord < ActiveRecord::Base
+  self.abstract_class = true
+end
diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/models/concerns/.keep
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
diff --git a/app/models/player.rb b/app/models/player.rb
new file mode 100644
index 0000000..1bc55b4
--- /dev/null
+++ b/app/models/player.rb
@@ -0,0 +1,2 @@
+class Player < ApplicationRecord
+end