about summary refs log tree commit diff stats
path: root/db/migrate
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
commit0929719a845897cc8567cf972e07a69a71f0fa6f (patch)
tree2b6f69c1d906abb6e0abf8a0f1d51725bc78087d /db/migrate
parent01c1947537e4e23ded0c16812a7cd9d49ad88356 (diff)
downloadwittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.gz
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.bz2
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.zip
Migrate to a full rails app
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20231130173455_create_puzzles.rb (renamed from db/migrate/20231028205751_create_wittle_puzzles.rb)4
-rw-r--r--db/migrate/20231130173513_create_scores.rb (renamed from db/migrate/20231028210722_create_wittle_scores.rb)4
2 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20231028205751_create_wittle_puzzles.rb b/db/migrate/20231130173455_create_puzzles.rb index ebe0bf7..548473a 100644 --- a/db/migrate/20231028205751_create_wittle_puzzles.rb +++ b/db/migrate/20231130173455_create_puzzles.rb
@@ -1,6 +1,6 @@
1class CreateWittlePuzzles < ActiveRecord::Migration[7.1] 1class CreatePuzzles < ActiveRecord::Migration[7.1]
2 def change 2 def change
3 create_table :wittle_puzzles do |t| 3 create_table :puzzles do |t|
4 t.text :data 4 t.text :data
5 t.text :solved_data 5 t.text :solved_data
6 t.string :category 6 t.string :category
diff --git a/db/migrate/20231028210722_create_wittle_scores.rb b/db/migrate/20231130173513_create_scores.rb index aa49a13..953ba8d 100644 --- a/db/migrate/20231028210722_create_wittle_scores.rb +++ b/db/migrate/20231130173513_create_scores.rb
@@ -1,6 +1,6 @@
1class CreateWittleScores < ActiveRecord::Migration[7.1] 1class CreateScores < ActiveRecord::Migration[7.1]
2 def change 2 def change
3 create_table :wittle_scores do |t| 3 create_table :scores do |t|
4 t.references :puzzle, null: false 4 t.references :puzzle, null: false
5 t.string :name 5 t.string :name
6 t.string :ip 6 t.string :ip