Sha256: a281951bb9cea934aedd45cb278b5e39edf59336c6e983c3b601c729e5ea0847
Contents?: true
Size: 478 Bytes
Versions: 10
Compression:
Stored size: 478 Bytes
Contents
module Hyrax # Store a file uploaded by a user. Eventually these files get # attached to FileSets and pushed into Fedora. class UploadedFile < ActiveRecord::Base self.table_name = 'uploaded_files' mount_uploader :file, UploadedFileUploader alias uploader file has_many :job_io_wrappers, inverse_of: 'uploaded_file', class_name: 'JobIoWrapper', dependent: :destroy belongs_to :user, class_name: '::User' end end
Version data entries
10 entries across 10 versions & 1 rubygems