Commit de2f836b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add package uploader [ci skip]

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6d8c8ac7
class Packages::PackageFile < ActiveRecord::Base
belongs_to :package
mount_uploader :file, PackageFileUploader
end
class Packages::PackageFileUploader < GitlabUploader
extend Workhorse::UploadPath
include ObjectStorage::Concern
# TODO: Implement me
end
......@@ -6,6 +6,7 @@ class CreatePackagesPackageFiles < ActiveRecord::Migration
t.references :package, index: true, foreign_key: { on_delete: :cascade }, null: false
t.string :file
t.integer :file_type
t.integer :file_store
t.integer :size
t.binary :file_md5
t.binary :file_sha1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment