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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
9e487100
Commit
9e487100
authored
Jun 15, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validate project and environment instead of only requiring
parent
14433b34
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
473 deletions
+6
-473
app/models/deployment.rb
app/models/deployment.rb
+2
-2
db/migrate/20160610204157_add_deployments.rb
db/migrate/20160610204157_add_deployments.rb
+2
-2
db/schema.rb
db/schema.rb
+2
-469
No files found.
app/models/deployment.rb
View file @
9e487100
class
Deployment
<
ActiveRecord
::
Base
include
InternalId
belongs_to
:project
,
required
:
true
belongs_to
:environment
,
required
:
true
belongs_to
:project
,
validate
:
true
belongs_to
:environment
,
validate
:
true
belongs_to
:user
belongs_to
:deployable
,
polymorphic:
true
...
...
db/migrate/20160610204157_add_deployments.rb
View file @
9e487100
...
...
@@ -7,8 +7,8 @@ class AddDeployments < ActiveRecord::Migration
def
change
create_table
:deployments
,
force:
true
do
|
t
|
t
.
integer
:iid
,
null:
false
t
.
integer
:project_id
t
.
integer
:environment_id
t
.
integer
:project_id
,
null:
false
t
.
integer
:environment_id
,
null:
false
t
.
string
:ref
,
null:
false
t
.
boolean
:tag
,
null:
false
t
.
string
:sha
,
null:
false
...
...
db/schema.rb
View file @
9e487100
This diff is collapsed.
Click to expand it.
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