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
iv
gitlab-ce
Commits
ef707ebf
Commit
ef707ebf
authored
Aug 02, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9520 from gipcompany/annotate-models-update
Re-annotate models
parents
bdb4288a
f33898ec
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
6 deletions
+43
-6
app/models/application_setting.rb
app/models/application_setting.rb
+3
-2
app/models/audit_event.rb
app/models/audit_event.rb
+14
-0
app/models/project.rb
app/models/project.rb
+2
-1
app/models/security_event.rb
app/models/security_event.rb
+14
-0
app/models/user.rb
app/models/user.rb
+1
-0
spec/factories/projects.rb
spec/factories/projects.rb
+2
-1
spec/models/application_setting_spec.rb
spec/models/application_setting_spec.rb
+4
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+2
-1
spec/models/user_spec.rb
spec/models/user_spec.rb
+1
-0
No files found.
app/models/application_setting.rb
View file @
ef707ebf
...
...
@@ -14,13 +14,14 @@
# default_branch_protection :integer default(2)
# twitter_sharing_enabled :boolean default(TRUE)
# restricted_visibility_levels :text
# version_check_enabled :boolean default(TRUE)
# max_attachment_size :integer default(10), not null
# session_expire_delay :integer default(10080), not null
# default_project_visibility :integer
# default_snippet_visibility :integer
# restricted_signup_domains :text
# user_oauth_applications :bool
default(TRUE)
# user_oauth_applications :bool
ean
default(TRUE)
# after_sign_out_path :string(255)
# session_expire_delay :integer default(10080), not null
#
class
ApplicationSetting
<
ActiveRecord
::
Base
...
...
app/models/audit_event.rb
View file @
ef707ebf
# == Schema Information
#
# Table name: audit_events
#
# id :integer not null, primary key
# author_id :integer not null
# type :string(255) not null
# entity_id :integer not null
# entity_type :string(255) not null
# details :text
# created_at :datetime
# updated_at :datetime
#
class
AuditEvent
<
ActiveRecord
::
Base
serialize
:details
,
Hash
...
...
app/models/project.rb
View file @
ef707ebf
...
...
@@ -21,12 +21,13 @@
# import_url :string(255)
# visibility_level :integer default(0), not null
# archived :boolean default(FALSE), not null
# avatar :string(255)
# import_status :string(255)
# repository_size :float default(0.0)
# star_count :integer default(0), not null
# import_type :string(255)
# import_source :string(255)
#
avatar :string(255
)
#
commit_count :integer default(0
)
#
require
'carrierwave/orm/activerecord'
...
...
app/models/security_event.rb
View file @
ef707ebf
# == Schema Information
#
# Table name: audit_events
#
# id :integer not null, primary key
# author_id :integer not null
# type :string(255) not null
# entity_id :integer not null
# entity_type :string(255) not null
# details :text
# created_at :datetime
# updated_at :datetime
#
class
SecurityEvent
<
AuditEvent
end
app/models/user.rb
View file @
ef707ebf
...
...
@@ -57,6 +57,7 @@
# otp_backup_codes :text
# public_email :string(255) default(""), not null
# dashboard :integer default(0)
# project_view :integer default(0)
#
require
'carrierwave/orm/activerecord'
...
...
spec/factories/projects.rb
View file @
ef707ebf
...
...
@@ -21,12 +21,13 @@
# import_url :string(255)
# visibility_level :integer default(0), not null
# archived :boolean default(FALSE), not null
# avatar :string(255)
# import_status :string(255)
# repository_size :float default(0.0)
# star_count :integer default(0), not null
# import_type :string(255)
# import_source :string(255)
#
avatar :string(255
)
#
commit_count :integer default(0
)
#
FactoryGirl
.
define
do
...
...
spec/models/application_setting_spec.rb
View file @
ef707ebf
...
...
@@ -14,11 +14,14 @@
# default_branch_protection :integer default(2)
# twitter_sharing_enabled :boolean default(TRUE)
# restricted_visibility_levels :text
# version_check_enabled :boolean default(TRUE)
# max_attachment_size :integer default(10), not null
# session_expire_delay :integer default(10080), not null
# default_project_visibility :integer
# default_snippet_visibility :integer
# restricted_signup_domains :text
# user_oauth_applications :boolean default(TRUE)
# after_sign_out_path :string(255)
# session_expire_delay :integer default(10080), not null
#
require
'spec_helper'
...
...
spec/models/project_spec.rb
View file @
ef707ebf
...
...
@@ -21,12 +21,13 @@
# import_url :string(255)
# visibility_level :integer default(0), not null
# archived :boolean default(FALSE), not null
# avatar :string(255)
# import_status :string(255)
# repository_size :float default(0.0)
# star_count :integer default(0), not null
# import_type :string(255)
# import_source :string(255)
#
avatar :string(255
)
#
commit_count :integer default(0
)
#
require
'spec_helper'
...
...
spec/models/user_spec.rb
View file @
ef707ebf
...
...
@@ -57,6 +57,7 @@
# otp_backup_codes :text
# public_email :string(255) default(""), not null
# dashboard :integer default(0)
# project_view :integer default(0)
#
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