summaryrefslogtreecommitdiff
path: root/app/models/score.rb
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
commitbe2a93525069de2dfa3c23b0c23e7a9f7ad4c03d (patch)
treeb5493e9d35d024ce7be072ec2168b4a98ba0e63f /app/models/score.rb
First commit.
Diffstat (limited to 'app/models/score.rb')
-rw-r--r--app/models/score.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/score.rb b/app/models/score.rb
new file mode 100644
index 0000000..5147ce0
--- /dev/null
+++ b/app/models/score.rb
@@ -0,0 +1,6 @@
+class Score < ApplicationRecord
+ belongs_to :tartiflette
+ belongs_to :scoring_criterium
+
+ validates :value, presence: true, inclusion: { in: 1..5 }
+end
Copyright 2019--2025 Marius PETER