Commit 41e53eb98058a0082e0951aa21812b04d745414a
1 parent
dc33f71b
Exists in
master
and in
4 other branches
Annotated
Showing
28 changed files
with
225 additions
and
2 deletions
Show diff stats
app/models/event.rb
app/models/group.rb
app/models/issue.rb
app/models/key.rb
app/models/merge_request.rb
| @@ -202,8 +202,9 @@ end | @@ -202,8 +202,9 @@ end | ||
| 202 | # closed :boolean default(FALSE), not null | 202 | # closed :boolean default(FALSE), not null |
| 203 | # created_at :datetime not null | 203 | # created_at :datetime not null |
| 204 | # updated_at :datetime not null | 204 | # updated_at :datetime not null |
| 205 | -# st_commits :text(2147483647 | ||
| 206 | -# st_diffs :text(2147483647 | 205 | +# st_commits :text(4294967295 |
| 206 | +# st_diffs :text(4294967295 | ||
| 207 | # merged :boolean default(FALSE), not null | 207 | # merged :boolean default(FALSE), not null |
| 208 | # state :integer default(1), not null | 208 | # state :integer default(1), not null |
| 209 | # | 209 | # |
| 210 | + |
app/models/milestone.rb
app/models/note.rb
app/models/project_hook.rb
app/models/protected_branch.rb
app/models/snippet.rb
app/models/system_hook.rb
app/models/user.rb
app/models/users_project.rb
app/models/web_hook.rb
app/models/wiki.rb
spec/models/event_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: events | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# target_type :string(255) | ||
| 7 | +# target_id :integer | ||
| 8 | +# title :string(255) | ||
| 9 | +# data :text | ||
| 10 | +# project_id :integer | ||
| 11 | +# created_at :datetime not null | ||
| 12 | +# updated_at :datetime not null | ||
| 13 | +# action :integer | ||
| 14 | +# author_id :integer | ||
| 15 | +# | ||
| 16 | + | ||
| 1 | require 'spec_helper' | 17 | require 'spec_helper' |
| 2 | 18 | ||
| 3 | describe Event do | 19 | describe Event do |
spec/models/issue_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: issues | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# title :string(255) | ||
| 7 | +# assignee_id :integer | ||
| 8 | +# author_id :integer | ||
| 9 | +# project_id :integer | ||
| 10 | +# created_at :datetime not null | ||
| 11 | +# updated_at :datetime not null | ||
| 12 | +# closed :boolean default(FALSE), not null | ||
| 13 | +# position :integer default(0) | ||
| 14 | +# branch_name :string(255) | ||
| 15 | +# description :text | ||
| 16 | +# milestone_id :integer | ||
| 17 | +# | ||
| 18 | + | ||
| 1 | require 'spec_helper' | 19 | require 'spec_helper' |
| 2 | 20 | ||
| 3 | describe Issue do | 21 | describe Issue do |
spec/models/key_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: keys | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# user_id :integer | ||
| 7 | +# created_at :datetime not null | ||
| 8 | +# updated_at :datetime not null | ||
| 9 | +# key :text | ||
| 10 | +# title :string(255) | ||
| 11 | +# identifier :string(255) | ||
| 12 | +# project_id :integer | ||
| 13 | +# | ||
| 14 | + | ||
| 1 | require 'spec_helper' | 15 | require 'spec_helper' |
| 2 | 16 | ||
| 3 | describe Key do | 17 | describe Key do |
spec/models/merge_request_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: merge_requests | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# target_branch :string(255) not null | ||
| 7 | +# source_branch :string(255) not null | ||
| 8 | +# project_id :integer not null | ||
| 9 | +# author_id :integer | ||
| 10 | +# assignee_id :integer | ||
| 11 | +# title :string(255) | ||
| 12 | +# closed :boolean default(FALSE), not null | ||
| 13 | +# created_at :datetime not null | ||
| 14 | +# updated_at :datetime not null | ||
| 15 | +# st_commits :text(4294967295 | ||
| 16 | +# st_diffs :text(4294967295 | ||
| 17 | +# merged :boolean default(FALSE), not null | ||
| 18 | +# state :integer default(1), not null | ||
| 19 | +# | ||
| 20 | + | ||
| 1 | require 'spec_helper' | 21 | require 'spec_helper' |
| 2 | 22 | ||
| 3 | describe MergeRequest do | 23 | describe MergeRequest do |
spec/models/milestone_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: milestones | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# title :string(255) not null | ||
| 7 | +# project_id :integer not null | ||
| 8 | +# description :text | ||
| 9 | +# due_date :date | ||
| 10 | +# closed :boolean default(FALSE), not null | ||
| 11 | +# created_at :datetime not null | ||
| 12 | +# updated_at :datetime not null | ||
| 13 | +# | ||
| 14 | + | ||
| 1 | require 'spec_helper' | 15 | require 'spec_helper' |
| 2 | 16 | ||
| 3 | describe Milestone do | 17 | describe Milestone do |
spec/models/note_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: notes | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# note :text | ||
| 7 | +# noteable_id :string(255) | ||
| 8 | +# noteable_type :string(255) | ||
| 9 | +# author_id :integer | ||
| 10 | +# created_at :datetime not null | ||
| 11 | +# updated_at :datetime not null | ||
| 12 | +# project_id :integer | ||
| 13 | +# attachment :string(255) | ||
| 14 | +# line_code :string(255) | ||
| 15 | +# | ||
| 16 | + | ||
| 1 | require 'spec_helper' | 17 | require 'spec_helper' |
| 2 | 18 | ||
| 3 | describe Note do | 19 | describe Note do |
spec/models/protected_branch_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: protected_branches | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# project_id :integer not null | ||
| 7 | +# name :string(255) not null | ||
| 8 | +# created_at :datetime not null | ||
| 9 | +# updated_at :datetime not null | ||
| 10 | +# | ||
| 11 | + | ||
| 1 | require 'spec_helper' | 12 | require 'spec_helper' |
| 2 | 13 | ||
| 3 | describe ProtectedBranch do | 14 | describe ProtectedBranch do |
spec/models/snippet_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: snippets | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# title :string(255) | ||
| 7 | +# content :text | ||
| 8 | +# author_id :integer not null | ||
| 9 | +# project_id :integer not null | ||
| 10 | +# created_at :datetime not null | ||
| 11 | +# updated_at :datetime not null | ||
| 12 | +# file_name :string(255) | ||
| 13 | +# expires_at :datetime | ||
| 14 | +# | ||
| 15 | + | ||
| 1 | require 'spec_helper' | 16 | require 'spec_helper' |
| 2 | 17 | ||
| 3 | describe Snippet do | 18 | describe Snippet do |
spec/models/system_hook_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: web_hooks | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# url :string(255) | ||
| 7 | +# project_id :integer | ||
| 8 | +# created_at :datetime not null | ||
| 9 | +# updated_at :datetime not null | ||
| 10 | +# type :string(255) default("ProjectHook") | ||
| 11 | +# | ||
| 12 | + | ||
| 1 | require "spec_helper" | 13 | require "spec_helper" |
| 2 | 14 | ||
| 3 | describe SystemHook do | 15 | describe SystemHook do |
spec/models/user_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: users | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# email :string(255) default(""), not null | ||
| 7 | +# encrypted_password :string(128) default(""), not null | ||
| 8 | +# reset_password_token :string(255) | ||
| 9 | +# reset_password_sent_at :datetime | ||
| 10 | +# remember_created_at :datetime | ||
| 11 | +# sign_in_count :integer default(0) | ||
| 12 | +# current_sign_in_at :datetime | ||
| 13 | +# last_sign_in_at :datetime | ||
| 14 | +# current_sign_in_ip :string(255) | ||
| 15 | +# last_sign_in_ip :string(255) | ||
| 16 | +# created_at :datetime not null | ||
| 17 | +# updated_at :datetime not null | ||
| 18 | +# name :string(255) | ||
| 19 | +# admin :boolean default(FALSE), not null | ||
| 20 | +# projects_limit :integer default(10) | ||
| 21 | +# skype :string(255) default(""), not null | ||
| 22 | +# linkedin :string(255) default(""), not null | ||
| 23 | +# twitter :string(255) default(""), not null | ||
| 24 | +# authentication_token :string(255) | ||
| 25 | +# dark_scheme :boolean default(FALSE), not null | ||
| 26 | +# theme_id :integer default(1), not null | ||
| 27 | +# bio :string(255) | ||
| 28 | +# blocked :boolean default(FALSE), not null | ||
| 29 | +# failed_attempts :integer default(0) | ||
| 30 | +# locked_at :datetime | ||
| 31 | +# extern_uid :string(255) | ||
| 32 | +# provider :string(255) | ||
| 33 | +# | ||
| 34 | + | ||
| 1 | require 'spec_helper' | 35 | require 'spec_helper' |
| 2 | 36 | ||
| 3 | describe User do | 37 | describe User do |
spec/models/users_project_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: users_projects | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# user_id :integer not null | ||
| 7 | +# project_id :integer not null | ||
| 8 | +# created_at :datetime not null | ||
| 9 | +# updated_at :datetime not null | ||
| 10 | +# project_access :integer default(0), not null | ||
| 11 | +# | ||
| 12 | + | ||
| 1 | require 'spec_helper' | 13 | require 'spec_helper' |
| 2 | 14 | ||
| 3 | describe UsersProject do | 15 | describe UsersProject do |
spec/models/web_hook_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: web_hooks | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# url :string(255) | ||
| 7 | +# project_id :integer | ||
| 8 | +# created_at :datetime not null | ||
| 9 | +# updated_at :datetime not null | ||
| 10 | +# type :string(255) default("ProjectHook") | ||
| 11 | +# | ||
| 12 | + | ||
| 1 | require 'spec_helper' | 13 | require 'spec_helper' |
| 2 | 14 | ||
| 3 | describe ProjectHook do | 15 | describe ProjectHook do |
spec/models/wiki_spec.rb
| 1 | +# == Schema Information | ||
| 2 | +# | ||
| 3 | +# Table name: wikis | ||
| 4 | +# | ||
| 5 | +# id :integer not null, primary key | ||
| 6 | +# title :string(255) | ||
| 7 | +# content :text | ||
| 8 | +# project_id :integer | ||
| 9 | +# created_at :datetime not null | ||
| 10 | +# updated_at :datetime not null | ||
| 11 | +# slug :string(255) | ||
| 12 | +# user_id :integer | ||
| 13 | +# | ||
| 14 | + | ||
| 1 | require 'spec_helper' | 15 | require 'spec_helper' |
| 2 | 16 | ||
| 3 | describe Wiki do | 17 | describe Wiki do |