Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
0543cccc7123
Commit
0543cccc
authored
May 06, 2016
by
Douwe Maan
Browse files
Merge branch 'annotate-models' into 'master'
Update annotations on models See merge request !3962
parents
4ef45667b734
a95476cc1081
Changes
73
Hide whitespace changes
Inline
Side-by-side
app/models/appearance.rb
View file @
0543cccc
# == 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
validates
:title
,
presence:
true
validates
:description
,
presence:
true
...
...
app/models/application_setting.rb
View file @
0543cccc
...
...
@@ -10,10 +10,10 @@
# sign_in_text :text
# created_at :datetime
# updated_at :datetime
# home_page_url :string
(255)
# home_page_url :string
# default_branch_protection :integer default(2)
# restricted_visibility_levels :text
# version_check_enabled :boolean default(TRUE)
# max_attachment_size :integer default(10), not null
# default_project_visibility :integer
# default_snippet_visibility :integer
...
...
@@ -14,9 +14,8 @@
# default_branch_protection :integer default(2)
# restricted_visibility_levels :text
# version_check_enabled :boolean default(TRUE)
# max_attachment_size :integer default(10), not null
# default_project_visibility :integer
# default_snippet_visibility :integer
# default_group_visibility :integer
# restricted_signup_domains :text
# user_oauth_applications :boolean default(TRUE)
...
...
@@ -21,6 +20,6 @@
# restricted_signup_domains :text
# 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
# import_sources :text
# help_page_text :text
...
...
@@ -24,7 +23,7 @@
# session_expire_delay :integer default(10080), not null
# import_sources :text
# help_page_text :text
# admin_notification_email :string
(255)
# admin_notification_email :string
# shared_runners_enabled :boolean default(TRUE), not null
# max_artifacts_size :integer default(100), not null
# runners_registration_token :string
...
...
@@ -32,8 +31,6 @@
# two_factor_grace_period :integer default(48)
# metrics_enabled :boolean default(FALSE)
# metrics_host :string default("localhost")
# metrics_username :string
# metrics_password :string
# metrics_pool_size :integer default(16)
# metrics_timeout :integer default(10)
# metrics_method_call_threshold :integer default(10)
...
...
@@ -41,5 +38,6 @@
# recaptcha_site_key :string
# recaptcha_private_key :string
# metrics_port :integer default(8089)
# metrics_sample_interval :integer default(15)
# sentry_enabled :boolean default(FALSE)
# sentry_dsn :string
...
...
@@ -44,3 +42,5 @@
# sentry_enabled :boolean default(FALSE)
# sentry_dsn :string
# akismet_enabled :boolean default(FALSE)
# akismet_api_key :string
# email_author_in_body :boolean default(FALSE)
...
...
@@ -46,4 +46,8 @@
# 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
...
...
app/models/audit_event.rb
View file @
0543cccc
...
...
@@ -4,5 +4,5 @@
#
# id :integer not null, primary key
# author_id :integer not null
# type :string
(255)
not null
# type :string
not null
# entity_id :integer not null
...
...
@@ -8,5 +8,5 @@
# entity_id :integer not null
# entity_type :string
(255)
not null
# entity_type :string
not null
# details :text
# created_at :datetime
# updated_at :datetime
...
...
app/models/broadcast_message.rb
View file @
0543cccc
...
...
@@ -8,8 +8,8 @@
# ends_at :datetime
# created_at :datetime
# updated_at :datetime
# color :string
(255)
# font :string
(255)
# color :string
# font :string
#
class
BroadcastMessage
<
ActiveRecord
::
Base
...
...
app/models/ci/build.rb
View file @
0543cccc
...
...
@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# project_id :integer
# status :string
(255)
# status :string
# finished_at :datetime
# trace :text
# created_at :datetime
...
...
@@ -15,7 +15,7 @@
# commit_id :integer
# commands :text
# job_id :integer
# name :string
(255)
# name :string
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
...
...
@@ -19,7 +19,7 @@
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string
(255)
# stage :string
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
...
...
@@ -23,5 +23,5 @@
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string
(255)
# ref :string
# user_id :integer
...
...
@@ -27,7 +27,7 @@
# user_id :integer
# type :string
(255)
# target_url :string
(255)
# description :string
(255)
# type :string
# target_url :string
# description :string
# artifacts_file :text
# gl_project_id :integer
# artifacts_metadata :text
...
...
app/models/ci/commit.rb
View file @
0543cccc
...
...
@@ -4,9 +4,9 @@
#
# id :integer not null, primary key
# project_id :integer
# ref :string
(255)
# sha :string
(255)
# before_sha :string
(255)
# ref :string
# sha :string
# before_sha :string
# push_data :text
# created_at :datetime
# updated_at :datetime
...
...
@@ -14,6 +14,10 @@
# yaml_errors :text
# committed_at :datetime
# gl_project_id :integer
# status :string
# started_at :datetime
# finished_at :datetime
# duration :integer
#
module
Ci
...
...
app/models/ci/runner.rb
View file @
0543cccc
...
...
@@ -3,6 +3,6 @@
# Table name: ci_runners
#
# id :integer not null, primary key
# token :string
(255)
# token :string
# created_at :datetime
# updated_at :datetime
...
...
@@ -7,6 +7,6 @@
# created_at :datetime
# updated_at :datetime
# description :string
(255)
# description :string
# contacted_at :datetime
# active :boolean default(TRUE), not null
# is_shared :boolean default(FALSE)
...
...
@@ -10,11 +10,11 @@
# contacted_at :datetime
# active :boolean default(TRUE), not null
# is_shared :boolean default(FALSE)
# name :string
(255)
# version :string
(255)
# revision :string
(255)
# platform :string
(255)
# architecture :string
(255)
# name :string
# version :string
# revision :string
# platform :string
# architecture :string
#
module
Ci
...
...
app/models/ci/trigger.rb
View file @
0543cccc
...
...
@@ -3,7 +3,7 @@
# Table name: ci_triggers
#
# id :integer not null, primary key
# token :string
(255)
# token :string
# project_id :integer
# deleted_at :datetime
# created_at :datetime
...
...
app/models/ci/variable.rb
View file @
0543cccc
...
...
@@ -4,6 +4,6 @@
#
# id :integer not null, primary key
# project_id :integer
# key :string
(255)
# key :string
# value :text
# encrypted_value :text
...
...
@@ -8,7 +8,7 @@
# value :text
# encrypted_value :text
# encrypted_value_salt :string
(255)
# encrypted_value_iv :string
(255)
# encrypted_value_salt :string
# encrypted_value_iv :string
# gl_project_id :integer
#
...
...
app/models/commit_status.rb
View file @
0543cccc
...
...
@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# project_id :integer
# status :string
(255)
# status :string
# finished_at :datetime
# trace :text
# created_at :datetime
...
...
@@ -15,7 +15,7 @@
# commit_id :integer
# commands :text
# job_id :integer
# name :string
(255)
# name :string
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
...
...
@@ -19,7 +19,7 @@
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string
(255)
# stage :string
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
...
...
@@ -23,5 +23,5 @@
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string
(255)
# ref :string
# user_id :integer
...
...
@@ -27,6 +27,6 @@
# user_id :integer
# type :string
(255)
# target_url :string
(255)
# description :string
(255)
# type :string
# target_url :string
# description :string
# artifacts_file :text
# gl_project_id :integer
...
...
@@ -31,5 +31,8 @@
# artifacts_file :text
# gl_project_id :integer
# artifacts_metadata :text
# erased_by_id :integer
# erased_at :datetime
#
class
CommitStatus
<
ActiveRecord
::
Base
...
...
app/models/deploy_key.rb
View file @
0543cccc
...
...
@@ -7,9 +7,9 @@
# created_at :datetime
# updated_at :datetime
# key :text
# title :string
(255)
# type :string
(255)
# fingerprint :string
(255)
# title :string
# type :string
# fingerprint :string
# public :boolean default(FALSE), not null
#
...
...
app/models/email.rb
View file @
0543cccc
...
...
@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# user_id :integer not null
# email :string
(255)
not null
# email :string
not null
# created_at :datetime
# updated_at :datetime
#
...
...
app/models/event.rb
View file @
0543cccc
...
...
@@ -3,5 +3,5 @@
# Table name: events
#
# id :integer not null, primary key
# target_type :string
(255)
# target_type :string
# target_id :integer
...
...
@@ -7,5 +7,5 @@
# target_id :integer
# title :string
(255)
# title :string
# data :text
# project_id :integer
# created_at :datetime
...
...
app/models/generic_commit_status.rb
View file @
0543cccc
...
...
@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# project_id :integer
# status :string
(255)
# status :string
# finished_at :datetime
# trace :text
# created_at :datetime
...
...
@@ -15,7 +15,7 @@
# commit_id :integer
# commands :text
# job_id :integer
# name :string
(255)
# name :string
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
...
...
@@ -19,7 +19,7 @@
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string
(255)
# stage :string
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
...
...
@@ -23,5 +23,5 @@
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string
(255)
# ref :string
# user_id :integer
...
...
@@ -27,6 +27,6 @@
# user_id :integer
# type :string
(255)
# target_url :string
(255)
# description :string
(255)
# type :string
# target_url :string
# description :string
# artifacts_file :text
# gl_project_id :integer
...
...
@@ -31,5 +31,8 @@
# artifacts_file :text
# gl_project_id :integer
# artifacts_metadata :text
# erased_by_id :integer
# erased_at :datetime
#
class
GenericCommitStatus
<
CommitStatus
...
...
app/models/group.rb
View file @
0543cccc
...
...
@@ -2,16 +2,17 @@
#
# Table name: namespaces
#
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer
# visibility_level :integer default(20), not null
# created_at :datetime
# updated_at :datetime
# type :string(255)
# description :string(255) default(""), not null
# avatar :string(255)
# id :integer not null, primary key
# name :string not null
# path :string not null
# owner_id :integer
# created_at :datetime
# updated_at :datetime
# type :string
# description :string default(""), not null
# avatar :string
# share_with_group_lock :boolean default(FALSE)
# visibility_level :integer default(20), not null
#
require
'carrierwave/orm/activerecord'
...
...
app/models/hooks/project_hook.rb
View file @
0543cccc
...
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
class
ProjectHook
<
WebHook
...
...
app/models/hooks/service_hook.rb
View file @
0543cccc
...
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
class
ServiceHook
<
WebHook
...
...
app/models/hooks/system_hook.rb
View file @
0543cccc
...
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
class
SystemHook
<
WebHook
...
...
app/models/hooks/web_hook.rb
View file @
0543cccc
...
...
@@ -16,7 +16,7 @@
# note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# build_events :boolean default(FALSE), not null
#
token :string
#
wiki_page_events :boolean default(FALSE), not null
#
class
WebHook
<
ActiveRecord
::
Base
...
...
app/models/identity.rb
View file @
0543cccc
...
...
@@ -3,8 +3,8 @@
# Table name: identities
#
# id :integer not null, primary key
# extern_uid :string
(255)
# provider :string
(255)
# extern_uid :string
# provider :string
# user_id :integer
# created_at :datetime
# updated_at :datetime
...
...
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
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