summaryrefslogtreecommitdiffhomepage
path: root/db
diff options
context:
space:
mode:
authorTradam <[email protected]>2024-05-29 19:26:06 -0400
committerTradam <[email protected]>2024-05-29 19:26:06 -0400
commit22c1d8d71de2bd52513f684196fa66a53e7362aa (patch)
tree783537b87d8e8523b319a4fc5ea441ca55a0eb8c /db
parentfd4edcfac9041cadfc4c88257555c02736bc4ba4 (diff)
downloadgameHolster-22c1d8d71de2bd52513f684196fa66a53e7362aa.tar.gz
gameHolster-22c1d8d71de2bd52513f684196fa66a53e7362aa.zip
switch over to serving games through zip and make unity games work
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20240521205000_create_games.rb5
-rw-r--r--db/migrate/20240527231908_add_path_to_active_storage_blobs.rb5
-rw-r--r--db/schema.rb3
3 files changed, 10 insertions, 3 deletions
diff --git a/db/migrate/20240521205000_create_games.rb b/db/migrate/20240521205000_create_games.rb
index 236c070..d65b118 100644
--- a/db/migrate/20240521205000_create_games.rb
+++ b/db/migrate/20240521205000_create_games.rb
@@ -4,9 +4,10 @@ class CreateGames < ActiveRecord::Migration[7.1]
t.string :title
t.string :titleSlug
t.string :description
+ t.string :github_link
t.string :img_rendering
- #t.integer :status, default: 0
- #t.integer :order, default: 0
+ t.integer :status, default: 0
+ t.integer :order, default: 0
t.timestamps
end
diff --git a/db/migrate/20240527231908_add_path_to_active_storage_blobs.rb b/db/migrate/20240527231908_add_path_to_active_storage_blobs.rb
new file mode 100644
index 0000000..c591ae1
--- /dev/null
+++ b/db/migrate/20240527231908_add_path_to_active_storage_blobs.rb
@@ -0,0 +1,5 @@
+class AddPathToActiveStorageBlobs < ActiveRecord::Migration[7.1]
+ def change
+ add_column :active_storage_blobs, :filepath, :string, null: false, default: ''
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index cee805e..58a01aa 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[7.1].define(version: 2024_05_21_205000) do
+ActiveRecord::Schema[7.1].define(version: 2024_05_27_231908) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -33,6 +33,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_05_21_205000) do
t.bigint "byte_size", null: false
t.string "checksum"
t.datetime "created_at", null: false
+ t.string "filepath", default: "", null: false
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
end