Merge branch 'ensure_default_fields' into 'master'
Add values to default fields to prevent 500 error when migrate from MySQL to Postgres
This commit is contained in:
commit
89ecb19126
68 changed files with 298 additions and 228 deletions
|
@ -3,12 +3,12 @@
|
||||||
# Table name: broadcast_messages
|
# Table name: broadcast_messages
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# message :text default(""), not null
|
# message :text not null
|
||||||
# starts_at :datetime
|
# starts_at :datetime
|
||||||
# ends_at :datetime
|
# ends_at :datetime
|
||||||
# alert_type :integer
|
# alert_type :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# color :string(255)
|
# color :string(255)
|
||||||
# font :string(255)
|
# font :string(255)
|
||||||
#
|
#
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# key :text
|
# key :text
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# deploy_key_id :integer not null
|
# deploy_key_id :integer not null
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
class DeployKeysProject < ActiveRecord::Base
|
class DeployKeysProject < ActiveRecord::Base
|
||||||
|
|
|
@ -2,10 +2,13 @@
|
||||||
#
|
#
|
||||||
# Table name: emails
|
# Table name: emails
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# email :string not null
|
# email :string(255) not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
|
||||||
class Email < ActiveRecord::Base
|
class Email < ActiveRecord::Base
|
||||||
attr_accessible :email, :user_id
|
attr_accessible :email, :user_id
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# data :text
|
# data :text
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# action :integer
|
# action :integer
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# forked_to_project_id :integer not null
|
# forked_to_project_id :integer not null
|
||||||
# forked_from_project_id :integer not null
|
# forked_from_project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
class ForkedProjectLink < ActiveRecord::Base
|
class ForkedProjectLink < ActiveRecord::Base
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# path :string(255) not null
|
# path :string(255) not null
|
||||||
# owner_id :integer
|
# owner_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
# description :string(255) default(""), not null
|
# description :string(255) default(""), not null
|
||||||
|
# avatar :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
# assignee_id :integer
|
# assignee_id :integer
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# position :integer default(0)
|
# position :integer default(0)
|
||||||
# branch_name :string(255)
|
# branch_name :string(255)
|
||||||
# description :text
|
# description :text
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# key :text
|
# key :text
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
|
|
|
@ -9,10 +9,8 @@
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
# assignee_id :integer
|
# assignee_id :integer
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# st_commits :text(2147483647)
|
|
||||||
# st_diffs :text(2147483647)
|
|
||||||
# milestone_id :integer
|
# milestone_id :integer
|
||||||
# state :string(255)
|
# state :string(255)
|
||||||
# merge_status :string(255)
|
# merge_status :string(255)
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: merge_request_diffs
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# state :string(255) default("collected"), not null
|
||||||
|
# st_commits :text
|
||||||
|
# st_diffs :text
|
||||||
|
# merge_request_id :integer not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
|
||||||
require Rails.root.join("app/models/commit")
|
require Rails.root.join("app/models/commit")
|
||||||
|
|
||||||
class MergeRequestDiff < ActiveRecord::Base
|
class MergeRequestDiff < ActiveRecord::Base
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# description :text
|
# description :text
|
||||||
# due_date :date
|
# due_date :date
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# state :string(255)
|
# state :string(255)
|
||||||
# iid :integer
|
# iid :integer
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# path :string(255) not null
|
# path :string(255) not null
|
||||||
# owner_id :integer
|
# owner_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
# description :string(255) default(""), not null
|
# description :string(255) default(""), not null
|
||||||
# avatar :string(255)
|
# avatar :string(255)
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
# note :text
|
# note :text
|
||||||
# noteable_type :string(255)
|
# noteable_type :string(255)
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# attachment :string(255)
|
# attachment :string(255)
|
||||||
# line_code :string(255)
|
# line_code :string(255)
|
||||||
# commit_id :string(255)
|
# commit_id :string(255)
|
||||||
# noteable_id :integer
|
# noteable_id :integer
|
||||||
# st_diff :text
|
|
||||||
# system :boolean default(FALSE), not null
|
# system :boolean default(FALSE), not null
|
||||||
|
# st_diff :text
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
@ -23,6 +23,8 @@ require 'file_size_validator'
|
||||||
class Note < ActiveRecord::Base
|
class Note < ActiveRecord::Base
|
||||||
include Mentionable
|
include Mentionable
|
||||||
|
|
||||||
|
default_value_for :system, false
|
||||||
|
|
||||||
attr_accessible :note, :noteable, :noteable_id, :noteable_type, :project_id,
|
attr_accessible :note, :noteable, :noteable_id, :noteable_type, :project_id,
|
||||||
:attachment, :line_code, :commit_id
|
:attachment, :line_code, :commit_id
|
||||||
attr_mentionable :note
|
attr_mentionable :note
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# content :text(2147483647)
|
# content :text
|
||||||
# author_id :integer not null
|
# author_id :integer not null
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# file_name :string(255)
|
# file_name :string(255)
|
||||||
# expires_at :datetime
|
# expires_at :datetime
|
||||||
# private :boolean default(TRUE), not null
|
# private :boolean default(TRUE), not null
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# name :string(255)
|
# name :string(255)
|
||||||
# path :string(255)
|
# path :string(255)
|
||||||
# description :text
|
# description :text
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
# wall_enabled :boolean default(TRUE), not null
|
||||||
|
@ -18,9 +18,10 @@
|
||||||
# issues_tracker_id :string(255)
|
# issues_tracker_id :string(255)
|
||||||
# snippets_enabled :boolean default(TRUE), not null
|
# snippets_enabled :boolean default(TRUE), not null
|
||||||
# last_activity_at :datetime
|
# last_activity_at :datetime
|
||||||
# imported :boolean default(FALSE), not null
|
|
||||||
# import_url :string(255)
|
# import_url :string(255)
|
||||||
# visibility_level :integer default(0), not null
|
# visibility_level :integer default(0), not null
|
||||||
|
# archived :boolean default(FALSE), not null
|
||||||
|
# import_status :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
class Project < ActiveRecord::Base
|
class Project < ActiveRecord::Base
|
||||||
|
@ -29,6 +30,11 @@ class Project < ActiveRecord::Base
|
||||||
extend Enumerize
|
extend Enumerize
|
||||||
|
|
||||||
default_value_for :archived, false
|
default_value_for :archived, false
|
||||||
|
default_value_for :issues_enabled, true
|
||||||
|
default_value_for :wall_enabled, true
|
||||||
|
default_value_for :merge_requests_enabled, true
|
||||||
|
default_value_for :wiki_enabled, true
|
||||||
|
default_value_for :snippets_enabled, true
|
||||||
|
|
||||||
ActsAsTaggableOn.strict_case_match = true
|
ActsAsTaggableOn.strict_case_match = true
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
class ProjectHook < WebHook
|
class ProjectHook < WebHook
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# content :text(2147483647)
|
# content :text
|
||||||
# author_id :integer not null
|
# author_id :integer not null
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# file_name :string(255)
|
# file_name :string(255)
|
||||||
# expires_at :datetime
|
# expires_at :datetime
|
||||||
# private :boolean default(TRUE), not null
|
# private :boolean default(TRUE), not null
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
class ProtectedBranch < ActiveRecord::Base
|
class ProtectedBranch < ActiveRecord::Base
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
class ServiceHook < WebHook
|
class ServiceHook < WebHook
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# content :text(2147483647)
|
# content :text
|
||||||
# author_id :integer not null
|
# author_id :integer not null
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# file_name :string(255)
|
# file_name :string(255)
|
||||||
# expires_at :datetime
|
# expires_at :datetime
|
||||||
# private :boolean default(TRUE), not null
|
# private :boolean default(TRUE), not null
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
class SystemHook < WebHook
|
class SystemHook < WebHook
|
||||||
|
|
|
@ -2,53 +2,59 @@
|
||||||
#
|
#
|
||||||
# Table name: users
|
# Table name: users
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# email :string(255) default(""), not null
|
# email :string(255) default(""), not null
|
||||||
# encrypted_password :string(255) default(""), not null
|
# encrypted_password :string(255) 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 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 not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# name :string(255)
|
# name :string(255)
|
||||||
# admin :boolean default(FALSE), not null
|
# admin :boolean default(FALSE), not null
|
||||||
# projects_limit :integer default(10)
|
# projects_limit :integer 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)
|
||||||
# theme_id :integer default(1), not null
|
# theme_id :integer default(1), not null
|
||||||
# bio :string(255)
|
# bio :string(255)
|
||||||
# failed_attempts :integer default(0)
|
# failed_attempts :integer default(0)
|
||||||
# locked_at :datetime
|
# locked_at :datetime
|
||||||
# extern_uid :string(255)
|
# extern_uid :string(255)
|
||||||
# provider :string(255)
|
# provider :string(255)
|
||||||
# username :string(255)
|
# username :string(255)
|
||||||
# can_create_group :boolean default(TRUE), not null
|
# can_create_group :boolean default(TRUE), not null
|
||||||
# can_create_team :boolean default(TRUE), not null
|
# can_create_team :boolean default(TRUE), not null
|
||||||
# state :string(255)
|
# state :string(255)
|
||||||
# color_scheme_id :integer default(1), not null
|
# color_scheme_id :integer default(1), not null
|
||||||
# notification_level :integer default(1), not null
|
# notification_level :integer default(1), not null
|
||||||
# password_expires_at :datetime
|
# password_expires_at :datetime
|
||||||
# created_by_id :integer
|
# created_by_id :integer
|
||||||
# avatar :string(255)
|
# last_credential_check_at :datetime
|
||||||
# confirmation_token :string(255)
|
# avatar :string(255)
|
||||||
# confirmed_at :datetime
|
# confirmation_token :string(255)
|
||||||
# confirmation_sent_at :datetime
|
# confirmed_at :datetime
|
||||||
# unconfirmed_email :string(255)
|
# confirmation_sent_at :datetime
|
||||||
# hide_no_ssh_key :boolean default(FALSE)
|
# unconfirmed_email :string(255)
|
||||||
# website_url :string(255) default(""), not null
|
# hide_no_ssh_key :boolean default(FALSE)
|
||||||
|
# website_url :string(255) default(""), not null
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
require 'file_size_validator'
|
require 'file_size_validator'
|
||||||
|
|
||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
|
default_value_for :admin, false
|
||||||
|
default_value_for :can_create_group, true
|
||||||
|
default_value_for :can_create_team, false
|
||||||
|
default_value_for :hide_no_ssh_key, false
|
||||||
|
|
||||||
devise :database_authenticatable, :token_authenticatable, :lockable, :async,
|
devise :database_authenticatable, :token_authenticatable, :lockable, :async,
|
||||||
:recoverable, :rememberable, :trackable, :validatable, :omniauthable, :confirmable, :registerable
|
:recoverable, :rememberable, :trackable, :validatable, :omniauthable, :confirmable, :registerable
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# group_access :integer not null
|
# group_access :integer not null
|
||||||
# group_id :integer not null
|
# group_id :integer not null
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# notification_level :integer default(3), not null
|
# notification_level :integer default(3), not null
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# project_access :integer default(0), not null
|
# project_access :integer default(0), not null
|
||||||
# notification_level :integer default(3), not null
|
# notification_level :integer default(3), not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
class WebHook < ActiveRecord::Base
|
class WebHook < ActiveRecord::Base
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
# Table name: broadcast_messages
|
# Table name: broadcast_messages
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# message :text default(""), not null
|
# message :text not null
|
||||||
# starts_at :datetime
|
# starts_at :datetime
|
||||||
# ends_at :datetime
|
# ends_at :datetime
|
||||||
# alert_type :integer
|
# alert_type :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# color :string(255)
|
# color :string(255)
|
||||||
# font :string(255)
|
# font :string(255)
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# forked_to_project_id :integer not null
|
# forked_to_project_id :integer not null
|
||||||
# forked_from_project_id :integer not null
|
# forked_from_project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# group_access :integer not null
|
# group_access :integer not null
|
||||||
# group_id :integer not null
|
# group_id :integer not null
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# notification_level :integer default(3), not null
|
# notification_level :integer default(3), not null
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
# Table name: broadcast_messages
|
# Table name: broadcast_messages
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# message :text default(""), not null
|
# message :text not null
|
||||||
# starts_at :datetime
|
# starts_at :datetime
|
||||||
# ends_at :datetime
|
# ends_at :datetime
|
||||||
# alert_type :integer
|
# alert_type :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# color :string(255)
|
# color :string(255)
|
||||||
# font :string(255)
|
# font :string(255)
|
||||||
#
|
#
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# key :text
|
# key :text
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# deploy_key_id :integer not null
|
# deploy_key_id :integer not null
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# data :text
|
# data :text
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# action :integer
|
# action :integer
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
#
|
#
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# forked_to_project_id :integer not null
|
# forked_to_project_id :integer not null
|
||||||
# forked_from_project_id :integer not null
|
# forked_from_project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# path :string(255) not null
|
# path :string(255) not null
|
||||||
# owner_id :integer
|
# owner_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
# description :string(255) default(""), not null
|
# description :string(255) default(""), not null
|
||||||
|
# avatar :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
# assignee_id :integer
|
# assignee_id :integer
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# position :integer default(0)
|
# position :integer default(0)
|
||||||
# branch_name :string(255)
|
# branch_name :string(255)
|
||||||
# description :text
|
# description :text
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# key :text
|
# key :text
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
|
|
|
@ -9,10 +9,8 @@
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
# assignee_id :integer
|
# assignee_id :integer
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# st_commits :text(2147483647)
|
|
||||||
# st_diffs :text(2147483647)
|
|
||||||
# milestone_id :integer
|
# milestone_id :integer
|
||||||
# state :string(255)
|
# state :string(255)
|
||||||
# merge_status :string(255)
|
# merge_status :string(255)
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# description :text
|
# description :text
|
||||||
# due_date :date
|
# due_date :date
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# state :string(255)
|
# state :string(255)
|
||||||
# iid :integer
|
# iid :integer
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# path :string(255) not null
|
# path :string(255) not null
|
||||||
# owner_id :integer
|
# owner_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
# description :string(255) default(""), not null
|
# description :string(255) default(""), not null
|
||||||
|
# avatar :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
# note :text
|
# note :text
|
||||||
# noteable_type :string(255)
|
# noteable_type :string(255)
|
||||||
# author_id :integer
|
# author_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# attachment :string(255)
|
# attachment :string(255)
|
||||||
# line_code :string(255)
|
# line_code :string(255)
|
||||||
# commit_id :string(255)
|
# commit_id :string(255)
|
||||||
# noteable_id :integer
|
# noteable_id :integer
|
||||||
# st_diff :text
|
|
||||||
# system :boolean default(FALSE), not null
|
# system :boolean default(FALSE), not null
|
||||||
|
# st_diff :text
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -1,3 +1,20 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: web_hooks
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# url :string(255)
|
||||||
|
# project_id :integer
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
# type :string(255) default("ProjectHook")
|
||||||
|
# service_id :integer
|
||||||
|
# push_events :boolean default(TRUE), not null
|
||||||
|
# issues_events :boolean default(FALSE), not null
|
||||||
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe ProjectHook do
|
describe ProjectHook do
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# content :text(2147483647)
|
# content :text
|
||||||
# author_id :integer not null
|
# author_id :integer not null
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# file_name :string(255)
|
# file_name :string(255)
|
||||||
# expires_at :datetime
|
# expires_at :datetime
|
||||||
# private :boolean default(TRUE), not null
|
# private :boolean default(TRUE), not null
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# name :string(255)
|
# name :string(255)
|
||||||
# path :string(255)
|
# path :string(255)
|
||||||
# description :text
|
# description :text
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
# wall_enabled :boolean default(TRUE), not null
|
||||||
|
@ -18,10 +18,10 @@
|
||||||
# issues_tracker_id :string(255)
|
# issues_tracker_id :string(255)
|
||||||
# snippets_enabled :boolean default(TRUE), not null
|
# snippets_enabled :boolean default(TRUE), not null
|
||||||
# last_activity_at :datetime
|
# last_activity_at :datetime
|
||||||
# imported :boolean default(FALSE), not null
|
|
||||||
# import_url :string(255)
|
# import_url :string(255)
|
||||||
# visibility_level :integer default(0), not null
|
# visibility_level :integer default(0), not null
|
||||||
# archived :boolean default(FALSE), not null
|
# archived :boolean default(FALSE), not null
|
||||||
|
# import_status :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
require "spec_helper"
|
require "spec_helper"
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# token :string(255)
|
# token :string(255)
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
# subdomain :string(255)
|
# subdomain :string(255)
|
||||||
# room :string(255)
|
# room :string(255)
|
||||||
|
# recipients :text
|
||||||
# api_key :string(255)
|
# api_key :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# title :string(255)
|
# title :string(255)
|
||||||
# content :text(2147483647)
|
# content :text
|
||||||
# author_id :integer not null
|
# author_id :integer not null
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# file_name :string(255)
|
# file_name :string(255)
|
||||||
# expires_at :datetime
|
# expires_at :datetime
|
||||||
# private :boolean default(TRUE), not null
|
# private :boolean default(TRUE), not null
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
require "spec_helper"
|
require "spec_helper"
|
||||||
|
|
|
@ -2,47 +2,48 @@
|
||||||
#
|
#
|
||||||
# Table name: users
|
# Table name: users
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# email :string(255) default(""), not null
|
# email :string(255) default(""), not null
|
||||||
# encrypted_password :string(255) default(""), not null
|
# encrypted_password :string(255) 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 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 not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# name :string(255)
|
# name :string(255)
|
||||||
# admin :boolean default(FALSE), not null
|
# admin :boolean default(FALSE), not null
|
||||||
# projects_limit :integer default(10)
|
# projects_limit :integer 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)
|
||||||
# theme_id :integer default(1), not null
|
# theme_id :integer default(1), not null
|
||||||
# bio :string(255)
|
# bio :string(255)
|
||||||
# failed_attempts :integer default(0)
|
# failed_attempts :integer default(0)
|
||||||
# locked_at :datetime
|
# locked_at :datetime
|
||||||
# extern_uid :string(255)
|
# extern_uid :string(255)
|
||||||
# provider :string(255)
|
# provider :string(255)
|
||||||
# username :string(255)
|
# username :string(255)
|
||||||
# can_create_group :boolean default(TRUE), not null
|
# can_create_group :boolean default(TRUE), not null
|
||||||
# can_create_team :boolean default(TRUE), not null
|
# can_create_team :boolean default(TRUE), not null
|
||||||
# state :string(255)
|
# state :string(255)
|
||||||
# color_scheme_id :integer default(1), not null
|
# color_scheme_id :integer default(1), not null
|
||||||
# notification_level :integer default(1), not null
|
# notification_level :integer default(1), not null
|
||||||
# password_expires_at :datetime
|
# password_expires_at :datetime
|
||||||
# created_by_id :integer
|
# created_by_id :integer
|
||||||
# avatar :string(255)
|
# last_credential_check_at :datetime
|
||||||
# confirmation_token :string(255)
|
# avatar :string(255)
|
||||||
# confirmed_at :datetime
|
# confirmation_token :string(255)
|
||||||
# confirmation_sent_at :datetime
|
# confirmed_at :datetime
|
||||||
# unconfirmed_email :string(255)
|
# confirmation_sent_at :datetime
|
||||||
# hide_no_ssh_key :boolean default(FALSE)
|
# unconfirmed_email :string(255)
|
||||||
# website_url :string(255) default(""), not null
|
# hide_no_ssh_key :boolean default(FALSE)
|
||||||
|
# website_url :string(255) default(""), not null
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# group_access :integer not null
|
# group_access :integer not null
|
||||||
# group_id :integer not null
|
# group_id :integer not null
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# notification_level :integer default(3), not null
|
# notification_level :integer default(3), not null
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# project_id :integer not null
|
# project_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# project_access :integer default(0), not null
|
# project_access :integer default(0), not null
|
||||||
# notification_level :integer default(3), not null
|
# notification_level :integer default(3), not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,13 +5,14 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255)
|
# url :string(255)
|
||||||
# project_id :integer
|
# project_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
# type :string(255) default("ProjectHook")
|
# type :string(255) default("ProjectHook")
|
||||||
# service_id :integer
|
# service_id :integer
|
||||||
# push_events :boolean default(TRUE), not null
|
# push_events :boolean default(TRUE), not null
|
||||||
# issues_events :boolean default(FALSE), not null
|
# issues_events :boolean default(FALSE), not null
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
# merge_requests_events :boolean default(FALSE), not null
|
||||||
|
# tag_push_events :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
Loading…
Reference in a new issue