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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1fc88b58
Commit
1fc88b58
authored
Jul 19, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotate approver and approval models
parent
3cc78d89
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
app/models/approval.rb
app/models/approval.rb
+11
-0
app/models/approver.rb
app/models/approver.rb
+12
-0
No files found.
app/models/approval.rb
View file @
1fc88b58
# == Schema Information
#
# Table name: approvals
#
# id :integer not null, primary key
# merge_request_id :integer not null
# user_id :integer not null
# created_at :datetime
# updated_at :datetime
#
class
Approval
<
ActiveRecord
::
Base
class
Approval
<
ActiveRecord
::
Base
belongs_to
:user
belongs_to
:user
belongs_to
:merge_request
belongs_to
:merge_request
...
...
app/models/approver.rb
View file @
1fc88b58
# == Schema Information
#
# Table name: approvers
#
# id :integer not null, primary key
# target_id :integer not null
# target_type :string(255)
# user_id :integer not null
# created_at :datetime
# updated_at :datetime
#
class
Approver
<
ActiveRecord
::
Base
class
Approver
<
ActiveRecord
::
Base
belongs_to
:target
,
polymorphic:
true
belongs_to
:target
,
polymorphic:
true
belongs_to
:user
belongs_to
:user
...
...
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