From 0929719a845897cc8567cf972e07a69a71f0fa6f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 30 Nov 2023 13:29:08 -0500 Subject: Migrate to a full rails app --- db/migrate/20231130173513_create_scores.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrate/20231130173513_create_scores.rb (limited to 'db/migrate/20231130173513_create_scores.rb') diff --git a/db/migrate/20231130173513_create_scores.rb b/db/migrate/20231130173513_create_scores.rb new file mode 100644 index 0000000..953ba8d --- /dev/null +++ b/db/migrate/20231130173513_create_scores.rb @@ -0,0 +1,12 @@ +class CreateScores < ActiveRecord::Migration[7.1] + def change + create_table :scores do |t| + t.references :puzzle, null: false + t.string :name + t.string :ip + t.integer :seconds_taken + + t.timestamps + end + end +end -- cgit 1.4.1