about summary refs log tree commit diff stats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20231030181439_create_wittle_puzzles.wittle.rb12
-rw-r--r--db/migrate/20231030181440_create_wittle_scores.wittle.rb13
2 files changed, 25 insertions, 0 deletions
diff --git a/db/migrate/20231030181439_create_wittle_puzzles.wittle.rb b/db/migrate/20231030181439_create_wittle_puzzles.wittle.rb new file mode 100644 index 0000000..9accf92 --- /dev/null +++ b/db/migrate/20231030181439_create_wittle_puzzles.wittle.rb
@@ -0,0 +1,12 @@
1# This migration comes from wittle (originally 20231028205751)
2class CreateWittlePuzzles < ActiveRecord::Migration[7.1]
3 def change
4 create_table :wittle_puzzles do |t|
5 t.text :data
6 t.text :solved_data
7 t.string :category
8
9 t.timestamps
10 end
11 end
12end
diff --git a/db/migrate/20231030181440_create_wittle_scores.wittle.rb b/db/migrate/20231030181440_create_wittle_scores.wittle.rb new file mode 100644 index 0000000..5110221 --- /dev/null +++ b/db/migrate/20231030181440_create_wittle_scores.wittle.rb
@@ -0,0 +1,13 @@
1# This migration comes from wittle (originally 20231028210722)
2class CreateWittleScores < ActiveRecord::Migration[7.1]
3 def change
4 create_table :wittle_scores do |t|
5 t.references :puzzle, null: false
6 t.string :name
7 t.string :ip
8 t.integer :seconds_taken
9
10 t.timestamps
11 end
12 end
13end