summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/event.rb1
-rw-r--r--app/models/group.rb1
-rw-r--r--app/models/issue.rb1
-rw-r--r--app/models/key.rb1
-rw-r--r--app/models/merge_request.rb5
-rw-r--r--app/models/milestone.rb1
-rw-r--r--app/models/note.rb1
-rw-r--r--app/models/project_hook.rb1
-rw-r--r--app/models/protected_branch.rb1
-rw-r--r--app/models/snippet.rb1
-rw-r--r--app/models/system_hook.rb1
-rw-r--r--app/models/user.rb1
-rw-r--r--app/models/users_project.rb1
-rw-r--r--app/models/web_hook.rb1
-rw-r--r--app/models/wiki.rb1
-rw-r--r--spec/models/event_spec.rb16
-rw-r--r--spec/models/issue_spec.rb18
-rw-r--r--spec/models/key_spec.rb14
-rw-r--r--spec/models/merge_request_spec.rb20
-rw-r--r--spec/models/milestone_spec.rb14
-rw-r--r--spec/models/note_spec.rb16
-rw-r--r--spec/models/protected_branch_spec.rb11
-rw-r--r--spec/models/snippet_spec.rb15
-rw-r--r--spec/models/system_hook_spec.rb12
-rw-r--r--spec/models/user_spec.rb34
-rw-r--r--spec/models/users_project_spec.rb12
-rw-r--r--spec/models/web_hook_spec.rb12
-rw-r--r--spec/models/wiki_spec.rb14
28 files changed, 225 insertions, 2 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index 17cc1d58477..647abdb9b57 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 012b12856ec..ef8c7463974 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 9acee1e5193..5450bb499a8 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 43db095067d..e4710b85b14 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 dc44d820560..b6392ce8f5d 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 096376e31b1..06c0943143b 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 55b011f8b29..65b20fe0b11 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 5a59ebe924d..92f6d1f0c53 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 cd93dc1bfe6..926692f1cba 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 e8670cdbcf2..3525219e709 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 8ec8374bae0..f56b80f4678 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 da0e9a0a202..b048469817b 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 a3d5116f70d..e336fac3735 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 779b3a99f55..db773c55a69 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 3a431e4cb5b..b1f41d636c7 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 5cb68761b29..77b49246c46 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 099c41985cb..7c98b9ea58d 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 169bd890c3d..d3231af88bc 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 a54849240ae..7a1f541f42b 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 ef50e012722..1aba20c651d 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 34493a1117d..8b622d5b8c5 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 c6b09f358fb..874c4e4d885 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 465612e0f19..ada5fcdbcb8 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 fe2a5836fe7..b5d338a8c55 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 b77d88783f4..5f41fb05ed1 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 a64ff3678bf..5b6516b32cf 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 422d67cf016..d71fec811f0 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 7830c8215fc..96aebd2ddb7 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