GitLab wurde aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Vielen Dank für Ihre Geduld.

Commit 6abc6495 authored by randx's avatar randx
Browse files

Reannotated

parent 283bf806
...@@ -110,14 +110,15 @@ def action_name ...@@ -110,14 +110,15 @@ def action_name
# #
# Table name: events # Table name: events
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# target_type :string(255) # target_type :string(255)
# target_id :integer # target_id :integer(4)
# title :string(255) # title :string(255)
# data :text # data :text
# project_id :integer # project_id :integer(4)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# action :integer # action :integer(4)
# author_id :integer(4)
# #
...@@ -72,17 +72,18 @@ def is_being_reopened? ...@@ -72,17 +72,18 @@ def is_being_reopened?
# #
# Table name: issues # Table name: issues
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# title :string(255) # title :string(255)
# description :text # assignee_id :integer(4)
# assignee_id :integer # author_id :integer(4)
# author_id :integer # project_id :integer(4)
# project_id :integer # created_at :datetime not null
# created_at :datetime # updated_at :datetime not null
# updated_at :datetime # closed :boolean(1) default(FALSE), not null
# closed :boolean default(FALSE), not null # position :integer(4) default(0)
# position :integer default(0) # critical :boolean(1) default(FALSE), not null
# critical :boolean default(FALSE), not null # branch_name :string(255)
# branch_name :string(255) # description :text
# milestone_id :integer(4)
# #
...@@ -55,13 +55,13 @@ def projects ...@@ -55,13 +55,13 @@ def projects
# #
# Table name: keys # Table name: keys
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# user_id :integer # user_id :integer(4)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# key :text # key :text
# title :string(255) # title :string(255)
# identifier :string(255) # identifier :string(255)
# project_id :integer # project_id :integer(4)
# #
...@@ -198,15 +198,19 @@ def automerge!(current_user) ...@@ -198,15 +198,19 @@ def automerge!(current_user)
# #
# Table name: merge_requests # Table name: merge_requests
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# target_branch :string(255) not null # target_branch :string(255) not null
# source_branch :string(255) not null # source_branch :string(255) not null
# project_id :integer not null # project_id :integer(4) not null
# author_id :integer # author_id :integer(4)
# assignee_id :integer # assignee_id :integer(4)
# title :string(255) # title :string(255)
# closed :boolean default(FALSE), not null # closed :boolean(1) default(FALSE), not null
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# st_commits :text(2147483647
# st_diffs :text(2147483647
# merged :boolean(1) default(FALSE), not null
# state :integer(4) default(1), not null
# #
# == Schema Information
#
# Table name: milestones
#
# id :integer(4) not null, primary key
# title :string(255) not null
# project_id :integer(4) not null
# description :text
# due_date :date
# closed :boolean(1) default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
#
class Milestone < ActiveRecord::Base class Milestone < ActiveRecord::Base
belongs_to :project belongs_to :project
has_many :issues has_many :issues
......
...@@ -110,14 +110,14 @@ def upvote? ...@@ -110,14 +110,14 @@ def upvote?
# #
# Table name: notes # Table name: notes
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# note :text # note :text
# noteable_id :string(255) # noteable_id :string(255)
# noteable_type :string(255) # noteable_type :string(255)
# author_id :integer # author_id :integer(4)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# project_id :integer # project_id :integer(4)
# attachment :string(255) # attachment :string(255)
# line_code :string(255) # line_code :string(255)
# #
......
...@@ -161,19 +161,19 @@ def project_id ...@@ -161,19 +161,19 @@ def project_id
# #
# Table name: projects # Table name: projects
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# name :string(255) # name :string(255)
# path :string(255) # path :string(255)
# description :text # description :text
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# private_flag :boolean default(TRUE), not null # private_flag :boolean(1) default(TRUE), not null
# code :string(255) # code :string(255)
# owner_id :integer # owner_id :integer(4)
# default_branch :string(255) default("master"), not null # default_branch :string(255) default("master"), not null
# issues_enabled :boolean default(TRUE), not null # issues_enabled :boolean(1) default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null # wall_enabled :boolean(1) default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null # merge_requests_enabled :boolean(1) default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null # wiki_enabled :boolean(1) default(TRUE), not null
# #
...@@ -18,8 +18,8 @@ def commit ...@@ -18,8 +18,8 @@ def commit
# #
# Table name: protected_branches # Table name: protected_branches
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# project_id :integer not null # project_id :integer(4) not null
# name :string(255) not null # name :string(255) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
......
...@@ -62,13 +62,13 @@ def expired? ...@@ -62,13 +62,13 @@ def expired?
# #
# Table name: snippets # Table name: snippets
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# title :string(255) # title :string(255)
# content :text # content :text
# author_id :integer not null # author_id :integer(4) not null
# project_id :integer not null # project_id :integer(4) not null
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# file_name :string(255) # file_name :string(255)
# expires_at :datetime # expires_at :datetime
# #
......
...@@ -92,25 +92,29 @@ def self.search query ...@@ -92,25 +92,29 @@ def self.search query
# #
# Table name: users # Table name: users
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# email :string(255) default(""), not null # email :string(255) default(""), not null
# encrypted_password :string(128) default(""), not null # encrypted_password :string(128) default(""), not null
# reset_password_token :string(255) # reset_password_token :string(255)
# reset_password_sent_at :datetime # reset_password_sent_at :datetime
# remember_created_at :datetime # remember_created_at :datetime
# sign_in_count :integer default(0) # sign_in_count :integer(4) default(0)
# current_sign_in_at :datetime # current_sign_in_at :datetime
# last_sign_in_at :datetime # last_sign_in_at :datetime
# current_sign_in_ip :string(255) # current_sign_in_ip :string(255)
# last_sign_in_ip :string(255) # last_sign_in_ip :string(255)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# name :string(255) # name :string(255)
# admin :boolean default(FALSE), not null # admin :boolean(1) default(FALSE), not null
# projects_limit :integer default(10) # projects_limit :integer(4) default(10)
# skype :string(255) default(""), not null # skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null # linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null # twitter :string(255) default(""), not null
# authentication_token :string(255) # authentication_token :string(255)
# dark_scheme :boolean default(FALSE), not null # dark_scheme :boolean(1) default(FALSE), not null
# theme_id :integer(4) default(1), not null
# bio :string(255)
# blocked :boolean(1) default(FALSE), not null
# #
...@@ -75,11 +75,11 @@ def repo_access_human ...@@ -75,11 +75,11 @@ def repo_access_human
# #
# Table name: users_projects # Table name: users_projects
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# user_id :integer not null # user_id :integer(4) not null
# project_id :integer not null # project_id :integer(4) not null
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# project_access :integer default(0), not null # project_access :integer(4) default(0), not null
# #
...@@ -22,10 +22,10 @@ def execute(data) ...@@ -22,10 +22,10 @@ def execute(data)
# #
# Table name: web_hooks # Table name: web_hooks
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# url :string(255) # url :string(255)
# project_id :integer # project_id :integer(4)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# #
...@@ -34,13 +34,13 @@ def regenerate_from wiki ...@@ -34,13 +34,13 @@ def regenerate_from wiki
# #
# Table name: wikis # Table name: wikis
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# title :string(255) # title :string(255)
# content :text # content :text
# project_id :integer # project_id :integer(4)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# slug :string(255) # slug :string(255)
# user_id :integer # user_id :integer(4)
# #
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
# #
# Table name: events # Table name: events
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# target_type :string(255) # target_type :string(255)
# target_id :integer # target_id :integer(4)
# title :string(255) # title :string(255)
# data :text # data :text
# project_id :integer # project_id :integer(4)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# action :integer # action :integer(4)
# author_id :integer(4)
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -112,16 +112,18 @@ ...@@ -112,16 +112,18 @@
# #
# Table name: issues # Table name: issues
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# title :string(255) # title :string(255)
# assignee_id :integer # assignee_id :integer(4)
# author_id :integer # author_id :integer(4)
# project_id :integer # project_id :integer(4)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# closed :boolean default(FALSE), not null # closed :boolean(1) default(FALSE), not null
# position :integer default(0) # position :integer(4) default(0)
# critical :boolean default(FALSE), not null # critical :boolean(1) default(FALSE), not null
# branch_name :string(255) # branch_name :string(255)
# description :text
# milestone_id :integer(4)
# #
...@@ -53,13 +53,13 @@ ...@@ -53,13 +53,13 @@
# #
# Table name: keys # Table name: keys
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# user_id :integer # user_id :integer(4)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# key :text # key :text
# title :string(255) # title :string(255)
# identifier :string(255) # identifier :string(255)
# project_id :integer # project_id :integer(4)
# #
...@@ -62,15 +62,19 @@ ...@@ -62,15 +62,19 @@
# #
# Table name: merge_requests # Table name: merge_requests
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# target_branch :string(255) not null # target_branch :string(255) not null
# source_branch :string(255) not null # source_branch :string(255) not null
# project_id :integer not null # project_id :integer(4) not null
# author_id :integer # author_id :integer(4)
# assignee_id :integer # assignee_id :integer(4)
# title :string(255) # title :string(255)
# closed :boolean default(FALSE), not null # closed :boolean(1) default(FALSE), not null
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# st_commits :text(2147483647
# st_diffs :text(2147483647
# merged :boolean(1) default(FALSE), not null
# state :integer(4) default(1), not null
# #
# == Schema Information
#
# Table name: milestones
#
# id :integer(4) not null, primary key
# title :string(255) not null
# project_id :integer(4) not null
# description :text
# due_date :date
# closed :boolean(1) default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
#
require 'spec_helper' require 'spec_helper'
describe Milestone do describe Milestone do
......
...@@ -139,14 +139,14 @@ ...@@ -139,14 +139,14 @@
# #
# Table name: notes # Table name: notes
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# note :text # note :text
# noteable_id :string(255) # noteable_id :string(255)
# noteable_type :string(255) # noteable_type :string(255)
# author_id :integer # author_id :integer(4)
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# project_id :integer # project_id :integer(4)
# attachment :string(255) # attachment :string(255)
# line_code :string(255) # line_code :string(255)
# #
......
...@@ -206,19 +206,19 @@ ...@@ -206,19 +206,19 @@
# #
# Table name: projects # Table name: projects
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# name :string(255) # name :string(255)
# path :string(255) # path :string(255)
# description :text # description :text
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# private_flag :boolean default(TRUE), not null # private_flag :boolean(1) default(TRUE), not null
# code :string(255) # code :string(255)
# owner_id :integer # owner_id :integer(4)
# default_branch :string(255) default("master"), not null # default_branch :string(255) default("master"), not null
# issues_enabled :boolean default(TRUE), not null # issues_enabled :boolean(1) default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null # wall_enabled :boolean(1) default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null # merge_requests_enabled :boolean(1) default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null # wiki_enabled :boolean(1) default(TRUE), not null
# #
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# #
# Table name: protected_branches # Table name: protected_branches
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# project_id :integer not null # project_id :integer(4) not null
# name :string(255) not null # name :string(255) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
......
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
# #
# Table name: snippets # Table name: snippets
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# title :string(255) # title :string(255)
# content :text # content :text
# author_id :integer not null # author_id :integer(4) not null
# project_id :integer not null # project_id :integer(4) not null
# created_at :datetime # created_at :datetime not null
# updated_at :datetime # updated_at :datetime not null
# file_name :string(255) # file_name :string(255)
# expires_at :datetime # expires_at :datetime
# #
......
...@@ -46,25 +46,29 @@ ...@@ -46,25 +46,29 @@
# #
# Table name: users # Table name: users
# #
# id :integer not null, primary key # id :integer(4) not null, primary key
# email :string(255) default(""), not null # email :string(255) default(""), not null
# encrypted_password :string(128) default(""), not null # encrypted_password :string(128) default(""), not null
# reset_password_token :string(255) # reset_password_token :string(255)
# reset_password_sent_at :datetime # reset_password_sent_at :datetime
# remember_created_at :datetime # remember_created_at :datetime
# sign_in_count :integer default(0) # sign_in_count :integer(4) default(0)
# current_sign_in_at :datetime # current_sign_in_at :datetime
# last_sign_in_at :datetime # last_sign_in_at :datetime
# current_sign_in_ip :string(255) # current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)