Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Aug 2, 2015
2 parents 688ee3e + ef707eb commit b8433cb
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/models/application_setting.rb
Expand Up @@ -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 :boolean default(TRUE)
# after_sign_out_path :string(255)
# session_expire_delay :integer default(10080), not null
#

class ApplicationSetting < ActiveRecord::Base
Expand Down
14 changes: 14 additions & 0 deletions app/models/audit_event.rb
@@ -1,3 +1,17 @@
# == 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

Expand Down
3 changes: 2 additions & 1 deletion app/models/project.rb
Expand Up @@ -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'
Expand Down
14 changes: 14 additions & 0 deletions app/models/security_event.rb
@@ -1,2 +1,16 @@
# == 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
1 change: 1 addition & 0 deletions app/models/user.rb
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion spec/factories/projects.rb
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion spec/models/application_setting_spec.rb
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion spec/models/project_spec.rb
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions spec/models/user_spec.rb
Expand Up @@ -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'
Expand Down

0 comments on commit b8433cb

Please sign in to comment.