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
Boxiang Sun
gitlab-ce
Commits
8dd37afe
Commit
8dd37afe
authored
Aug 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reannotate
parent
fb492386
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
144 additions
and
130 deletions
+144
-130
app/models/deploy_key.rb
app/models/deploy_key.rb
+8
-8
app/models/issue.rb
app/models/issue.rb
+3
-2
app/models/key.rb
app/models/key.rb
+8
-8
app/models/merge_request.rb
app/models/merge_request.rb
+16
-15
app/models/milestone.rb
app/models/milestone.rb
+1
-0
app/models/note.rb
app/models/note.rb
+3
-2
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+3
-3
app/models/project.rb
app/models/project.rb
+3
-2
app/models/project_hook.rb
app/models/project_hook.rb
+2
-2
app/models/project_snippet.rb
app/models/project_snippet.rb
+3
-3
app/models/service_hook.rb
app/models/service_hook.rb
+2
-2
app/models/snippet.rb
app/models/snippet.rb
+3
-3
app/models/system_hook.rb
app/models/system_hook.rb
+2
-2
app/models/user.rb
app/models/user.rb
+3
-3
app/models/users_group.rb
app/models/users_group.rb
+7
-6
app/models/users_project.rb
app/models/users_project.rb
+2
-2
app/models/web_hook.rb
app/models/web_hook.rb
+2
-2
spec/factories/users_groups.rb
spec/factories/users_groups.rb
+7
-6
spec/models/deploy_key_spec.rb
spec/models/deploy_key_spec.rb
+8
-8
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+3
-2
spec/models/key_spec.rb
spec/models/key_spec.rb
+8
-8
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+16
-14
spec/models/milestone_spec.rb
spec/models/milestone_spec.rb
+1
-0
spec/models/note_spec.rb
spec/models/note_spec.rb
+3
-2
spec/models/project_snippet_spec.rb
spec/models/project_snippet_spec.rb
+3
-3
spec/models/project_spec.rb
spec/models/project_spec.rb
+3
-2
spec/models/service_hook_spec.rb
spec/models/service_hook_spec.rb
+2
-2
spec/models/snippet_spec.rb
spec/models/snippet_spec.rb
+3
-3
spec/models/system_hook_spec.rb
spec/models/system_hook_spec.rb
+2
-2
spec/models/user_spec.rb
spec/models/user_spec.rb
+3
-3
spec/models/users_group_spec.rb
spec/models/users_group_spec.rb
+7
-6
spec/models/users_project_spec.rb
spec/models/users_project_spec.rb
+2
-2
spec/models/web_hook_spec.rb
spec/models/web_hook_spec.rb
+2
-2
No files found.
app/models/deploy_key.rb
View file @
8dd37afe
...
...
@@ -2,14 +2,14 @@
#
# Table name: keys
#
# id :integer not null, primary key
# user_id :integer
# created_at
:datetime
# updated_at
:datetime
# key :text
# title :string(255)
#
identifier
:string(255)
#
type
:string(255)
# id
:integer not null, primary key
# user_id
:integer
# created_at
:datetime not null
# updated_at
:datetime not null
# key
:text
# title
:string(255)
#
type
:string(255)
#
fingerprint
:string(255)
#
class
DeployKey
<
Key
...
...
app/models/issue.rb
View file @
8dd37afe
...
...
@@ -7,13 +7,14 @@
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
# state :string(255)
# iid :integer
#
class
Issue
<
ActiveRecord
::
Base
...
...
app/models/key.rb
View file @
8dd37afe
...
...
@@ -2,14 +2,14 @@
#
# Table name: keys
#
# id :integer not null, primary key
# user_id :integer
# created_at
:datetime
# updated_at
:datetime
# key :text
# title :string(255)
#
identifier
:string(255)
#
type
:string(255)
# id
:integer not null, primary key
# user_id
:integer
# created_at
:datetime not null
# updated_at
:datetime not null
# key
:text
# title
:string(255)
#
type
:string(255)
#
fingerprint
:string(255)
#
require
'digest/md5'
...
...
app/models/merge_request.rb
View file @
8dd37afe
...
...
@@ -2,21 +2,22 @@
#
# Table name: merge_requests
#
# id :integer not null, primary key
# target_project_id :integer not null
# target_branch :string(255) not null
# source_project_id :integer not null
# source_branch :string(255) not null
# author_id :integer
# assignee_id :integer
# title :string(255)
# created_at :datetime
# updated_at :datetime
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
# id :integer not null, primary key
# target_branch :string(255) not null
# source_branch :string(255) not null
# source_project_id :integer not null
# author_id :integer
# assignee_id :integer
# title :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
# target_project_id :integer not null
# iid :integer
#
require
Rails
.
root
.
join
(
"app/models/commit"
)
...
...
app/models/milestone.rb
View file @
8dd37afe
...
...
@@ -10,6 +10,7 @@
# created_at :datetime not null
# updated_at :datetime not null
# state :string(255)
# iid :integer
#
class
Milestone
<
ActiveRecord
::
Base
...
...
app/models/note.rb
View file @
8dd37afe
...
...
@@ -6,13 +6,14 @@
# note :text
# noteable_type :string(255)
# author_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# project_id :integer
# attachment :string(255)
# line_code :string(255)
# commit_id :string(255)
# noteable_id :integer
# st_diff :text
#
require
'carrierwave/orm/activerecord'
...
...
app/models/personal_snippet.rb
View file @
8dd37afe
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
# content :text
(2147483647)
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
app/models/project.rb
View file @
8dd37afe
...
...
@@ -6,8 +6,8 @@
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# creator_id :integer
# default_branch :string(255)
# issues_enabled :boolean default(TRUE), not null
...
...
@@ -21,6 +21,7 @@
# snippets_enabled :boolean default(TRUE), not null
# last_activity_at :datetime
# imported :boolean default(FALSE), not null
# import_url :string(255)
#
require
"grit"
...
...
app/models/project_hook.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_id :integer
#
...
...
app/models/project_snippet.rb
View file @
8dd37afe
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
# content :text
(2147483647)
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
app/models/service_hook.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_id :integer
#
...
...
app/models/snippet.rb
View file @
8dd37afe
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
# content :text
(2147483647)
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
app/models/system_hook.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_id :integer
#
...
...
app/models/user.rb
View file @
8dd37afe
...
...
@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(
128
) default(""), not null
# encrypted_password :string(
255
) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
...
...
@@ -13,8 +13,8 @@
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
...
...
app/models/users_group.rb
View file @
8dd37afe
...
...
@@ -2,12 +2,13 @@
#
# Table name: users_groups
#
# id :integer not null, primary key
# group_access :integer not null
# group_id :integer not null
# user_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# group_access :integer not null
# group_id :integer not null
# user_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# notification_level :integer default(3), not null
#
class
UsersGroup
<
ActiveRecord
::
Base
...
...
app/models/users_project.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# user_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# project_access :integer default(0), not null
# notification_level :integer default(3), not null
#
...
...
app/models/web_hook.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_id :integer
#
...
...
spec/factories/users_groups.rb
View file @
8dd37afe
...
...
@@ -2,12 +2,13 @@
#
# Table name: users_groups
#
# id :integer not null, primary key
# group_access :integer not null
# group_id :integer not null
# user_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# group_access :integer not null
# group_id :integer not null
# user_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# notification_level :integer default(3), not null
#
FactoryGirl
.
define
do
...
...
spec/models/deploy_key_spec.rb
View file @
8dd37afe
...
...
@@ -2,14 +2,14 @@
#
# Table name: keys
#
# id :integer not null, primary key
# user_id :integer
# created_at
:datetime
# updated_at
:datetime
# key :text
# title :string(255)
#
identifier
:string(255)
#
type
:string(255)
# id
:integer not null, primary key
# user_id
:integer
# created_at
:datetime not null
# updated_at
:datetime not null
# key
:text
# title
:string(255)
#
type
:string(255)
#
fingerprint
:string(255)
#
require
'spec_helper'
...
...
spec/models/issue_spec.rb
View file @
8dd37afe
...
...
@@ -7,13 +7,14 @@
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
# state :string(255)
# iid :integer
#
require
'spec_helper'
...
...
spec/models/key_spec.rb
View file @
8dd37afe
...
...
@@ -2,14 +2,14 @@
#
# Table name: keys
#
# id :integer not null, primary key
# user_id :integer
# created_at
:datetime
# updated_at
:datetime
# key :text
# title :string(255)
#
identifier
:string(255)
#
type
:string(255)
# id
:integer not null, primary key
# user_id
:integer
# created_at
:datetime not null
# updated_at
:datetime not null
# key
:text
# title
:string(255)
#
type
:string(255)
#
fingerprint
:string(255)
#
require
'spec_helper'
...
...
spec/models/merge_request_spec.rb
View file @
8dd37afe
...
...
@@ -2,20 +2,22 @@
#
# Table name: merge_requests
#
# id :integer not null, primary key
# target_branch :string(255) not null
# source_branch :string(255) not null
# project_id :integer not null
# author_id :integer
# assignee_id :integer
# title :string(255)
# created_at :datetime
# updated_at :datetime
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
# id :integer not null, primary key
# target_branch :string(255) not null
# source_branch :string(255) not null
# source_project_id :integer not null
# author_id :integer
# assignee_id :integer
# title :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
# target_project_id :integer not null
# iid :integer
#
require
'spec_helper'
...
...
spec/models/milestone_spec.rb
View file @
8dd37afe
...
...
@@ -10,6 +10,7 @@
# created_at :datetime not null
# updated_at :datetime not null
# state :string(255)
# iid :integer
#
require
'spec_helper'
...
...
spec/models/note_spec.rb
View file @
8dd37afe
...
...
@@ -6,13 +6,14 @@
# note :text
# noteable_type :string(255)
# author_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# project_id :integer
# attachment :string(255)
# line_code :string(255)
# commit_id :string(255)
# noteable_id :integer
# st_diff :text
#
require
'spec_helper'
...
...
spec/models/project_snippet_spec.rb
View file @
8dd37afe
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
# content :text
(2147483647)
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
spec/models/project_spec.rb
View file @
8dd37afe
...
...
@@ -6,8 +6,8 @@
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# creator_id :integer
# default_branch :string(255)
# issues_enabled :boolean default(TRUE), not null
...
...
@@ -21,6 +21,7 @@
# snippets_enabled :boolean default(TRUE), not null
# last_activity_at :datetime
# imported :boolean default(FALSE), not null
# import_url :string(255)
#
require
'spec_helper'
...
...
spec/models/service_hook_spec.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_id :integer
#
...
...
spec/models/snippet_spec.rb
View file @
8dd37afe
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
# content :text
(2147483647)
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
spec/models/system_hook_spec.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_id :integer
#
...
...
spec/models/user_spec.rb
View file @
8dd37afe
...
...
@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(
128
) default(""), not null
# encrypted_password :string(
255
) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
...
...
@@ -13,8 +13,8 @@
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
...
...
spec/models/users_group_spec.rb
View file @
8dd37afe
...
...
@@ -2,12 +2,13 @@
#
# Table name: users_groups
#
# id :integer not null, primary key
# group_access :integer not null
# group_id :integer not null
# user_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# group_access :integer not null
# group_id :integer not null
# user_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# notification_level :integer default(3), not null
#
require
'spec_helper'
...
...
spec/models/users_project_spec.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# user_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# project_access :integer default(0), not null
# notification_level :integer default(3), not null
#
...
...
spec/models/web_hook_spec.rb
View file @
8dd37afe
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# created_at :datetime
not null
# updated_at :datetime
not null
# type :string(255) default("ProjectHook")
# service_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