Commit a3157626 authored by Stan Hu's avatar Stan Hu

Re-annotate models

parent e22936c6
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
# #
# id :integer not null, primary key # id :integer not null, primary key
# default_projects_limit :integer # default_projects_limit :integer
# default_branch_protection :integer
# signup_enabled :boolean # signup_enabled :boolean
# signin_enabled :boolean # signin_enabled :boolean
# gravatar_enabled :boolean # gravatar_enabled :boolean
# twitter_sharing_enabled :boolean
# sign_in_text :text # sign_in_text :text
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
...@@ -16,8 +14,9 @@ ...@@ -16,8 +14,9 @@
# default_branch_protection :integer default(2) # default_branch_protection :integer default(2)
# twitter_sharing_enabled :boolean default(TRUE) # twitter_sharing_enabled :boolean default(TRUE)
# restricted_visibility_levels :text # restricted_visibility_levels :text
# max_attachment_size :integer default(10) # max_attachment_size :integer default(10), not null
# default_project_visibility :integer # default_project_visibility :integer
# default_snippet_visibility :integer
# restricted_signup_domains :text # restricted_signup_domains :text
# #
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# key :text # key :text
# public :boolean default(FALSE)
# title :string(255) # title :string(255)
# type :string(255) # type :string(255)
# fingerprint :string(255) # fingerprint :string(255)
# public :boolean default(FALSE), not null
# #
class DeployKey < Key class DeployKey < Key
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# title :string(255) # title :string(255)
# type :string(255) # type :string(255)
# fingerprint :string(255) # fingerprint :string(255)
# public :boolean default(FALSE), not null
# #
require 'digest/md5' require 'digest/md5'
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
# 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(255) not null
# user_id :integer not null # user_id :integer
# notification_level :integer not null # notification_level :integer not null
# type :string(255) # type :string(255)
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# created_by_id :integer # created_by_id :integer
# invite_email :string # invite_email :string(255)
# invite_token :string # invite_token :string(255)
# invite_accepted_at :datetime # invite_accepted_at :datetime
# #
......
...@@ -6,11 +6,15 @@ ...@@ -6,11 +6,15 @@
# 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(255) not null
# user_id :integer not null # user_id :integer
# notification_level :integer not null # notification_level :integer not null
# type :string(255) # type :string(255)
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# created_by_id :integer
# invite_email :string(255)
# invite_token :string(255)
# invite_accepted_at :datetime
# #
class GroupMember < Member class GroupMember < Member
......
...@@ -6,11 +6,15 @@ ...@@ -6,11 +6,15 @@
# 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(255) not null
# user_id :integer not null # user_id :integer
# notification_level :integer not null # notification_level :integer not null
# type :string(255) # type :string(255)
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# created_by_id :integer
# invite_email :string(255)
# invite_token :string(255)
# invite_accepted_at :datetime
# #
class ProjectMember < Member class ProjectMember < Member
......
# == Schema Information # == Schema Information
# #
# Table name: project_import_datas # Table name: project_import_data
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer # project_id :integer
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
# Base class for CI services # Base class for CI services
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
class CustomIssueTrackerService < IssueTrackerService class CustomIssueTrackerService < IssueTrackerService
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
class EmailsOnPushService < Service class EmailsOnPushService < Service
......
...@@ -5,11 +5,17 @@ ...@@ -5,11 +5,17 @@
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
# title :string(255) # title :string(255)
# project_id :integer not null # project_id :integer
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# active :boolean default(FALSE), not null # active :boolean default(FALSE), not null
# properties :text # properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
class ExternalWikiService < Service class ExternalWikiService < Service
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require "flowdock-git-hook" require "flowdock-git-hook"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require "gemnasium/gitlab_service" require "gemnasium/gitlab_service"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
class GitlabCiService < CiService class GitlabCiService < CiService
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
class HipchatService < Service class HipchatService < Service
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'uri' require 'uri'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
# To add new service you should build a class inherited from Service # To add new service you should build a class inherited from Service
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
# password_automatically_set :boolean default(FALSE) # password_automatically_set :boolean default(FALSE)
# bitbucket_access_token :string(255) # bitbucket_access_token :string(255)
# bitbucket_access_token_secret :string(255) # bitbucket_access_token_secret :string(255)
# location :string(255)
# public_email :string(255) default(""), not null # public_email :string(255) default(""), not null
# #
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# #
# id :integer not null, primary key # id :integer not null, primary key
# default_projects_limit :integer # default_projects_limit :integer
# default_branch_protection :integer
# signup_enabled :boolean # signup_enabled :boolean
# signin_enabled :boolean # signin_enabled :boolean
# gravatar_enabled :boolean # gravatar_enabled :boolean
...@@ -15,6 +14,10 @@ ...@@ -15,6 +14,10 @@
# default_branch_protection :integer default(2) # default_branch_protection :integer default(2)
# twitter_sharing_enabled :boolean default(TRUE) # twitter_sharing_enabled :boolean default(TRUE)
# restricted_visibility_levels :text # restricted_visibility_levels :text
# max_attachment_size :integer default(10), not null
# default_project_visibility :integer
# default_snippet_visibility :integer
# restricted_signup_domains :text
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# title :string(255) # title :string(255)
# type :string(255) # type :string(255)
# fingerprint :string(255) # fingerprint :string(255)
# public :boolean default(FALSE), not null
# #
require 'spec_helper' require 'spec_helper'
......
# == Schema Information
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
#
require 'spec_helper' require 'spec_helper'
describe ExternalWikiService do describe ExternalWikiService do
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# title :string(255) # title :string(255)
# type :string(255) # type :string(255)
# fingerprint :string(255) # fingerprint :string(255)
# public :boolean default(FALSE), not null
# #
require 'spec_helper' require 'spec_helper'
......
# == Schema Information
#
# Table name: members
#
# id :integer not null, primary key
# access_level :integer not null
# source_id :integer not null
# source_type :string(255) not null
# user_id :integer
# notification_level :integer not null
# type :string(255)
# created_at :datetime
# updated_at :datetime
# created_by_id :integer
# invite_email :string(255)
# invite_token :string(255)
# invite_accepted_at :datetime
#
require 'spec_helper' require 'spec_helper'
describe Member do describe Member do
......
...@@ -6,11 +6,15 @@ ...@@ -6,11 +6,15 @@
# 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(255) not null
# user_id :integer not null # user_id :integer
# notification_level :integer not null # notification_level :integer not null
# type :string(255) # type :string(255)
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# created_by_id :integer
# invite_email :string(255)
# invite_token :string(255)
# invite_accepted_at :datetime
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -6,11 +6,15 @@ ...@@ -6,11 +6,15 @@
# 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(255) not null
# user_id :integer not null # user_id :integer
# notification_level :integer not null # notification_level :integer not null
# type :string(255) # type :string(255)
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# created_by_id :integer
# invite_email :string(255)
# invite_token :string(255)
# invite_accepted_at :datetime
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -5,15 +5,17 @@ ...@@ -5,15 +5,17 @@
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
# title :string(255) # title :string(255)
# project_id :integer not null # project_id :integer
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# active :boolean default(FALSE), not null # active :boolean default(FALSE), not null
# properties :text # properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE) # push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# issues_events :boolean default(TRUE) # issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE) # merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE) # tag_push_events :boolean default(TRUE)
# note_events :boolean default(TRUE), not null
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
# password_automatically_set :boolean default(FALSE) # password_automatically_set :boolean default(FALSE)
# bitbucket_access_token :string(255) # bitbucket_access_token :string(255)
# bitbucket_access_token_secret :string(255) # bitbucket_access_token_secret :string(255)
# location :string(255)
# public_email :string(255) default(""), not null
# #
require 'spec_helper' require 'spec_helper'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment