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
636376dd
Commit
636376dd
authored
Sep 18, 2017
by
Zeger-Jan van de Weg
Committed by
Kamil Trzcinski
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
e0f84130
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
app/models/ci/artifact.rb
app/models/ci/artifact.rb
+12
-0
db/migrate/20170918072948_create_artifacts.rb
db/migrate/20170918072948_create_artifacts.rb
+8
-0
spec/models/ci/artifact_spec.rb
spec/models/ci/artifact_spec.rb
+5
-0
No files found.
app/models/ci/artifact.rb
0 → 100644
View file @
636376dd
module
Ci
class
Artifact
<
ActiveRecord
::
Base
belongs_to
:build
,
class_name:
"Ci::Build"
belongs_to
:project
,
class_name:
"Ci::Build"
enum
type
{
archive:
0
,
metadata:
1
,
trace:
2
}
end
end
db/migrate/20170918072948_create_artifacts.rb
0 → 100644
View file @
636376dd
class
CreateArtifacts
<
ActiveRecord
::
Migration
def
change
create_table
:artifacts
do
|
t
|
t
.
timestamps
null:
false
end
end
end
spec/models/ci/artifact_spec.rb
0 → 100644
View file @
636376dd
require
'rails_helper'
RSpec
.
describe
Artifact
,
type: :model
do
pending
"add some examples to (or delete)
#{
__FILE__
}
"
end
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