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/20231028205751_create_wittle_puzzles.rb | 11 ----------- db/migrate/20231028210722_create_wittle_scores.rb | 12 ------------ db/migrate/20231130173455_create_puzzles.rb | 11 +++++++++++ db/migrate/20231130173513_create_scores.rb | 12 ++++++++++++ 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 db/migrate/20231028205751_create_wittle_puzzles.rb delete mode 100644 db/migrate/20231028210722_create_wittle_scores.rb create mode 100644 db/migrate/20231130173455_create_puzzles.rb create mode 100644 db/migrate/20231130173513_create_scores.rb (limited to 'db/migrate') diff --git a/db/migrate/20231028205751_create_wittle_puzzles.rb b/db/migrate/20231028205751_create_wittle_puzzles.rb deleted file mode 100644 index ebe0bf7..0000000 --- a/db/migrate/20231028205751_create_wittle_puzzles.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateWittlePuzzles < ActiveRecord::Migration[7.1] - def change - create_table :wittle_puzzles do |t| - t.text :data - t.text :solved_data - t.string :category - - t.timestamps - end - end -end diff --git a/db/migrate/20231028210722_create_wittle_scores.rb b/db/migrate/20231028210722_create_wittle_scores.rb deleted file mode 100644 index aa49a13..0000000 --- a/db/migrate/20231028210722_create_wittle_scores.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateWittleScores < ActiveRecord::Migration[7.1] - def change - create_table :wittle_scores do |t| - t.references :puzzle, null: false - t.string :name - t.string :ip - t.integer :seconds_taken - - t.timestamps - end - end -end diff --git a/db/migrate/20231130173455_create_puzzles.rb b/db/migrate/20231130173455_create_puzzles.rb new file mode 100644 index 0000000..548473a --- /dev/null +++ b/db/migrate/20231130173455_create_puzzles.rb @@ -0,0 +1,11 @@ +class CreatePuzzles < ActiveRecord::Migration[7.1] + def change + create_table :puzzles do |t| + t.text :data + t.text :solved_data + t.string :category + + t.timestamps + end + end +end 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