From 41e53eb98058a0082e0951aa21812b04d745414a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 9 Oct 2012 11:14:17 +0300 Subject: [PATCH] Annotated --- app/models/event.rb | 1 + app/models/group.rb | 1 + app/models/issue.rb | 1 + app/models/key.rb | 1 + app/models/merge_request.rb | 5 ++-- app/models/milestone.rb | 1 + app/models/note.rb | 1 + app/models/project_hook.rb | 1 + app/models/protected_branch.rb | 1 + app/models/snippet.rb | 1 + app/models/system_hook.rb | 1 + app/models/user.rb | 1 + app/models/users_project.rb | 1 + app/models/web_hook.rb | 1 + app/models/wiki.rb | 1 + spec/models/event_spec.rb | 16 +++++++++++++ spec/models/issue_spec.rb | 18 +++++++++++++++ spec/models/key_spec.rb | 14 ++++++++++++ spec/models/merge_request_spec.rb | 20 ++++++++++++++++ spec/models/milestone_spec.rb | 14 ++++++++++++ spec/models/note_spec.rb | 16 +++++++++++++ spec/models/protected_branch_spec.rb | 11 +++++++++ spec/models/snippet_spec.rb | 15 ++++++++++++ spec/models/system_hook_spec.rb | 12 ++++++++++ spec/models/user_spec.rb | 34 ++++++++++++++++++++++++++++ spec/models/users_project_spec.rb | 12 ++++++++++ spec/models/web_hook_spec.rb | 12 ++++++++++ spec/models/wiki_spec.rb | 14 ++++++++++++ 28 files changed, 225 insertions(+), 2 deletions(-) diff --git a/app/models/event.rb b/app/models/event.rb index 17cc1d58..647abdb9 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -163,3 +163,4 @@ end # action :integer # author_id :integer # + diff --git a/app/models/group.rb b/app/models/group.rb index 012b1285..ef8c7463 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -34,3 +34,4 @@ end # created_at :datetime not null # updated_at :datetime not null # + diff --git a/app/models/issue.rb b/app/models/issue.rb index 9acee1e5..5450bb49 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -49,3 +49,4 @@ end # description :text # milestone_id :integer # + diff --git a/app/models/key.rb b/app/models/key.rb index 43db0950..e4710b85 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -81,3 +81,4 @@ end # identifier :string(255) # project_id :integer # + diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index dc44d820..b6392ce8 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -202,8 +202,9 @@ end # closed :boolean default(FALSE), not null # created_at :datetime not null # updated_at :datetime not null -# st_commits :text(2147483647 -# st_diffs :text(2147483647 +# st_commits :text(4294967295 +# st_diffs :text(4294967295 # merged :boolean default(FALSE), not null # state :integer default(1), not null # + diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 096376e3..06c09431 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -39,3 +39,4 @@ end # created_at :datetime not null # updated_at :datetime not null # + diff --git a/app/models/note.rb b/app/models/note.rb index 55b011f8..65b20fe0 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -118,3 +118,4 @@ end # attachment :string(255) # line_code :string(255) # + diff --git a/app/models/project_hook.rb b/app/models/project_hook.rb index 5a59ebe9..92f6d1f0 100644 --- a/app/models/project_hook.rb +++ b/app/models/project_hook.rb @@ -13,3 +13,4 @@ end # updated_at :datetime not null # type :string(255) default("ProjectHook") # + diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb index cd93dc1b..926692f1 100644 --- a/app/models/protected_branch.rb +++ b/app/models/protected_branch.rb @@ -29,3 +29,4 @@ end # created_at :datetime not null # updated_at :datetime not null # + diff --git a/app/models/snippet.rb b/app/models/snippet.rb index e8670cdb..3525219e 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -63,3 +63,4 @@ end # file_name :string(255) # expires_at :datetime # + diff --git a/app/models/system_hook.rb b/app/models/system_hook.rb index 8ec8374b..f56b80f4 100644 --- a/app/models/system_hook.rb +++ b/app/models/system_hook.rb @@ -21,3 +21,4 @@ end # updated_at :datetime not null # type :string(255) default("ProjectHook") # + diff --git a/app/models/user.rb b/app/models/user.rb index da0e9a0a..b0484698 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -113,3 +113,4 @@ end # extern_uid :string(255) # provider :string(255) # + diff --git a/app/models/users_project.rb b/app/models/users_project.rb index a3d5116f..e336fac3 100644 --- a/app/models/users_project.rb +++ b/app/models/users_project.rb @@ -102,3 +102,4 @@ end # updated_at :datetime not null # project_access :integer default(0), not null # + diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index 779b3a99..db773c55 100644 --- a/app/models/web_hook.rb +++ b/app/models/web_hook.rb @@ -34,3 +34,4 @@ end # updated_at :datetime not null # type :string(255) default("ProjectHook") # + diff --git a/app/models/wiki.rb b/app/models/wiki.rb index 3a431e4c..b1f41d63 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -46,3 +46,4 @@ end # slug :string(255) # user_id :integer # + diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 5cb68761..77b49246 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -1,3 +1,19 @@ +# == Schema Information +# +# Table name: events +# +# id :integer not null, primary key +# target_type :string(255) +# target_id :integer +# title :string(255) +# data :text +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# action :integer +# author_id :integer +# + require 'spec_helper' describe Event do diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 099c4198..7c98b9ea 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -1,3 +1,21 @@ +# == Schema Information +# +# Table name: issues +# +# id :integer not null, primary key +# title :string(255) +# assignee_id :integer +# author_id :integer +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# closed :boolean default(FALSE), not null +# position :integer default(0) +# branch_name :string(255) +# description :text +# milestone_id :integer +# + require 'spec_helper' describe Issue do diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index 169bd890..d3231af8 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: keys +# +# id :integer not null, primary key +# user_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# key :text +# title :string(255) +# identifier :string(255) +# project_id :integer +# + require 'spec_helper' describe Key do diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index a5484924..7a1f541f 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -1,3 +1,23 @@ +# == Schema Information +# +# Table name: merge_requests +# +# id :integer not null, primary key +# target_branch :string(255) not null +# source_branch :string(255) not null +# project_id :integer not null +# author_id :integer +# assignee_id :integer +# title :string(255) +# closed :boolean default(FALSE), not null +# created_at :datetime not null +# updated_at :datetime not null +# st_commits :text(4294967295 +# st_diffs :text(4294967295 +# merged :boolean default(FALSE), not null +# state :integer default(1), not null +# + require 'spec_helper' describe MergeRequest do diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb index ef50e012..1aba20c6 100644 --- a/spec/models/milestone_spec.rb +++ b/spec/models/milestone_spec.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: milestones +# +# id :integer not null, primary key +# title :string(255) not null +# project_id :integer not null +# description :text +# due_date :date +# closed :boolean default(FALSE), not null +# created_at :datetime not null +# updated_at :datetime not null +# + require 'spec_helper' describe Milestone do diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 34493a11..8b622d5b 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -1,3 +1,19 @@ +# == Schema Information +# +# Table name: notes +# +# id :integer not null, primary key +# note :text +# noteable_id :string(255) +# noteable_type :string(255) +# author_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# project_id :integer +# attachment :string(255) +# line_code :string(255) +# + require 'spec_helper' describe Note do diff --git a/spec/models/protected_branch_spec.rb b/spec/models/protected_branch_spec.rb index c6b09f35..874c4e4d 100644 --- a/spec/models/protected_branch_spec.rb +++ b/spec/models/protected_branch_spec.rb @@ -1,3 +1,14 @@ +# == Schema Information +# +# Table name: protected_branches +# +# id :integer not null, primary key +# project_id :integer not null +# name :string(255) not null +# created_at :datetime not null +# updated_at :datetime not null +# + require 'spec_helper' describe ProtectedBranch do diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb index 465612e0..ada5fcdb 100644 --- a/spec/models/snippet_spec.rb +++ b/spec/models/snippet_spec.rb @@ -1,3 +1,18 @@ +# == Schema Information +# +# Table name: snippets +# +# id :integer not null, primary key +# title :string(255) +# content :text +# author_id :integer not null +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# file_name :string(255) +# expires_at :datetime +# + require 'spec_helper' describe Snippet do diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb index fe2a5836..b5d338a8 100644 --- a/spec/models/system_hook_spec.rb +++ b/spec/models/system_hook_spec.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: web_hooks +# +# id :integer not null, primary key +# url :string(255) +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# type :string(255) default("ProjectHook") +# + require "spec_helper" describe SystemHook do diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index b77d8878..5f41fb05 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,3 +1,37 @@ +# == Schema Information +# +# Table name: users +# +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(128) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0) +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# name :string(255) +# admin :boolean default(FALSE), not null +# projects_limit :integer default(10) +# skype :string(255) default(""), not null +# linkedin :string(255) default(""), not null +# twitter :string(255) default(""), not null +# authentication_token :string(255) +# dark_scheme :boolean default(FALSE), not null +# theme_id :integer default(1), not null +# bio :string(255) +# blocked :boolean default(FALSE), not null +# failed_attempts :integer default(0) +# locked_at :datetime +# extern_uid :string(255) +# provider :string(255) +# + require 'spec_helper' describe User do diff --git a/spec/models/users_project_spec.rb b/spec/models/users_project_spec.rb index a64ff367..5b6516b3 100644 --- a/spec/models/users_project_spec.rb +++ b/spec/models/users_project_spec.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: users_projects +# +# id :integer not null, primary key +# user_id :integer not null +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# project_access :integer default(0), not null +# + require 'spec_helper' describe UsersProject do diff --git a/spec/models/web_hook_spec.rb b/spec/models/web_hook_spec.rb index 422d67cf..d71fec81 100644 --- a/spec/models/web_hook_spec.rb +++ b/spec/models/web_hook_spec.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: web_hooks +# +# id :integer not null, primary key +# url :string(255) +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# type :string(255) default("ProjectHook") +# + require 'spec_helper' describe ProjectHook do diff --git a/spec/models/wiki_spec.rb b/spec/models/wiki_spec.rb index 7830c821..96aebd2d 100644 --- a/spec/models/wiki_spec.rb +++ b/spec/models/wiki_spec.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: wikis +# +# id :integer not null, primary key +# title :string(255) +# content :text +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# slug :string(255) +# user_id :integer +# + require 'spec_helper' describe Wiki do