Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
de2f836b
Commit
de2f836b
authored
Jul 20, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add package uploader [ci skip]
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
6d8c8ac7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
app/models/packages/package_file.rb
app/models/packages/package_file.rb
+2
-0
app/uploaders/packages/package_file_uploader.rb
app/uploaders/packages/package_file_uploader.rb
+6
-0
db/migrate/20180720120026_create_packages_package_files.rb
db/migrate/20180720120026_create_packages_package_files.rb
+1
-0
No files found.
app/models/packages/package_file.rb
View file @
de2f836b
class
Packages::PackageFile
<
ActiveRecord
::
Base
belongs_to
:package
mount_uploader
:file
,
PackageFileUploader
end
app/uploaders/packages/package_file_uploader.rb
0 → 100644
View file @
de2f836b
class
Packages::PackageFileUploader
<
GitlabUploader
extend
Workhorse
::
UploadPath
include
ObjectStorage
::
Concern
# TODO: Implement me
end
db/migrate/20180720120026_create_packages_package_files.rb
View file @
de2f836b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment