diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-30 13:29:08 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-30 13:29:08 -0500 |
commit | 0929719a845897cc8567cf972e07a69a71f0fa6f (patch) | |
tree | 2b6f69c1d906abb6e0abf8a0f1d51725bc78087d /db/migrate | |
parent | 01c1947537e4e23ded0c16812a7cd9d49ad88356 (diff) | |
download | wittle-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 @@ | |||
1 | class CreateWittlePuzzles < ActiveRecord::Migration[7.1] | 1 | class 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 @@ | |||
1 | class CreateWittleScores < ActiveRecord::Migration[7.1] | 1 | class 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 |