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
40aee4834e57
Commit
40aee483
authored
Aug 03, 2015
by
Atsushi Ishida
Browse files
Re-annotate models
parent
3d00c2eadb27
Changes
9
Hide whitespace changes
Inline
Side-by-side
app/models/application_setting.rb
View file @
40aee483
...
...
@@ -14,4 +14,5 @@
# 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
...
...
@@ -17,5 +18,4 @@
# 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
...
...
@@ -19,5 +19,5 @@
# 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)
...
...
@@ -23,4 +23,5 @@
# 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 @
40aee483
# == 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 @
40aee483
...
...
@@ -21,8 +21,9 @@
# 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)
...
...
@@ -24,9 +25,9 @@
# 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 @
40aee483
# == 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 @
40aee483
...
...
@@ -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 @
40aee483
...
...
@@ -21,8 +21,9 @@
# 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)
...
...
@@ -24,9 +25,9 @@
# 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 @
40aee483
...
...
@@ -14,4 +14,5 @@
# 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
...
...
@@ -17,5 +18,4 @@
# 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
...
...
@@ -19,6 +19,9 @@
# 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 @
40aee483
...
...
@@ -21,8 +21,9 @@
# 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)
...
...
@@ -24,9 +25,9 @@
# 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 @
40aee483
...
...
@@ -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
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