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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
2a4359a5
Commit
2a4359a5
authored
Sep 26, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotate models
parent
a8870e87
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
86 additions
and
57 deletions
+86
-57
app/models/event.rb
app/models/event.rb
+5
-5
app/models/issue.rb
app/models/issue.rb
+7
-8
app/models/key.rb
app/models/key.rb
+3
-3
app/models/merge_request.rb
app/models/merge_request.rb
+7
-7
app/models/milestone.rb
app/models/milestone.rb
+3
-3
app/models/note.rb
app/models/note.rb
+3
-3
app/models/project.rb
app/models/project.rb
+7
-7
app/models/project_hook.rb
app/models/project_hook.rb
+12
-0
app/models/protected_branch.rb
app/models/protected_branch.rb
+2
-2
app/models/snippet.rb
app/models/snippet.rb
+3
-3
app/models/system_hook.rb
app/models/system_hook.rb
+12
-0
app/models/user.rb
app/models/user.rb
+12
-7
app/models/users_project.rb
app/models/users_project.rb
+4
-4
app/models/web_hook.rb
app/models/web_hook.rb
+3
-2
app/models/wiki.rb
app/models/wiki.rb
+3
-3
No files found.
app/models/event.rb
View file @
2a4359a5
...
...
@@ -144,15 +144,15 @@ end
#
# Table name: events
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# target_type :string(255)
# target_id :integer
(4)
# target_id :integer
# title :string(255)
# data :text
# project_id :integer
(4)
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# action :integer
(4)
# author_id :integer
(4)
# action :integer
# author_id :integer
#
app/models/issue.rb
View file @
2a4359a5
...
...
@@ -36,18 +36,17 @@ end
#
# Table name: issues
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# title :string(255)
# assignee_id :integer
(4)
# author_id :integer
(4)
# project_id :integer
(4)
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# closed :boolean(1) default(FALSE), not null
# position :integer(4) default(0)
# critical :boolean(1) default(FALSE), not null
# closed :boolean default(FALSE), not null
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
(4)
# milestone_id :integer
#
app/models/key.rb
View file @
2a4359a5
...
...
@@ -61,13 +61,13 @@ end
#
# Table name: keys
#
# id :integer
(4)
not null, primary key
# user_id :integer
(4)
# id :integer
not null, primary key
# user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# key :text
# title :string(255)
# identifier :string(255)
# project_id :integer
(4)
# project_id :integer
#
app/models/merge_request.rb
View file @
2a4359a5
...
...
@@ -191,19 +191,19 @@ end
#
# Table name: merge_requests
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# target_branch :string(255) not null
# source_branch :string(255) not null
# project_id :integer
(4)
not null
# author_id :integer
(4)
# assignee_id :integer
(4)
# project_id :integer
not null
# author_id :integer
# assignee_id :integer
# title :string(255)
# closed :boolean
(1)
default(FALSE), not null
# closed :boolean
default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647
# st_diffs :text(2147483647
# merged :boolean
(1)
default(FALSE), not null
# state :integer
(4)
default(1), not null
# merged :boolean
default(FALSE), not null
# state :integer
default(1), not null
#
app/models/milestone.rb
View file @
2a4359a5
...
...
@@ -2,12 +2,12 @@
#
# Table name: milestones
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# title :string(255) not null
# project_id :integer
(4)
not null
# project_id :integer
not null
# description :text
# due_date :date
# closed :boolean
(1)
default(FALSE), not null
# closed :boolean
default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
#
...
...
app/models/note.rb
View file @
2a4359a5
...
...
@@ -118,14 +118,14 @@ end
#
# Table name: notes
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# note :text
# noteable_id :string(255)
# noteable_type :string(255)
# author_id :integer
(4)
# author_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# project_id :integer
(4)
# project_id :integer
# attachment :string(255)
# line_code :string(255)
#
...
...
app/models/project.rb
View file @
2a4359a5
...
...
@@ -182,19 +182,19 @@ end
#
# Table name: projects
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime not null
# updated_at :datetime not null
# private_flag :boolean
(1)
default(TRUE), not null
# private_flag :boolean
default(TRUE), not null
# code :string(255)
# owner_id :integer
(4)
# owner_id :integer
# default_branch :string(255)
# issues_enabled :boolean
(1)
default(TRUE), not null
# wall_enabled :boolean
(1)
default(TRUE), not null
# merge_requests_enabled :boolean
(1)
default(TRUE), not null
# wiki_enabled :boolean
(1)
default(TRUE), not null
# issues_enabled :boolean
default(TRUE), not null
# wall_enabled :boolean
default(TRUE), not null
# merge_requests_enabled :boolean
default(TRUE), not null
# wiki_enabled :boolean
default(TRUE), not null
#
app/models/project_hook.rb
View file @
2a4359a5
# == Schema Information
#
# Table name: web_hooks
#
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255) default("ProjectHook")
#
class
ProjectHook
<
WebHook
belongs_to
:project
end
app/models/protected_branch.rb
View file @
2a4359a5
...
...
@@ -22,8 +22,8 @@ end
#
# Table name: protected_branches
#
# id :integer
(4)
not null, primary key
# project_id :integer
(4)
not null
# id :integer
not null, primary key
# project_id :integer
not null
# name :string(255) not null
# created_at :datetime not null
# updated_at :datetime not null
...
...
app/models/snippet.rb
View file @
2a4359a5
...
...
@@ -63,11 +63,11 @@ end
#
# Table name: snippets
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# title :string(255)
# content :text
# author_id :integer
(4)
not null
# project_id :integer
(4)
not null
# author_id :integer
not null
# project_id :integer
not null
# created_at :datetime not null
# updated_at :datetime not null
# file_name :string(255)
...
...
app/models/system_hook.rb
View file @
2a4359a5
# == Schema Information
#
# Table name: web_hooks
#
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255) default("ProjectHook")
#
class
SystemHook
<
WebHook
def
async_execute
(
data
)
...
...
app/models/user.rb
View file @
2a4359a5
...
...
@@ -111,13 +111,13 @@ end
#
# Table name: users
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(128) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer
(4)
default(0)
# sign_in_count :integer
default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
...
...
@@ -125,14 +125,19 @@ end
# created_at :datetime not null
# updated_at :datetime not null
# name :string(255)
# admin :boolean
(1)
default(FALSE), not null
# projects_limit :integer
(4)
default(10)
# admin :boolean
default(FALSE), not null
# projects_limit :integer
default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# dark_scheme :boolean
(1)
default(FALSE), not null
# theme_id :integer
(4)
default(1), not null
# dark_scheme :boolean
default(FALSE), not null
# theme_id :integer
default(1), not null
# bio :string(255)
# blocked :boolean(1) default(FALSE), not null
# blocked :boolean default(FALSE), not null
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
#
app/models/users_project.rb
View file @
2a4359a5
...
...
@@ -92,11 +92,11 @@ end
#
# Table name: users_projects
#
# id :integer
(4)
not null, primary key
# user_id :integer
(4)
not null
# project_id :integer
(4)
not null
# id :integer
not null, primary key
# user_id :integer
not null
# project_id :integer
not null
# created_at :datetime not null
# updated_at :datetime not null
# project_access :integer
(4)
default(0), not null
# project_access :integer
default(0), not null
#
app/models/web_hook.rb
View file @
2a4359a5
...
...
@@ -30,10 +30,11 @@ end
#
# Table name: web_hooks
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# url :string(255)
# project_id :integer
(4)
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255) default("ProjectHook")
#
app/models/wiki.rb
View file @
2a4359a5
...
...
@@ -36,13 +36,13 @@ end
#
# Table name: wikis
#
# id :integer
(4)
not null, primary key
# id :integer
not null, primary key
# title :string(255)
# content :text
# project_id :integer
(4)
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# slug :string(255)
# user_id :integer
(4)
# user_id :integer
#
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