BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fb5a4202
Commit
fb5a4202
authored
Oct 05, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow projects to have many boards
parent
38978fa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
project.rb
app/models/project.rb
+1
-2
project_spec.rb
spec/models/project_spec.rb
+1
-1
No files found.
app/models/project.rb
View file @
fb5a4202
...
...
@@ -65,8 +65,7 @@ class Project < ActiveRecord::Base
belongs_to
:namespace
has_one
:last_event
,
->
{
order
'events.created_at DESC'
},
class_name:
'Event'
,
foreign_key:
'project_id'
has_one
:board
,
dependent: :destroy
has_many
:boards
,
dependent: :destroy
# Project services
has_many
:services
...
...
spec/models/project_spec.rb
View file @
fb5a4202
...
...
@@ -24,7 +24,7 @@ describe Project, models: true do
it
{
is_expected
.
to
have_one
(
:slack_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:pushover_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:asana_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_
one
(
:board
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_
many
(
:boards
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:campfire_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:drone_ci_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:emails_on_push_service
).
dependent
(
:destroy
)
}
...
...
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