Commit c96f8d13 authored by randx's avatar randx
Browse files

Reannotated

parent 52b29c38c011
......@@ -110,5 +110,5 @@
#
# Table name: events
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# target_type :string(255)
......@@ -114,4 +114,4 @@
# target_type :string(255)
# target_id :integer
# target_id :integer(4)
# title :string(255)
# data :text
......@@ -116,5 +116,5 @@
# title :string(255)
# data :text
# project_id :integer
# project_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
......@@ -119,5 +119,6 @@
# created_at :datetime not null
# updated_at :datetime not null
# action :integer
# action :integer(4)
# author_id :integer(4)
#
......@@ -72,17 +72,18 @@
#
# Table name: issues
#
# id :integer not null, primary key
# title :string(255)
# description :text
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime
# updated_at :datetime
# closed :boolean default(FALSE), not null
# position :integer default(0)
# critical :boolean default(FALSE), not null
# branch_name :string(255)
# id :integer(4) not null, primary key
# title :string(255)
# assignee_id :integer(4)
# author_id :integer(4)
# project_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# closed :boolean(1) default(FALSE), not null
# position :integer(4) default(0)
# critical :boolean(1) default(FALSE), not null
# branch_name :string(255)
# description :text
# milestone_id :integer(4)
#
......@@ -55,10 +55,10 @@
#
# Table name: keys
#
# id :integer not null, primary key
# user_id :integer
# created_at :datetime
# updated_at :datetime
# id :integer(4) not null, primary key
# user_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# key :text
# title :string(255)
# identifier :string(255)
......@@ -62,6 +62,6 @@
# key :text
# title :string(255)
# identifier :string(255)
# project_id :integer
# project_id :integer(4)
#
......@@ -198,6 +198,6 @@
#
# Table name: merge_requests
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# target_branch :string(255) not null
# source_branch :string(255) not null
......@@ -202,6 +202,6 @@
# target_branch :string(255) not null
# source_branch :string(255) not null
# project_id :integer not null
# author_id :integer
# assignee_id :integer
# project_id :integer(4) not null
# author_id :integer(4)
# assignee_id :integer(4)
# title :string(255)
......@@ -207,6 +207,10 @@
# title :string(255)
# closed :boolean default(FALSE), not null
# created_at :datetime
# updated_at :datetime
# closed :boolean(1) default(FALSE), not null
# created_at :datetime not null
# 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
belongs_to :project
has_many :issues
......
......@@ -110,7 +110,7 @@
#
# Table name: notes
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# note :text
# noteable_id :string(255)
# noteable_type :string(255)
......@@ -114,10 +114,10 @@
# note :text
# noteable_id :string(255)
# noteable_type :string(255)
# author_id :integer
# created_at :datetime
# updated_at :datetime
# project_id :integer
# author_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# project_id :integer(4)
# attachment :string(255)
# line_code :string(255)
#
......
......@@ -161,7 +161,7 @@
#
# Table name: projects
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# name :string(255)
# path :string(255)
# description :text
......@@ -165,7 +165,7 @@
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime
# updated_at :datetime
# private_flag :boolean default(TRUE), not null
# created_at :datetime not null
# updated_at :datetime not null
# private_flag :boolean(1) default(TRUE), not null
# code :string(255)
......@@ -171,3 +171,3 @@
# code :string(255)
# owner_id :integer
# owner_id :integer(4)
# default_branch :string(255) default("master"), not null
......@@ -173,7 +173,7 @@
# default_branch :string(255) default("master"), not null
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# issues_enabled :boolean(1) default(TRUE), not null
# wall_enabled :boolean(1) default(TRUE), not null
# merge_requests_enabled :boolean(1) default(TRUE), not null
# wiki_enabled :boolean(1) default(TRUE), not null
#
......@@ -18,8 +18,8 @@
#
# Table name: protected_branches
#
# id :integer not null, primary key
# project_id :integer not null
# id :integer(4) not null, primary key
# project_id :integer(4) not null
# name :string(255) not null
# created_at :datetime not null
# updated_at :datetime not null
......
......@@ -62,6 +62,6 @@
#
# Table name: snippets
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# title :string(255)
# content :text
......@@ -66,9 +66,9 @@
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# author_id :integer(4) not null
# project_id :integer(4) not null
# created_at :datetime not null
# updated_at :datetime not null
# file_name :string(255)
# expires_at :datetime
#
......
......@@ -92,9 +92,9 @@
#
# Table name: users
#
# id :integer not null, primary key
# id :integer(4) 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
......@@ -96,10 +96,10 @@
# 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)
# sign_in_count :integer(4) default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
......@@ -102,7 +102,7 @@
# 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
# updated_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# name :string(255)
......@@ -108,7 +108,7 @@
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
# admin :boolean(1) default(FALSE), not null
# projects_limit :integer(4) default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
......@@ -111,6 +111,9 @@
# 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
# 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
#
......@@ -116,1 +119,2 @@
#
......@@ -75,11 +75,11 @@
#
# Table name: users_projects
#
# id :integer not null, primary key
# user_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# project_access :integer default(0), not null
# id :integer(4) not null, primary key
# user_id :integer(4) not null
# project_id :integer(4) not null
# created_at :datetime not null
# updated_at :datetime not null
# project_access :integer(4) default(0), not null
#
......@@ -22,5 +22,5 @@
#
# Table name: web_hooks
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# url :string(255)
......@@ -26,6 +26,6 @@
# url :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# project_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
#
......@@ -34,6 +34,6 @@
#
# Table name: wikis
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# title :string(255)
# content :text
......@@ -38,6 +38,6 @@
# title :string(255)
# content :text
# project_id :integer
# project_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# slug :string(255)
......@@ -41,6 +41,6 @@
# created_at :datetime not null
# updated_at :datetime not null
# slug :string(255)
# user_id :integer
# user_id :integer(4)
#
......@@ -2,5 +2,5 @@
#
# Table name: events
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# target_type :string(255)
......@@ -6,4 +6,4 @@
# target_type :string(255)
# target_id :integer
# target_id :integer(4)
# title :string(255)
# data :text
......@@ -8,5 +8,5 @@
# title :string(255)
# data :text
# project_id :integer
# project_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
......@@ -11,6 +11,7 @@
# created_at :datetime not null
# updated_at :datetime not null
# action :integer
# action :integer(4)
# author_id :integer(4)
#
require 'spec_helper'
......
......@@ -112,16 +112,18 @@
#
# Table name: issues
#
# id :integer not null, primary key
# title :string(255)
# assignee_id :integer
# author_id :integer
# project_id :integer
# created_at :datetime
# updated_at :datetime
# closed :boolean default(FALSE), not null
# position :integer default(0)
# critical :boolean default(FALSE), not null
# branch_name :string(255)
# id :integer(4) not null, primary key
# title :string(255)
# assignee_id :integer(4)
# author_id :integer(4)
# project_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# closed :boolean(1) default(FALSE), not null
# position :integer(4) default(0)
# critical :boolean(1) default(FALSE), not null
# branch_name :string(255)
# description :text
# milestone_id :integer(4)
#
......@@ -53,10 +53,10 @@
#
# Table name: keys
#
# id :integer not null, primary key
# user_id :integer
# created_at :datetime
# updated_at :datetime
# id :integer(4) not null, primary key
# user_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# key :text
# title :string(255)
# identifier :string(255)
......@@ -60,6 +60,6 @@
# key :text
# title :string(255)
# identifier :string(255)
# project_id :integer
# project_id :integer(4)
#
......@@ -62,6 +62,6 @@
#
# Table name: merge_requests
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# target_branch :string(255) not null
# source_branch :string(255) not null
......@@ -66,6 +66,6 @@
# target_branch :string(255) not null
# source_branch :string(255) not null
# project_id :integer not null
# author_id :integer
# assignee_id :integer
# project_id :integer(4) not null
# author_id :integer(4)
# assignee_id :integer(4)
# title :string(255)
......@@ -71,6 +71,10 @@
# title :string(255)
# closed :boolean default(FALSE), not null
# created_at :datetime
# updated_at :datetime
# closed :boolean(1) default(FALSE), not null
# created_at :datetime not null
# 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'
describe Milestone do
......
......@@ -139,7 +139,7 @@
#
# Table name: notes
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# note :text
# noteable_id :string(255)
# noteable_type :string(255)
......@@ -143,10 +143,10 @@
# note :text
# noteable_id :string(255)
# noteable_type :string(255)
# author_id :integer
# created_at :datetime
# updated_at :datetime
# project_id :integer
# author_id :integer(4)
# created_at :datetime not null
# updated_at :datetime not null
# project_id :integer(4)
# attachment :string(255)
# line_code :string(255)
#
......
......@@ -206,7 +206,7 @@
#
# Table name: projects
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# name :string(255)
# path :string(255)
# description :text
......@@ -210,7 +210,7 @@
# name :string(255)
# path :string(255)
# description :text
# created_at :datetime
# updated_at :datetime
# private_flag :boolean default(TRUE), not null
# created_at :datetime not null
# updated_at :datetime not null
# private_flag :boolean(1) default(TRUE), not null
# code :string(255)
......@@ -216,3 +216,3 @@
# code :string(255)
# owner_id :integer
# owner_id :integer(4)
# default_branch :string(255) default("master"), not null
......@@ -218,7 +218,7 @@
# default_branch :string(255) default("master"), not null
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# issues_enabled :boolean(1) default(TRUE), not null
# wall_enabled :boolean(1) default(TRUE), not null
# merge_requests_enabled :boolean(1) default(TRUE), not null
# wiki_enabled :boolean(1) default(TRUE), not null
#
Supports Markdown
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