Made fixes suggested by @randx in pull request
See https://github.com/gitlabhq/gitlabhq/pull/3597#discussion-diff-4014638
This commit is contained in:
parent
de8df1be1a
commit
ec63804831
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue