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
ec638048
Commit
ec638048
authored
May 02, 2013
by
Angus MacArthur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made fixes suggested by @randx in pull request
See
https://github.com/gitlabhq/gitlabhq/pull/3597#discussion-diff-4014638
parent
de8df1be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ability.rb
app/models/ability.rb
+4
-3
20130319214458_create_forked_project_links.rb
db/migrate/20130319214458_create_forked_project_links.rb
+3
-3
No files found.
app/models/ability.rb
View file @
ec638048
...
...
@@ -60,15 +60,16 @@ class Ability
:read_note
,
:write_project
,
:write_issue
,
:write_note
,
:fork_project
:write_note
]
end
def
project_report_rules
project_guest_rules
+
[
:download_code
,
:write_snippet
:write_snippet
,
:fork_project
]
end
...
...
db/migrate/20130319214458_create_forked_project_links.rb
View file @
ec638048
class
CreateForkedProjectLinks
<
ActiveRecord
::
Migration
def
change
create_table
:forked_project_links
do
|
t
|
t
.
integer
:forked_to_project_id
,
:null
=>
false
t
.
integer
:forked_from_project_id
,
:null
=>
false
t
.
integer
:forked_to_project_id
,
null:
false
t
.
integer
:forked_from_project_id
,
null:
false
t
.
timestamps
end
add_index
:forked_project_links
,
:forked_to_project_id
,
:unique
=>
true
add_index
:forked_project_links
,
:forked_to_project_id
,
unique:
true
end
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