summaryrefslogtreecommitdiff
path: root/db/migrate/20241226113752_create_scores.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 /db/migrate/20241226113752_create_scores.rb
First commit.
Diffstat (limited to 'db/migrate/20241226113752_create_scores.rb')
-rw-r--r--db/migrate/20241226113752_create_scores.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20241226113752_create_scores.rb b/db/migrate/20241226113752_create_scores.rb
new file mode 100644
index 0000000..488baaa
--- /dev/null
+++ b/db/migrate/20241226113752_create_scores.rb
@@ -0,0 +1,11 @@
+class CreateScores < ActiveRecord::Migration[8.0]
+ def change
+ create_table :scores do |t|
+ t.references :tartiflette, null: false, foreign_key: true
+ t.references :scoring_criterium, null: false, foreign_key: true
+ t.integer :value
+
+ t.timestamps
+ end
+ end
+end
Copyright 2019--2025 Marius PETER