uploads: make upload_media_assets.media_asset_id nullable.

Make upload_media_assets.media_asset_id nullable in order to support
multi-file uploads. The media asset will be null while the image is
still being downloaded from the source.
This commit is contained in:
evazion
2022-02-10 14:09:15 -06:00
parent 70d38d9e0b
commit c2ed5c2841
3 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
class UploadMediaAsset < ApplicationRecord
belongs_to :upload
belongs_to :media_asset
belongs_to :media_asset, optional: true
enum status: {
pending: 0,