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
36f861f1
Commit
36f861f1
authored
Apr 09, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-annotate models
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c5cdd078
Changes
68
Hide whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
286 additions
and
228 deletions
+286
-228
app/models/broadcast_message.rb
app/models/broadcast_message.rb
+3
-3
app/models/deploy_key.rb
app/models/deploy_key.rb
+2
-2
app/models/deploy_keys_project.rb
app/models/deploy_keys_project.rb
+2
-2
app/models/email.rb
app/models/email.rb
+7
-4
app/models/event.rb
app/models/event.rb
+2
-2
app/models/forked_project_link.rb
app/models/forked_project_link.rb
+2
-2
app/models/group.rb
app/models/group.rb
+3
-2
app/models/issue.rb
app/models/issue.rb
+2
-2
app/models/key.rb
app/models/key.rb
+2
-2
app/models/merge_request.rb
app/models/merge_request.rb
+2
-4
app/models/merge_request_diff.rb
app/models/merge_request_diff.rb
+13
-0
app/models/milestone.rb
app/models/milestone.rb
+2
-2
app/models/namespace.rb
app/models/namespace.rb
+2
-2
app/models/note.rb
app/models/note.rb
+3
-3
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+3
-3
app/models/project.rb
app/models/project.rb
+4
-3
app/models/project_hook.rb
app/models/project_hook.rb
+3
-2
app/models/project_services/assembla_service.rb
app/models/project_services/assembla_service.rb
+3
-2
app/models/project_services/campfire_service.rb
app/models/project_services/campfire_service.rb
+3
-2
app/models/project_services/emails_on_push_service.rb
app/models/project_services/emails_on_push_service.rb
+3
-2
app/models/project_services/flowdock_service.rb
app/models/project_services/flowdock_service.rb
+3
-2
app/models/project_services/gemnasium_service.rb
app/models/project_services/gemnasium_service.rb
+3
-2
app/models/project_services/gitlab_ci_service.rb
app/models/project_services/gitlab_ci_service.rb
+3
-2
app/models/project_services/hipchat_service.rb
app/models/project_services/hipchat_service.rb
+3
-2
app/models/project_services/pivotaltracker_service.rb
app/models/project_services/pivotaltracker_service.rb
+3
-2
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+3
-2
app/models/project_snippet.rb
app/models/project_snippet.rb
+3
-3
app/models/protected_branch.rb
app/models/protected_branch.rb
+2
-2
app/models/service.rb
app/models/service.rb
+3
-2
app/models/service_hook.rb
app/models/service_hook.rb
+3
-2
app/models/snippet.rb
app/models/snippet.rb
+3
-3
app/models/system_hook.rb
app/models/system_hook.rb
+3
-2
app/models/user.rb
app/models/user.rb
+42
-41
app/models/users_group.rb
app/models/users_group.rb
+2
-2
app/models/users_project.rb
app/models/users_project.rb
+2
-2
app/models/web_hook.rb
app/models/web_hook.rb
+3
-2
spec/factories/broadcast_messages.rb
spec/factories/broadcast_messages.rb
+3
-3
spec/factories/forked_project_links.rb
spec/factories/forked_project_links.rb
+2
-2
spec/factories/users_groups.rb
spec/factories/users_groups.rb
+2
-2
spec/models/assembla_service_spec.rb
spec/models/assembla_service_spec.rb
+3
-2
spec/models/broadcast_message_spec.rb
spec/models/broadcast_message_spec.rb
+3
-3
spec/models/deploy_key_spec.rb
spec/models/deploy_key_spec.rb
+2
-2
spec/models/deploy_keys_project_spec.rb
spec/models/deploy_keys_project_spec.rb
+2
-2
spec/models/event_spec.rb
spec/models/event_spec.rb
+2
-2
spec/models/flowdock_service_spec.rb
spec/models/flowdock_service_spec.rb
+3
-2
spec/models/forked_project_link_spec.rb
spec/models/forked_project_link_spec.rb
+2
-2
spec/models/gemnasium_service_spec.rb
spec/models/gemnasium_service_spec.rb
+3
-2
spec/models/gitlab_ci_service_spec.rb
spec/models/gitlab_ci_service_spec.rb
+3
-2
spec/models/group_spec.rb
spec/models/group_spec.rb
+3
-2
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+2
-2
spec/models/key_spec.rb
spec/models/key_spec.rb
+2
-2
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+2
-4
spec/models/milestone_spec.rb
spec/models/milestone_spec.rb
+2
-2
spec/models/namespace_spec.rb
spec/models/namespace_spec.rb
+3
-2
spec/models/note_spec.rb
spec/models/note_spec.rb
+3
-3
spec/models/project_hook_spec.rb
spec/models/project_hook_spec.rb
+17
-0
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
-3
spec/models/protected_branch_spec.rb
spec/models/protected_branch_spec.rb
+2
-2
spec/models/service_hook_spec.rb
spec/models/service_hook_spec.rb
+3
-2
spec/models/service_spec.rb
spec/models/service_spec.rb
+3
-2
spec/models/slack_service_spec.rb
spec/models/slack_service_spec.rb
+3
-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
+3
-2
spec/models/user_spec.rb
spec/models/user_spec.rb
+42
-41
spec/models/users_group_spec.rb
spec/models/users_group_spec.rb
+2
-2
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
+3
-2
No files found.
app/models/broadcast_message.rb
View file @
36f861f1
...
...
@@ -3,12 +3,12 @@
# Table name: broadcast_messages
#
# id :integer not null, primary key
# message :text
default(""),
not null
# message :text not null
# starts_at :datetime
# ends_at :datetime
# alert_type :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# color :string(255)
# font :string(255)
#
...
...
app/models/deploy_key.rb
View file @
36f861f1
...
...
@@ -4,8 +4,8 @@
#
# id :integer not null, primary key
# user_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# key :text
# title :string(255)
# type :string(255)
...
...
app/models/deploy_keys_project.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# deploy_key_id :integer not null
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
#
class
DeployKeysProject
<
ActiveRecord
::
Base
...
...
app/models/email.rb
View file @
36f861f1
...
...
@@ -2,10 +2,13 @@
#
# Table name: emails
#
# id :integer not null, primary key
# user_id :integer not null
# email :string not null
# created_at :datetime not null
# id :integer not null, primary key
# user_id :integer not null
# email :string(255) not null
# created_at :datetime
# updated_at :datetime
#
class
Email
<
ActiveRecord
::
Base
attr_accessible
:email
,
:user_id
...
...
app/models/event.rb
View file @
36f861f1
...
...
@@ -8,8 +8,8 @@
# title :string(255)
# data :text
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# action :integer
# author_id :integer
#
...
...
app/models/forked_project_link.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# forked_to_project_id :integer not null
# forked_from_project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
#
class
ForkedProjectLink
<
ActiveRecord
::
Base
...
...
app/models/group.rb
View file @
36f861f1
...
...
@@ -6,10 +6,11 @@
# name :string(255) not null
# path :string(255) not null
# owner_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255)
# description :string(255) default(""), not null
# avatar :string(255)
#
require
'carrierwave/orm/activerecord'
...
...
app/models/issue.rb
View file @
36f861f1
...
...
@@ -7,8 +7,8 @@
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# position :integer default(0)
# branch_name :string(255)
# description :text
...
...
app/models/key.rb
View file @
36f861f1
...
...
@@ -4,8 +4,8 @@
#
# id :integer not null, primary key
# user_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# key :text
# title :string(255)
# type :string(255)
...
...
app/models/merge_request.rb
View file @
36f861f1
...
...
@@ -9,10 +9,8 @@
# 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)
# created_at :datetime
# updated_at :datetime
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
...
...
app/models/merge_request_diff.rb
View file @
36f861f1
# == Schema Information
#
# Table name: merge_request_diffs
#
# id :integer not null, primary key
# state :string(255) default("collected"), not null
# st_commits :text
# st_diffs :text
# merge_request_id :integer not null
# created_at :datetime
# updated_at :datetime
#
require
Rails
.
root
.
join
(
"app/models/commit"
)
class
MergeRequestDiff
<
ActiveRecord
::
Base
...
...
app/models/milestone.rb
View file @
36f861f1
...
...
@@ -7,8 +7,8 @@
# project_id :integer not null
# description :text
# due_date :date
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# state :string(255)
# iid :integer
#
...
...
app/models/namespace.rb
View file @
36f861f1
...
...
@@ -6,8 +6,8 @@
# name :string(255) not null
# path :string(255) not null
# owner_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255)
# description :string(255) default(""), not null
# avatar :string(255)
...
...
app/models/note.rb
View file @
36f861f1
...
...
@@ -6,15 +6,15 @@
# note :text
# noteable_type :string(255)
# author_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# project_id :integer
# attachment :string(255)
# line_code :string(255)
# commit_id :string(255)
# noteable_id :integer
# st_diff :text
# system :boolean default(FALSE), not null
# st_diff :text
#
require
'carrierwave/orm/activerecord'
...
...
app/models/personal_snippet.rb
View file @
36f861f1
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
(2147483647)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
app/models/project.rb
View file @
36f861f1
...
...
@@ -6,8 +6,8 @@
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# creator_id :integer
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
...
...
@@ -18,9 +18,10 @@
# issues_tracker_id :string(255)
# snippets_enabled :boolean default(TRUE), not null
# last_activity_at :datetime
# imported :boolean default(FALSE), not null
# import_url :string(255)
# visibility_level :integer default(0), not null
# archived :boolean default(FALSE), not null
# import_status :string(255)
#
class
Project
<
ActiveRecord
::
Base
...
...
app/models/project_hook.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
class
ProjectHook
<
WebHook
...
...
app/models/project_services/assembla_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/campfire_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/emails_on_push_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/flowdock_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/gemnasium_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/gitlab_ci_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/hipchat_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/pivotaltracker_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_services/slack_service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/project_snippet.rb
View file @
36f861f1
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
(2147483647)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
app/models/protected_branch.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# 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
# created_at :datetime
# updated_at :datetime
#
class
ProtectedBranch
<
ActiveRecord
::
Base
...
...
app/models/service.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
app/models/service_hook.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
class
ServiceHook
<
WebHook
...
...
app/models/snippet.rb
View file @
36f861f1
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
(2147483647)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
app/models/system_hook.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
class
SystemHook
<
WebHook
...
...
app/models/user.rb
View file @
36f861f1
...
...
@@ -2,47 +2,48 @@
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# name :string(255)
# 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)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# name :string(255)
# 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)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# last_credential_check_at :datetime
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
#
require
'carrierwave/orm/activerecord'
...
...
app/models/users_group.rb
View file @
36f861f1
...
...
@@ -6,8 +6,8 @@
# 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
# created_at :datetime
# updated_at :datetime
# notification_level :integer default(3), not null
#
...
...
app/models/users_project.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# 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
# created_at :datetime
# updated_at :datetime
# project_access :integer default(0), not null
# notification_level :integer default(3), not null
#
...
...
app/models/web_hook.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
class
WebHook
<
ActiveRecord
::
Base
...
...
spec/factories/broadcast_messages.rb
View file @
36f861f1
...
...
@@ -3,12 +3,12 @@
# Table name: broadcast_messages
#
# id :integer not null, primary key
# message :text
default(""),
not null
# message :text not null
# starts_at :datetime
# ends_at :datetime
# alert_type :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# color :string(255)
# font :string(255)
#
...
...
spec/factories/forked_project_links.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# forked_to_project_id :integer not null
# forked_from_project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
#
# Read about factories at https://github.com/thoughtbot/factory_girl
...
...
spec/factories/users_groups.rb
View file @
36f861f1
...
...
@@ -6,8 +6,8 @@
# 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
# created_at :datetime
# updated_at :datetime
# notification_level :integer default(3), not null
#
...
...
spec/models/assembla_service_spec.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
spec/models/broadcast_message_spec.rb
View file @
36f861f1
...
...
@@ -3,12 +3,12 @@
# Table name: broadcast_messages
#
# id :integer not null, primary key
# message :text
default(""),
not null
# message :text not null
# starts_at :datetime
# ends_at :datetime
# alert_type :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# color :string(255)
# font :string(255)
#
...
...
spec/models/deploy_key_spec.rb
View file @
36f861f1
...
...
@@ -4,8 +4,8 @@
#
# id :integer not null, primary key
# user_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# key :text
# title :string(255)
# type :string(255)
...
...
spec/models/deploy_keys_project_spec.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# deploy_key_id :integer not null
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
#
require
'spec_helper'
...
...
spec/models/event_spec.rb
View file @
36f861f1
...
...
@@ -8,8 +8,8 @@
# title :string(255)
# data :text
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# action :integer
# author_id :integer
#
...
...
spec/models/flowdock_service_spec.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
spec/models/forked_project_link_spec.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# id :integer not null, primary key
# forked_to_project_id :integer not null
# forked_from_project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
#
require
'spec_helper'
...
...
spec/models/gemnasium_service_spec.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
spec/models/gitlab_ci_service_spec.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
spec/models/group_spec.rb
View file @
36f861f1
...
...
@@ -6,10 +6,11 @@
# name :string(255) not null
# path :string(255) not null
# owner_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255)
# description :string(255) default(""), not null
# avatar :string(255)
#
require
'spec_helper'
...
...
spec/models/issue_spec.rb
View file @
36f861f1
...
...
@@ -7,8 +7,8 @@
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# position :integer default(0)
# branch_name :string(255)
# description :text
...
...
spec/models/key_spec.rb
View file @
36f861f1
...
...
@@ -4,8 +4,8 @@
#
# id :integer not null, primary key
# user_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# key :text
# title :string(255)
# type :string(255)
...
...
spec/models/merge_request_spec.rb
View file @
36f861f1
...
...
@@ -9,10 +9,8 @@
# 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)
# created_at :datetime
# updated_at :datetime
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
...
...
spec/models/milestone_spec.rb
View file @
36f861f1
...
...
@@ -7,8 +7,8 @@
# project_id :integer not null
# description :text
# due_date :date
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# state :string(255)
# iid :integer
#
...
...
spec/models/namespace_spec.rb
View file @
36f861f1
...
...
@@ -6,10 +6,11 @@
# name :string(255) not null
# path :string(255) not null
# owner_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255)
# description :string(255) default(""), not null
# avatar :string(255)
#
require
'spec_helper'
...
...
spec/models/note_spec.rb
View file @
36f861f1
...
...
@@ -6,15 +6,15 @@
# note :text
# noteable_type :string(255)
# author_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# project_id :integer
# attachment :string(255)
# line_code :string(255)
# commit_id :string(255)
# noteable_id :integer
# st_diff :text
# system :boolean default(FALSE), not null
# st_diff :text
#
require
'spec_helper'
...
...
spec/models/project_hook_spec.rb
View file @
36f861f1
# == Schema Information
#
# Table name: web_hooks
#
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
require
'spec_helper'
describe
ProjectHook
do
...
...
spec/models/project_snippet_spec.rb
View file @
36f861f1
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
(2147483647)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
spec/models/project_spec.rb
View file @
36f861f1
...
...
@@ -6,8 +6,8 @@
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# creator_id :integer
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
...
...
@@ -18,10 +18,10 @@
# issues_tracker_id :string(255)
# snippets_enabled :boolean default(TRUE), not null
# last_activity_at :datetime
# imported :boolean default(FALSE), not null
# import_url :string(255)
# visibility_level :integer default(0), not null
# archived :boolean default(FALSE), not null
# import_status :string(255)
#
require
'spec_helper'
...
...
spec/models/protected_branch_spec.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# 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
# created_at :datetime
# updated_at :datetime
#
require
'spec_helper'
...
...
spec/models/service_hook_spec.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
require
"spec_helper"
...
...
spec/models/service_spec.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
spec/models/slack_service_spec.rb
View file @
36f861f1
...
...
@@ -7,12 +7,13 @@
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
#
...
...
spec/models/snippet_spec.rb
View file @
36f861f1
...
...
@@ -4,11 +4,11 @@
#
# id :integer not null, primary key
# title :string(255)
# content :text
(2147483647)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
...
...
spec/models/system_hook_spec.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
require
"spec_helper"
...
...
spec/models/user_spec.rb
View file @
36f861f1
...
...
@@ -2,47 +2,48 @@
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# name :string(255)
# 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)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# name :string(255)
# 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)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# last_credential_check_at :datetime
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
#
require
'spec_helper'
...
...
spec/models/users_group_spec.rb
View file @
36f861f1
...
...
@@ -6,8 +6,8 @@
# 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
# created_at :datetime
# updated_at :datetime
# notification_level :integer default(3), not null
#
...
...
spec/models/users_project_spec.rb
View file @
36f861f1
...
...
@@ -5,8 +5,8 @@
# 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
# created_at :datetime
# updated_at :datetime
# project_access :integer default(0), not null
# notification_level :integer default(3), not null
#
...
...
spec/models/web_hook_spec.rb
View file @
36f861f1
...
...
@@ -5,13 +5,14 @@
# id :integer not null, primary key
# url :string(255)
# project_id :integer
# created_at :datetime
not null
# updated_at :datetime
not null
# created_at :datetime
# updated_at :datetime
# type :string(255) default("ProjectHook")
# service_id :integer
# push_events :boolean default(TRUE), not null
# issues_events :boolean default(FALSE), not null
# merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE)
#
require
'spec_helper'
...
...
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