Skip to content

Commit

Permalink
Add filename and byte_size to file_downloads table
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Dec 19, 2024
1 parent d03d790 commit 584a39e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/migrate/20241219004057_create_file_downloads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Binary file modified erd.pdf
Binary file not shown.

0 comments on commit 584a39e

Please sign in to comment.