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
Jérome Perrin
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/models/project.rb
app/models/project.rb
+1
-2
spec/models/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