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
Tatuya Kamada
gitlab-ce
Commits
45ef8d5e
Commit
45ef8d5e
authored
May 06, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'annotate-models' into 'master'
Update annotations on models See merge request !3962
parents
aa18cc20
8278b763
Changes
73
Show whitespace changes
Inline
Side-by-side
Showing
73 changed files
with
529 additions
and
323 deletions
+529
-323
app/models/appearance.rb
app/models/appearance.rb
+13
-0
app/models/application_setting.rb
app/models/application_setting.rb
+10
-6
app/models/audit_event.rb
app/models/audit_event.rb
+2
-2
app/models/broadcast_message.rb
app/models/broadcast_message.rb
+2
-2
app/models/ci/build.rb
app/models/ci/build.rb
+7
-7
app/models/ci/commit.rb
app/models/ci/commit.rb
+7
-3
app/models/ci/runner.rb
app/models/ci/runner.rb
+7
-7
app/models/ci/trigger.rb
app/models/ci/trigger.rb
+1
-1
app/models/ci/variable.rb
app/models/ci/variable.rb
+3
-3
app/models/commit_status.rb
app/models/commit_status.rb
+10
-7
app/models/deploy_key.rb
app/models/deploy_key.rb
+3
-3
app/models/email.rb
app/models/email.rb
+1
-1
app/models/event.rb
app/models/event.rb
+2
-2
app/models/generic_commit_status.rb
app/models/generic_commit_status.rb
+10
-7
app/models/group.rb
app/models/group.rb
+11
-10
app/models/hooks/project_hook.rb
app/models/hooks/project_hook.rb
+1
-1
app/models/hooks/service_hook.rb
app/models/hooks/service_hook.rb
+1
-1
app/models/hooks/system_hook.rb
app/models/hooks/system_hook.rb
+1
-1
app/models/hooks/web_hook.rb
app/models/hooks/web_hook.rb
+1
-1
app/models/identity.rb
app/models/identity.rb
+2
-2
app/models/issue.rb
app/models/issue.rb
+6
-3
app/models/key.rb
app/models/key.rb
+3
-3
app/models/label.rb
app/models/label.rb
+8
-8
app/models/label_link.rb
app/models/label_link.rb
+1
-1
app/models/lfs_object.rb
app/models/lfs_object.rb
+2
-2
app/models/member.rb
app/models/member.rb
+4
-4
app/models/members/group_member.rb
app/models/members/group_member.rb
+4
-4
app/models/members/project_member.rb
app/models/members/project_member.rb
+4
-4
app/models/merge_request.rb
app/models/merge_request.rb
+7
-6
app/models/merge_request_diff.rb
app/models/merge_request_diff.rb
+3
-1
app/models/milestone.rb
app/models/milestone.rb
+2
-2
app/models/namespace.rb
app/models/namespace.rb
+11
-9
app/models/note.rb
app/models/note.rb
+4
-4
app/models/notification_setting.rb
app/models/notification_setting.rb
+13
-0
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+3
-3
app/models/project.rb
app/models/project.rb
+40
-35
app/models/project_group_link.rb
app/models/project_group_link.rb
+12
-0
app/models/project_import_data.rb
app/models/project_import_data.rb
+6
-3
app/models/project_services/asana_service.rb
app/models/project_services/asana_service.rb
+8
-5
app/models/project_services/assembla_service.rb
app/models/project_services/assembla_service.rb
+8
-5
app/models/project_services/bamboo_service.rb
app/models/project_services/bamboo_service.rb
+8
-5
app/models/project_services/buildkite_service.rb
app/models/project_services/buildkite_service.rb
+8
-5
app/models/project_services/builds_email_service.rb
app/models/project_services/builds_email_service.rb
+8
-5
app/models/project_services/campfire_service.rb
app/models/project_services/campfire_service.rb
+8
-5
app/models/project_services/ci_service.rb
app/models/project_services/ci_service.rb
+8
-5
app/models/project_services/custom_issue_tracker_service.rb
app/models/project_services/custom_issue_tracker_service.rb
+8
-5
app/models/project_services/drone_ci_service.rb
app/models/project_services/drone_ci_service.rb
+8
-5
app/models/project_services/emails_on_push_service.rb
app/models/project_services/emails_on_push_service.rb
+8
-5
app/models/project_services/external_wiki_service.rb
app/models/project_services/external_wiki_service.rb
+8
-5
app/models/project_services/flowdock_service.rb
app/models/project_services/flowdock_service.rb
+8
-5
app/models/project_services/gemnasium_service.rb
app/models/project_services/gemnasium_service.rb
+8
-5
app/models/project_services/gitlab_ci_service.rb
app/models/project_services/gitlab_ci_service.rb
+8
-5
app/models/project_services/gitlab_issue_tracker_service.rb
app/models/project_services/gitlab_issue_tracker_service.rb
+8
-5
app/models/project_services/hipchat_service.rb
app/models/project_services/hipchat_service.rb
+8
-5
app/models/project_services/irker_service.rb
app/models/project_services/irker_service.rb
+8
-5
app/models/project_services/issue_tracker_service.rb
app/models/project_services/issue_tracker_service.rb
+8
-5
app/models/project_services/jira_service.rb
app/models/project_services/jira_service.rb
+8
-5
app/models/project_services/pivotaltracker_service.rb
app/models/project_services/pivotaltracker_service.rb
+8
-5
app/models/project_services/pushover_service.rb
app/models/project_services/pushover_service.rb
+8
-5
app/models/project_services/redmine_service.rb
app/models/project_services/redmine_service.rb
+8
-5
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+8
-5
app/models/project_services/teamcity_service.rb
app/models/project_services/teamcity_service.rb
+8
-5
app/models/project_snippet.rb
app/models/project_snippet.rb
+3
-3
app/models/protected_branch.rb
app/models/protected_branch.rb
+1
-1
app/models/release.rb
app/models/release.rb
+1
-1
app/models/security_event.rb
app/models/security_event.rb
+2
-2
app/models/sent_notification.rb
app/models/sent_notification.rb
+4
-4
app/models/service.rb
app/models/service.rb
+8
-5
app/models/snippet.rb
app/models/snippet.rb
+3
-3
app/models/spam_log.rb
app/models/spam_log.rb
+17
-0
app/models/subscription.rb
app/models/subscription.rb
+1
-1
app/models/user.rb
app/models/user.rb
+25
-24
lib/tasks/auto_annotate_models.rake
lib/tasks/auto_annotate_models.rake
+44
-0
No files found.
app/models/appearance.rb
View file @
45ef8d5e
# == Schema Information
#
# Table name: appearances
#
# id :integer not null, primary key
# title :string
# description :text
# header_logo :string
# logo :string
# created_at :datetime not null
# updated_at :datetime not null
#
class
Appearance
<
ActiveRecord
::
Base
class
Appearance
<
ActiveRecord
::
Base
validates
:title
,
presence:
true
validates
:title
,
presence:
true
validates
:description
,
presence:
true
validates
:description
,
presence:
true
...
...
app/models/application_setting.rb
View file @
45ef8d5e
...
@@ -10,21 +10,20 @@
...
@@ -10,21 +10,20 @@
# sign_in_text :text
# sign_in_text :text
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# home_page_url :string
(255)
# home_page_url :string
# default_branch_protection :integer default(2)
# default_branch_protection :integer default(2)
# restricted_visibility_levels :text
# restricted_visibility_levels :text
# version_check_enabled :boolean default(TRUE)
# version_check_enabled :boolean default(TRUE)
# max_attachment_size :integer default(10), not null
# max_attachment_size :integer default(10), not null
# default_project_visibility :integer
# default_project_visibility :integer
# default_snippet_visibility :integer
# default_snippet_visibility :integer
# default_group_visibility :integer
# restricted_signup_domains :text
# restricted_signup_domains :text
# user_oauth_applications :boolean default(TRUE)
# user_oauth_applications :boolean default(TRUE)
# after_sign_out_path :string
(255)
# after_sign_out_path :string
# session_expire_delay :integer default(10080), not null
# session_expire_delay :integer default(10080), not null
# import_sources :text
# import_sources :text
# help_page_text :text
# help_page_text :text
# admin_notification_email :string
(255)
# admin_notification_email :string
# shared_runners_enabled :boolean default(TRUE), not null
# shared_runners_enabled :boolean default(TRUE), not null
# max_artifacts_size :integer default(100), not null
# max_artifacts_size :integer default(100), not null
# runners_registration_token :string
# runners_registration_token :string
...
@@ -32,8 +31,6 @@
...
@@ -32,8 +31,6 @@
# two_factor_grace_period :integer default(48)
# two_factor_grace_period :integer default(48)
# metrics_enabled :boolean default(FALSE)
# metrics_enabled :boolean default(FALSE)
# metrics_host :string default("localhost")
# metrics_host :string default("localhost")
# metrics_username :string
# metrics_password :string
# metrics_pool_size :integer default(16)
# metrics_pool_size :integer default(16)
# metrics_timeout :integer default(10)
# metrics_timeout :integer default(10)
# metrics_method_call_threshold :integer default(10)
# metrics_method_call_threshold :integer default(10)
...
@@ -41,9 +38,16 @@
...
@@ -41,9 +38,16 @@
# recaptcha_site_key :string
# recaptcha_site_key :string
# recaptcha_private_key :string
# recaptcha_private_key :string
# metrics_port :integer default(8089)
# metrics_port :integer default(8089)
# metrics_sample_interval :integer default(15)
# sentry_enabled :boolean default(FALSE)
# sentry_enabled :boolean default(FALSE)
# sentry_dsn :string
# sentry_dsn :string
# akismet_enabled :boolean default(FALSE)
# akismet_api_key :string
# email_author_in_body :boolean default(FALSE)
# email_author_in_body :boolean default(FALSE)
# default_group_visibility :integer
# repository_checks_enabled :boolean default(FALSE)
# metrics_packet_size :integer default(1)
# shared_runners_text :text
#
#
class
ApplicationSetting
<
ActiveRecord
::
Base
class
ApplicationSetting
<
ActiveRecord
::
Base
...
...
app/models/audit_event.rb
View file @
45ef8d5e
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# author_id :integer not null
# author_id :integer not null
# type :string
(255)
not null
# type :string
not null
# entity_id :integer not null
# entity_id :integer not null
# entity_type :string
(255)
not null
# entity_type :string
not null
# details :text
# details :text
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
...
app/models/broadcast_message.rb
View file @
45ef8d5e
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
# ends_at :datetime
# ends_at :datetime
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# color :string
(255)
# color :string
# font :string
(255)
# font :string
#
#
class
BroadcastMessage
<
ActiveRecord
::
Base
class
BroadcastMessage
<
ActiveRecord
::
Base
...
...
app/models/ci/build.rb
View file @
45ef8d5e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# status :string
(255)
# status :string
# finished_at :datetime
# finished_at :datetime
# trace :text
# trace :text
# created_at :datetime
# created_at :datetime
...
@@ -15,19 +15,19 @@
...
@@ -15,19 +15,19 @@
# commit_id :integer
# commit_id :integer
# commands :text
# commands :text
# job_id :integer
# job_id :integer
# name :string
(255)
# name :string
# deploy :boolean default(FALSE)
# deploy :boolean default(FALSE)
# options :text
# options :text
# allow_failure :boolean default(FALSE), not null
# allow_failure :boolean default(FALSE), not null
# stage :string
(255)
# stage :string
# trigger_request_id :integer
# trigger_request_id :integer
# stage_idx :integer
# stage_idx :integer
# tag :boolean
# tag :boolean
# ref :string
(255)
# ref :string
# user_id :integer
# user_id :integer
# type :string
(255)
# type :string
# target_url :string
(255)
# target_url :string
# description :string
(255)
# description :string
# artifacts_file :text
# artifacts_file :text
# gl_project_id :integer
# gl_project_id :integer
# artifacts_metadata :text
# artifacts_metadata :text
...
...
app/models/ci/commit.rb
View file @
45ef8d5e
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# ref :string
(255)
# ref :string
# sha :string
(255)
# sha :string
# before_sha :string
(255)
# before_sha :string
# push_data :text
# push_data :text
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
# yaml_errors :text
# yaml_errors :text
# committed_at :datetime
# committed_at :datetime
# gl_project_id :integer
# gl_project_id :integer
# status :string
# started_at :datetime
# finished_at :datetime
# duration :integer
#
#
module
Ci
module
Ci
...
...
app/models/ci/runner.rb
View file @
45ef8d5e
...
@@ -3,18 +3,18 @@
...
@@ -3,18 +3,18 @@
# Table name: ci_runners
# Table name: ci_runners
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# token :string
(255)
# token :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# description :string
(255)
# description :string
# contacted_at :datetime
# contacted_at :datetime
# active :boolean default(TRUE), not null
# active :boolean default(TRUE), not null
# is_shared :boolean default(FALSE)
# is_shared :boolean default(FALSE)
# name :string
(255)
# name :string
# version :string
(255)
# version :string
# revision :string
(255)
# revision :string
# platform :string
(255)
# platform :string
# architecture :string
(255)
# architecture :string
#
#
module
Ci
module
Ci
...
...
app/models/ci/trigger.rb
View file @
45ef8d5e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Table name: ci_triggers
# Table name: ci_triggers
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# token :string
(255)
# token :string
# project_id :integer
# project_id :integer
# deleted_at :datetime
# deleted_at :datetime
# created_at :datetime
# created_at :datetime
...
...
app/models/ci/variable.rb
View file @
45ef8d5e
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# key :string
(255)
# key :string
# value :text
# value :text
# encrypted_value :text
# encrypted_value :text
# encrypted_value_salt :string
(255)
# encrypted_value_salt :string
# encrypted_value_iv :string
(255)
# encrypted_value_iv :string
# gl_project_id :integer
# gl_project_id :integer
#
#
...
...
app/models/commit_status.rb
View file @
45ef8d5e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# status :string
(255)
# status :string
# finished_at :datetime
# finished_at :datetime
# trace :text
# trace :text
# created_at :datetime
# created_at :datetime
...
@@ -15,21 +15,24 @@
...
@@ -15,21 +15,24 @@
# commit_id :integer
# commit_id :integer
# commands :text
# commands :text
# job_id :integer
# job_id :integer
# name :string
(255)
# name :string
# deploy :boolean default(FALSE)
# deploy :boolean default(FALSE)
# options :text
# options :text
# allow_failure :boolean default(FALSE), not null
# allow_failure :boolean default(FALSE), not null
# stage :string
(255)
# stage :string
# trigger_request_id :integer
# trigger_request_id :integer
# stage_idx :integer
# stage_idx :integer
# tag :boolean
# tag :boolean
# ref :string
(255)
# ref :string
# user_id :integer
# user_id :integer
# type :string
(255)
# type :string
# target_url :string
(255)
# target_url :string
# description :string
(255)
# description :string
# artifacts_file :text
# artifacts_file :text
# gl_project_id :integer
# gl_project_id :integer
# artifacts_metadata :text
# erased_by_id :integer
# erased_at :datetime
#
#
class
CommitStatus
<
ActiveRecord
::
Base
class
CommitStatus
<
ActiveRecord
::
Base
...
...
app/models/deploy_key.rb
View file @
45ef8d5e
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# key :text
# key :text
# title :string
(255)
# title :string
# type :string
(255)
# type :string
# fingerprint :string
(255)
# fingerprint :string
# public :boolean default(FALSE), not null
# public :boolean default(FALSE), not null
#
#
...
...
app/models/email.rb
View file @
45ef8d5e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# user_id :integer not null
# user_id :integer not null
# email :string
(255)
not null
# email :string
not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
#
#
...
...
app/models/event.rb
View file @
45ef8d5e
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
# Table name: events
# Table name: events
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# target_type :string
(255)
# target_type :string
# target_id :integer
# target_id :integer
# title :string
(255)
# title :string
# data :text
# data :text
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
...
...
app/models/generic_commit_status.rb
View file @
45ef8d5e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# status :string
(255)
# status :string
# finished_at :datetime
# finished_at :datetime
# trace :text
# trace :text
# created_at :datetime
# created_at :datetime
...
@@ -15,21 +15,24 @@
...
@@ -15,21 +15,24 @@
# commit_id :integer
# commit_id :integer
# commands :text
# commands :text
# job_id :integer
# job_id :integer
# name :string
(255)
# name :string
# deploy :boolean default(FALSE)
# deploy :boolean default(FALSE)
# options :text
# options :text
# allow_failure :boolean default(FALSE), not null
# allow_failure :boolean default(FALSE), not null
# stage :string
(255)
# stage :string
# trigger_request_id :integer
# trigger_request_id :integer
# stage_idx :integer
# stage_idx :integer
# tag :boolean
# tag :boolean
# ref :string
(255)
# ref :string
# user_id :integer
# user_id :integer
# type :string
(255)
# type :string
# target_url :string
(255)
# target_url :string
# description :string
(255)
# description :string
# artifacts_file :text
# artifacts_file :text
# gl_project_id :integer
# gl_project_id :integer
# artifacts_metadata :text
# erased_by_id :integer
# erased_at :datetime
#
#
class
GenericCommitStatus
<
CommitStatus
class
GenericCommitStatus
<
CommitStatus
...
...
app/models/group.rb
View file @
45ef8d5e
...
@@ -3,15 +3,16 @@
...
@@ -3,15 +3,16 @@
# Table name: namespaces
# Table name: namespaces
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# name
:string(255)
not null
# name
:string
not null
# path
:string(255)
not null
# path
:string
not null
# owner_id :integer
# owner_id :integer
# visibility_level :integer default(20), not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# type :string(255)
# type :string
# description :string(255) default(""), not null
# description :string default(""), not null
# avatar :string(255)
# avatar :string
# share_with_group_lock :boolean default(FALSE)
# visibility_level :integer default(20), not null
#
#
require
'carrierwave/orm/activerecord'
require
'carrierwave/orm/activerecord'
...
...
app/models/hooks/project_hook.rb
View file @
45ef8d5e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
#
class
ProjectHook
<
WebHook
class
ProjectHook
<
WebHook
...
...
app/models/hooks/service_hook.rb
View file @
45ef8d5e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
#
class
ServiceHook
<
WebHook
class
ServiceHook
<
WebHook
...
...
app/models/hooks/system_hook.rb
View file @
45ef8d5e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
#
class
SystemHook
<
WebHook
class
SystemHook
<
WebHook
...
...
app/models/hooks/web_hook.rb
View file @
45ef8d5e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
#
class
WebHook
<
ActiveRecord
::
Base
class
WebHook
<
ActiveRecord
::
Base
...
...
app/models/identity.rb
View file @
45ef8d5e
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
# Table name: identities
# Table name: identities
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# extern_uid :string
(255)
# extern_uid :string
# provider :string
(255)
# provider :string
# user_id :integer
# user_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
...
app/models/issue.rb
View file @
45ef8d5e
...
@@ -3,20 +3,23 @@
...
@@ -3,20 +3,23 @@
# Table name: issues
# Table name: issues
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# title :string
(255)
# title :string
# assignee_id :integer
# assignee_id :integer
# author_id :integer
# author_id :integer
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# position :integer default(0)
# position :integer default(0)
# branch_name :string
(255)
# branch_name :string
# description :text
# description :text
# milestone_id :integer
# milestone_id :integer
# state :string
(255)
# state :string
# iid :integer
# iid :integer
# updated_by_id :integer
# updated_by_id :integer
# moved_to_id :integer
# moved_to_id :integer
# confidential :boolean default(FALSE)
# deleted_at :datetime
# due_date :date
#
#
require
'carrierwave/orm/activerecord'
require
'carrierwave/orm/activerecord'
...
...
app/models/key.rb
View file @
45ef8d5e
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# key :text
# key :text
# title :string
(255)
# title :string
# type :string
(255)
# type :string
# fingerprint :string
(255)
# fingerprint :string
# public :boolean default(FALSE), not null
# public :boolean default(FALSE), not null
#
#
...
...
app/models/label.rb
View file @
45ef8d5e
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
# Table name: labels
# Table name: labels
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# title
:string(255)
# title
:string
# color
:string(255)
# color
:string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# description
:string(255)
# description
:string
#
#
class
Label
<
ActiveRecord
::
Base
class
Label
<
ActiveRecord
::
Base
...
...
app/models/label_link.rb
View file @
45ef8d5e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# id :integer not null, primary key
# id :integer not null, primary key
# label_id :integer
# label_id :integer
# target_id :integer
# target_id :integer
# target_type :string
(255)
# target_type :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
#
#
...
...
app/models/lfs_object.rb
View file @
45ef8d5e
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
# Table name: lfs_objects
# Table name: lfs_objects
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# oid :string
(255)
not null
# oid :string
not null
# size :integer not null
# size :integer not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# file :string
(255)
# file :string
#
#
class
LfsObject
<
ActiveRecord
::
Base
class
LfsObject
<
ActiveRecord
::
Base
...
...
app/models/member.rb
View file @
45ef8d5e
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
# id :integer not null, primary key
# id :integer not null, primary key
# access_level :integer not null
# access_level :integer not null
# source_id :integer not null
# source_id :integer not null
# source_type :string
(255)
not null
# source_type :string
not null
# user_id :integer
# user_id :integer
# notification_level :integer not null
# notification_level :integer not null
# type :string
(255)
# type :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# created_by_id :integer
# created_by_id :integer
# invite_email :string
(255)
# invite_email :string
# invite_token :string
(255)
# invite_token :string
# invite_accepted_at :datetime
# invite_accepted_at :datetime
#
#
...
...
app/models/members/group_member.rb
View file @
45ef8d5e
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
# id :integer not null, primary key
# id :integer not null, primary key
# access_level :integer not null
# access_level :integer not null
# source_id :integer not null
# source_id :integer not null
# source_type :string
(255)
not null
# source_type :string
not null
# user_id :integer
# user_id :integer
# notification_level :integer not null
# notification_level :integer not null
# type :string
(255)
# type :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# created_by_id :integer
# created_by_id :integer
# invite_email :string
(255)
# invite_email :string
# invite_token :string
(255)
# invite_token :string
# invite_accepted_at :datetime
# invite_accepted_at :datetime
#
#
...
...
app/models/members/project_member.rb
View file @
45ef8d5e
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
# id :integer not null, primary key
# id :integer not null, primary key
# access_level :integer not null
# access_level :integer not null
# source_id :integer not null
# source_id :integer not null
# source_type :string
(255)
not null
# source_type :string
not null
# user_id :integer
# user_id :integer
# notification_level :integer not null
# notification_level :integer not null
# type :string
(255)
# type :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# created_by_id :integer
# created_by_id :integer
# invite_email :string
(255)
# invite_email :string
# invite_token :string
(255)
# invite_token :string
# invite_accepted_at :datetime
# invite_accepted_at :datetime
#
#
...
...
app/models/merge_request.rb
View file @
45ef8d5e
...
@@ -3,28 +3,29 @@
...
@@ -3,28 +3,29 @@
# Table name: merge_requests
# Table name: merge_requests
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# target_branch :string
(255)
not null
# target_branch :string
not null
# source_branch :string
(255)
not null
# source_branch :string
not null
# source_project_id :integer not null
# source_project_id :integer not null
# author_id :integer
# author_id :integer
# assignee_id :integer
# assignee_id :integer
# title :string
(255)
# title :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# milestone_id :integer
# milestone_id :integer
# state :string
(255)
# state :string
# merge_status :string
(255)
# merge_status :string
# target_project_id :integer not null
# target_project_id :integer not null
# iid :integer
# iid :integer
# description :text
# description :text
# position :integer default(0)
# position :integer default(0)
# locked_at :datetime
# locked_at :datetime
# updated_by_id :integer
# updated_by_id :integer
# merge_error :string
(255)
# merge_error :string
# merge_params :text
# merge_params :text
# merge_when_build_succeeds :boolean default(FALSE), not null
# merge_when_build_succeeds :boolean default(FALSE), not null
# merge_user_id :integer
# merge_user_id :integer
# merge_commit_sha :string
# merge_commit_sha :string
# deleted_at :datetime
#
#
class
MergeRequest
<
ActiveRecord
::
Base
class
MergeRequest
<
ActiveRecord
::
Base
...
...
app/models/merge_request_diff.rb
View file @
45ef8d5e
...
@@ -3,12 +3,14 @@
...
@@ -3,12 +3,14 @@
# Table name: merge_request_diffs
# Table name: merge_request_diffs
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# state :string
(255)
# state :string
# st_commits :text
# st_commits :text
# st_diffs :text
# st_diffs :text
# merge_request_id :integer not null
# merge_request_id :integer not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# base_commit_sha :string
# real_size :string
#
#
class
MergeRequestDiff
<
ActiveRecord
::
Base
class
MergeRequestDiff
<
ActiveRecord
::
Base
...
...
app/models/milestone.rb
View file @
45ef8d5e
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
# Table name: milestones
# Table name: milestones
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# title :string
(255)
not null
# title :string
not null
# project_id :integer not null
# project_id :integer not null
# description :text
# description :text
# due_date :date
# due_date :date
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# state :string
(255)
# state :string
# iid :integer
# iid :integer
#
#
...
...
app/models/namespace.rb
View file @
45ef8d5e
...
@@ -3,14 +3,16 @@
...
@@ -3,14 +3,16 @@
# Table name: namespaces
# Table name: namespaces
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# name
:string(255)
not null
# name
:string
not null
# path
:string(255)
not null
# path
:string
not null
# owner_id :integer
# owner_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# type :string(255)
# type :string
# description :string(255) default(""), not null
# description :string default(""), not null
# avatar :string(255)
# avatar :string
# share_with_group_lock :boolean default(FALSE)
# visibility_level :integer default(20), not null
#
#
class
Namespace
<
ActiveRecord
::
Base
class
Namespace
<
ActiveRecord
::
Base
...
...
app/models/note.rb
View file @
45ef8d5e
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# note :text
# note :text
# noteable_type :string
(255)
# noteable_type :string
# author_id :integer
# author_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# project_id :integer
# project_id :integer
# attachment :string
(255)
# attachment :string
# line_code :string
(255)
# line_code :string
# commit_id :string
(255)
# commit_id :string
# noteable_id :integer
# noteable_id :integer
# system :boolean default(FALSE), not null
# system :boolean default(FALSE), not null
# st_diff :text
# st_diff :text
...
...
app/models/notification_setting.rb
View file @
45ef8d5e
# == Schema Information
#
# Table name: notification_settings
#
# id :integer not null, primary key
# user_id :integer not null
# source_id :integer not null
# source_type :string not null
# level :integer default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
#
class
NotificationSetting
<
ActiveRecord
::
Base
class
NotificationSetting
<
ActiveRecord
::
Base
enum
level:
{
disabled:
0
,
participating:
1
,
watch:
2
,
global:
3
,
mention:
4
}
enum
level:
{
disabled:
0
,
participating:
1
,
watch:
2
,
global:
3
,
mention:
4
}
...
...
app/models/personal_snippet.rb
View file @
45ef8d5e
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
# Table name: snippets
# Table name: snippets
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# title :string
(255)
# title :string
# content :text
# content :text
# author_id :integer not null
# author_id :integer not null
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# file_name :string
(255)
# file_name :string
# type :string
(255)
# type :string
# visibility_level :integer default(0), not null
# visibility_level :integer default(0), not null
#
#
...
...
app/models/project.rb
View file @
45ef8d5e
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
# Table name: projects
# Table name: projects
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# name
:string(255)
# name
:string
# path
:string(255)
# path
:string
# description :text
# description :text
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
@@ -14,19 +14,19 @@
...
@@ -14,19 +14,19 @@
# merge_requests_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# namespace_id :integer
# namespace_id :integer
# issues_tracker
:string(255)
default("gitlab"), not null
# issues_tracker
:string
default("gitlab"), not null
# issues_tracker_id
:string(255)
# issues_tracker_id
:string
# snippets_enabled :boolean default(TRUE), not null
# snippets_enabled :boolean default(TRUE), not null
# last_activity_at :datetime
# last_activity_at :datetime
# import_url
:string(255)
# import_url
:string
# visibility_level :integer default(0), not null
# visibility_level :integer default(0), not null
# archived :boolean default(FALSE), not null
# archived :boolean default(FALSE), not null
# avatar
:string(255)
# avatar
:string
# import_status
:string(255)
# import_status
:string
# repository_size :float default(0.0)
# repository_size :float default(0.0)
# star_count :integer default(0), not null
# star_count :integer default(0), not null
# import_type
:string(255)
# import_type
:string
# import_source
:string(255)
# import_source
:string
# commit_count :integer default(0)
# commit_count :integer default(0)
# import_error :text
# import_error :text
# ci_id :integer
# ci_id :integer
...
@@ -36,7 +36,12 @@
...
@@ -36,7 +36,12 @@
# build_coverage_regex :string
# build_coverage_regex :string
# build_allow_git_fetch :boolean default(TRUE), not null
# build_allow_git_fetch :boolean default(TRUE), not null
# build_timeout :integer default(3600), not null
# build_timeout :integer default(3600), not null
# pending_delete :boolean
# pending_delete :boolean default(FALSE)
# public_builds :boolean default(TRUE), not null
# main_language :string
# pushes_since_gc :integer default(0)
# last_repository_check_failed :boolean
# last_repository_check_at :datetime
#
#
require
'carrierwave/orm/activerecord'
require
'carrierwave/orm/activerecord'
...
...
app/models/project_group_link.rb
View file @
45ef8d5e
# == Schema Information
#
# Table name: project_group_links
#
# id :integer not null, primary key
# project_id :integer not null
# group_id :integer not null
# created_at :datetime
# updated_at :datetime
# group_access :integer default(30), not null
#
class
ProjectGroupLink
<
ActiveRecord
::
Base
class
ProjectGroupLink
<
ActiveRecord
::
Base
GUEST
=
10
GUEST
=
10
REPORTER
=
20
REPORTER
=
20
...
...
app/models/project_import_data.rb
View file @
45ef8d5e
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# data :text
# data :text
# encrypted_credentials :text
# encrypted_credentials_iv :text
# encrypted_credentials_salt :text
#
#
require
'carrierwave/orm/activerecord'
require
'carrierwave/orm/activerecord'
...
...
app/models/project_services/asana_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
require
'asana'
require
'asana'
...
...
app/models/project_services/assembla_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
AssemblaService
<
Service
class
AssemblaService
<
Service
...
...
app/models/project_services/bamboo_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
BambooService
<
CiService
class
BambooService
<
CiService
...
...
app/models/project_services/buildkite_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
require
"addressable/uri"
require
"addressable/uri"
...
...
app/models/project_services/builds_email_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
BuildsEmailService
<
Service
class
BuildsEmailService
<
Service
...
...
app/models/project_services/campfire_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
CampfireService
<
Service
class
CampfireService
<
Service
...
...
app/models/project_services/ci_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
# Base class for CI services
# Base class for CI services
...
...
app/models/project_services/custom_issue_tracker_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
CustomIssueTrackerService
<
IssueTrackerService
class
CustomIssueTrackerService
<
IssueTrackerService
...
...
app/models/project_services/drone_ci_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
DroneCiService
<
CiService
class
DroneCiService
<
CiService
...
...
app/models/project_services/emails_on_push_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
EmailsOnPushService
<
Service
class
EmailsOnPushService
<
Service
...
...
app/models/project_services/external_wiki_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
ExternalWikiService
<
Service
class
ExternalWikiService
<
Service
...
...
app/models/project_services/flowdock_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
require
"flowdock-git-hook"
require
"flowdock-git-hook"
...
...
app/models/project_services/gemnasium_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
require
"gemnasium/gitlab_service"
require
"gemnasium/gitlab_service"
...
...
app/models/project_services/gitlab_ci_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
# TODO(ayufan): The GitLabCiService is deprecated and the type should be removed when the database entries are removed
# TODO(ayufan): The GitLabCiService is deprecated and the type should be removed when the database entries are removed
...
...
app/models/project_services/gitlab_issue_tracker_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
GitlabIssueTrackerService
<
IssueTrackerService
class
GitlabIssueTrackerService
<
IssueTrackerService
...
...
app/models/project_services/hipchat_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
HipchatService
<
Service
class
HipchatService
<
Service
...
...
app/models/project_services/irker_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
require
'uri'
require
'uri'
...
...
app/models/project_services/issue_tracker_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
IssueTrackerService
<
Service
class
IssueTrackerService
<
Service
...
...
app/models/project_services/jira_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
JiraService
<
IssueTrackerService
class
JiraService
<
IssueTrackerService
...
...
app/models/project_services/pivotaltracker_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
PivotaltrackerService
<
Service
class
PivotaltrackerService
<
Service
...
...
app/models/project_services/pushover_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
PushoverService
<
Service
class
PushoverService
<
Service
...
...
app/models/project_services/redmine_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
RedmineService
<
IssueTrackerService
class
RedmineService
<
IssueTrackerService
...
...
app/models/project_services/slack_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
SlackService
<
Service
class
SlackService
<
Service
...
...
app/models/project_services/teamcity_service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
class
TeamcityService
<
CiService
class
TeamcityService
<
CiService
...
...
app/models/project_snippet.rb
View file @
45ef8d5e
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
# Table name: snippets
# Table name: snippets
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# title :string
(255)
# title :string
# content :text
# content :text
# author_id :integer not null
# author_id :integer not null
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# file_name :string
(255)
# file_name :string
# type :string
(255)
# type :string
# visibility_level :integer default(0), not null
# visibility_level :integer default(0), not null
#
#
...
...
app/models/protected_branch.rb
View file @
45ef8d5e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer not null
# project_id :integer not null
# name :string
(255)
not null
# name :string
not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# developers_can_push :boolean default(FALSE), not null
# developers_can_push :boolean default(FALSE), not null
...
...
app/models/release.rb
View file @
45ef8d5e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Table name: releases
# Table name: releases
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# tag :string
(255)
# tag :string
# description :text
# description :text
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
...
...
app/models/security_event.rb
View file @
45ef8d5e
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# author_id :integer not null
# author_id :integer not null
# type :string
(255)
not null
# type :string
not null
# entity_id :integer not null
# entity_id :integer not null
# entity_type :string
(255)
not null
# entity_type :string
not null
# details :text
# details :text
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
...
app/models/sent_notification.rb
View file @
45ef8d5e
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
# id :integer not null, primary key
# id :integer not null, primary key
# project_id :integer
# project_id :integer
# noteable_id :integer
# noteable_id :integer
# noteable_type :string
(255)
# noteable_type :string
# recipient_id :integer
# recipient_id :integer
# commit_id :string
(255)
# commit_id :string
#
line_code :string(255)
#
reply_key :string not null
#
reply_key :string(255) not null
#
line_code :string
#
#
class
SentNotification
<
ActiveRecord
::
Base
class
SentNotification
<
ActiveRecord
::
Base
...
...
app/models/service.rb
View file @
45ef8d5e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
# Table name: services
# Table name: services
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# type :string
(255)
# type :string
# title :string
(255)
# title :string
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
not null
# updated_at :datetime
# updated_at :datetime
not null
# active :boolean
default(FALSE),
not null
# active :boolean not null
# properties :text
# properties :text
# template :boolean default(FALSE)
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# push_events :boolean default(TRUE)
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
# tag_push_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# note_events :boolean default(TRUE), not null
# build_events :boolean default(FALSE), not null
# build_events :boolean default(FALSE), not null
# category :string default("common"), not null
# default :boolean default(FALSE)
# wiki_page_events :boolean default(TRUE)
#
#
# To add new service you should build a class inherited from Service
# To add new service you should build a class inherited from Service
...
...
app/models/snippet.rb
View file @
45ef8d5e
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
# Table name: snippets
# Table name: snippets
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# title :string
(255)
# title :string
# content :text
# content :text
# author_id :integer not null
# author_id :integer not null
# project_id :integer
# project_id :integer
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# file_name :string
(255)
# file_name :string
# type :string
(255)
# type :string
# visibility_level :integer default(0), not null
# visibility_level :integer default(0), not null
#
#
...
...
app/models/spam_log.rb
View file @
45ef8d5e
# == Schema Information
#
# Table name: spam_logs
#
# id :integer not null, primary key
# user_id :integer
# source_ip :string
# user_agent :string
# via_api :boolean
# project_id :integer
# noteable_type :string
# title :string
# description :text
# created_at :datetime not null
# updated_at :datetime not null
#
class
SpamLog
<
ActiveRecord
::
Base
class
SpamLog
<
ActiveRecord
::
Base
belongs_to
:user
belongs_to
:user
...
...
app/models/subscription.rb
View file @
45ef8d5e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# id :integer not null, primary key
# id :integer not null, primary key
# user_id :integer
# user_id :integer
# subscribable_id :integer
# subscribable_id :integer
# subscribable_type :string
(255)
# subscribable_type :string
# subscribed :boolean
# subscribed :boolean
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
...
app/models/user.rb
View file @
45ef8d5e
...
@@ -3,55 +3,55 @@
...
@@ -3,55 +3,55 @@
# Table name: users
# Table name: users
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# email :string
(255)
default(""), not null
# email :string
default(""), not null
# encrypted_password :string
(255)
default(""), not null
# encrypted_password :string
default(""), not null
# reset_password_token :string
(255)
# reset_password_token :string
# reset_password_sent_at :datetime
# reset_password_sent_at :datetime
# remember_created_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string
(255)
# current_sign_in_ip :string
# last_sign_in_ip :string
(255)
# last_sign_in_ip :string
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
# name :string
(255)
# name :string
# admin :boolean default(FALSE), not null
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
# projects_limit :integer default(10)
# skype :string
(255)
default(""), not null
# skype :string
default(""), not null
# linkedin :string
(255)
default(""), not null
# linkedin :string
default(""), not null
# twitter :string
(255)
default(""), not null
# twitter :string
default(""), not null
# authentication_token :string
(255)
# authentication_token :string
# theme_id :integer default(1), not null
# theme_id :integer default(1), not null
# bio :string
(255)
# bio :string
# failed_attempts :integer default(0)
# failed_attempts :integer default(0)
# locked_at :datetime
# locked_at :datetime
# username :string
(255)
# username :string
# can_create_group :boolean default(TRUE), not null
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string
(255)
# state :string
# color_scheme_id :integer default(1), not null
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# password_expires_at :datetime
# created_by_id :integer
# created_by_id :integer
# last_credential_check_at :datetime
# last_credential_check_at :datetime
# avatar :string
(255)
# avatar :string
# confirmation_token :string
(255)
# confirmation_token :string
# confirmed_at :datetime
# confirmed_at :datetime
# confirmation_sent_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string
(255)
# unconfirmed_email :string
# hide_no_ssh_key :boolean default(FALSE)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string
(255)
default(""), not null
# website_url :string
default(""), not null
# notification_email :string
(255)
# notification_email :string
# hide_no_password :boolean default(FALSE)
# hide_no_password :boolean default(FALSE)
# password_automatically_set :boolean default(FALSE)
# password_automatically_set :boolean default(FALSE)
# location :string
(255)
# location :string
# encrypted_otp_secret :string
(255)
# encrypted_otp_secret :string
# encrypted_otp_secret_iv :string
(255)
# encrypted_otp_secret_iv :string
# encrypted_otp_secret_salt :string
(255)
# encrypted_otp_secret_salt :string
# otp_required_for_login :boolean default(FALSE), not null
# otp_required_for_login :boolean default(FALSE), not null
# otp_backup_codes :text
# otp_backup_codes :text
# public_email :string
(255)
default(""), not null
# public_email :string
default(""), not null
# dashboard :integer default(0)
# dashboard :integer default(0)
# project_view :integer default(0)
# project_view :integer default(0)
# consumed_timestep :integer
# consumed_timestep :integer
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
# hide_project_limit :boolean default(FALSE)
# hide_project_limit :boolean default(FALSE)
# unlock_token :string
# unlock_token :string
# otp_grace_period_started_at :datetime
# otp_grace_period_started_at :datetime
# ldap_email :boolean default(FALSE), not null
# external :boolean default(FALSE)
# external :boolean default(FALSE)
#
#
...
...
lib/tasks/auto_annotate_models.rake
0 → 100644
View file @
45ef8d5e
if
Rails
.
env
.
development?
task
:set_annotation_options
do
# You can override any of these by setting an environment variable of the
# same name.
Annotate
.
set_defaults
(
'routes'
=>
'false'
,
'position_in_routes'
=>
'before'
,
'position_in_class'
=>
'before'
,
'position_in_test'
=>
'before'
,
'position_in_fixture'
=>
'before'
,
'position_in_factory'
=>
'before'
,
'position_in_serializer'
=>
'before'
,
'show_foreign_keys'
=>
'true'
,
'show_indexes'
=>
'false'
,
'simple_indexes'
=>
'false'
,
'model_dir'
=>
'app/models'
,
'root_dir'
=>
''
,
'include_version'
=>
'false'
,
'require'
=>
''
,
'exclude_tests'
=>
'true'
,
'exclude_fixtures'
=>
'true'
,
'exclude_factories'
=>
'true'
,
'exclude_serializers'
=>
'true'
,
'exclude_scaffolds'
=>
'true'
,
'exclude_controllers'
=>
'true'
,
'exclude_helpers'
=>
'true'
,
'ignore_model_sub_dir'
=>
'false'
,
'ignore_columns'
=>
nil
,
'ignore_unknown_models'
=>
'false'
,
'hide_limit_column_types'
=>
'integer,boolean'
,
'skip_on_db_migrate'
=>
'false'
,
'format_bare'
=>
'true'
,
'format_rdoc'
=>
'false'
,
'format_markdown'
=>
'false'
,
'sort'
=>
'false'
,
'force'
=>
'false'
,
'trace'
=>
'false'
,
'wrapper_open'
=>
nil
,
'wrapper_close'
=>
nil
,
)
end
Annotate
.
load_tasks
end
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