From 584a39ee3f0bf9e4a10612e9216e7709eb4e68c1 Mon Sep 17 00:00:00 2001 From: moveson Date: Wed, 18 Dec 2024 17:50:22 -0700 Subject: [PATCH] Add filename and byte_size to file_downloads table --- .../20241219004057_create_file_downloads.rb | 2 ++ db/schema.rb | 2 ++ erd.pdf | Bin 76461 -> 76461 bytes 3 files changed, 4 insertions(+) diff --git a/db/migrate/20241219004057_create_file_downloads.rb b/db/migrate/20241219004057_create_file_downloads.rb index e1953153a..10f9cf966 100644 --- a/db/migrate/20241219004057_create_file_downloads.rb +++ b/db/migrate/20241219004057_create_file_downloads.rb @@ -4,6 +4,8 @@ def change t.references :user, null: false, foreign_key: true t.references :record, polymorphic: true, null: false t.string :name, null: false + t.string :filename, null: false + t.string :byte_size, null: false t.timestamps end diff --git a/db/schema.rb b/db/schema.rb index d8df9d61a..89844e8e0 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -260,6 +260,8 @@ t.string "record_type", null: false t.bigint "record_id", null: false t.string "name", null: false + t.string "filename", null: false + t.string "byte_size", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["record_type", "record_id"], name: "index_file_downloads_on_record" diff --git a/erd.pdf b/erd.pdf index 9fbe38cbb07b53fb73b6347ae1c58ea9e36f24f8..4befaeca83a7cfea92a2455e89a0e158a803aedc 100644 GIT binary patch delta 587 zcmV-R0<`_D)da281c0;w+$Vp7Fc`(}{uS>sW)G`Ls%clGhgv9O48-m>b_g+8VHio` zSpWMaS{);&@5lG@-s7Vn5zmm3h=FD_;vAbTkMbPJ`>j_e*HQlWl;;VDL-6zRN8zcH_EA3jFX0?BszA;L;R(B`i z6ynpK5tdR$cXXRR6aGZDkA$pdlfPJa@YX?J3Zp`fkZc5Rs&2(m|MJKg^w1;E!w}}lWu!B@cxpsv``{*TGk$?HgPNzpZ=KY4D^+zq2Ix}4vnzk`EI>i^L4<8bcs++$|8Sa{5WX42!V{%q#V0$6XUS8gA!bg3`$ zXPLZyhuI6<*}}-2*GUbp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