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 9fbe38cbb..4befaeca8 100644 Binary files a/erd.pdf and b/erd.pdf differ