app/models/s3_relay/upload.rb in mongoid-direct-s3-upload-0.1.2 vs app/models/s3_relay/upload.rb in mongoid-direct-s3-upload-0.1.3
- old
+ new
@@ -2,12 +2,12 @@
class Upload
include Mongoid::Document
field :uuid
- field :user_id, type: Integer
+ field :user_id, type: BSON::ObjectId
field :parent_type, type: String
- field :parent_id, type: Integer
+ field :parent_id, type: BSON::ObjectId
field :upload_type, type: String
field :filename, type: String
field :content_type, type: String
field :state, type: String
field :data, type: Hash, default: Hash.new