Commit a237999f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Annotate models

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f197b528
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
# after_sign_out_path :string(255) # after_sign_out_path :string(255)
# session_expire_delay :integer default(10080), not null # session_expire_delay :integer default(10080), not null
# import_sources :text # import_sources :text
# help_page_text :text
# admin_notification_email :string(255)
# shared_runners_enabled :boolean default(TRUE), not null
# max_artifacts_size :integer default(100), not null
# #
class ApplicationSetting < ActiveRecord::Base class ApplicationSetting < ActiveRecord::Base
......
# == Schema Information # == Schema Information
# #
# Table name: application_settings # Table name: ci_application_settings
# #
# id :integer not null, primary key # id :integer not null, primary key
# all_broken_builds :boolean # all_broken_builds :boolean
......
# == Schema Information # == Schema Information
# #
# Table name: builds # Table name: ci_builds
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer # project_id :integer
...@@ -11,16 +11,24 @@ ...@@ -11,16 +11,24 @@
# updated_at :datetime # updated_at :datetime
# started_at :datetime # started_at :datetime
# runner_id :integer # runner_id :integer
# commit_id :integer
# coverage :float # coverage :float
# commit_id :integer
# commands :text # commands :text
# job_id :integer # job_id :integer
# name :string(255) # name :string(255)
# deploy :boolean default(FALSE)
# options :text # options :text
# allow_failure :boolean default(FALSE), not null # allow_failure :boolean default(FALSE), not null
# stage :string(255) # stage :string(255)
# deploy :boolean default(FALSE)
# trigger_request_id :integer # trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string(255)
# user_id :integer
# type :string(255)
# target_url :string(255)
# description :string(255)
# artifacts_file :text
# #
module Ci module Ci
......
# == Schema Information # == Schema Information
# #
# Table name: commits # Table name: ci_commits
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer # project_id :integer
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
# tag :boolean default(FALSE) # tag :boolean default(FALSE)
# yaml_errors :text # yaml_errors :text
# committed_at :datetime # committed_at :datetime
# gl_project_id :integer
# #
module Ci module Ci
......
# == Schema Information # == Schema Information
# #
# Table name: events # Table name: ci_events
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer # project_id :integer
......
# == Schema Information # == Schema Information
# #
# Table name: projects # Table name: ci_projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# name :string(255) not null # name :string(255)
# timeout :integer default(3600), not null # timeout :integer default(3600), not null
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
......
# == Schema Information # == Schema Information
# #
# Table name: runners # Table name: ci_runners
# #
# id :integer not null, primary key # id :integer not null, primary key
# token :string(255) # token :string(255)
......
# == Schema Information # == Schema Information
# #
# Table name: runner_projects # Table name: ci_runner_projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# runner_id :integer not null # runner_id :integer not null
......
# == Schema Information # == Schema Information
# #
# Table name: services # Table name: ci_services
# #
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
......
# == Schema Information # == Schema Information
# #
# Table name: triggers # Table name: ci_triggers
# #
# id :integer not null, primary key # id :integer not null, primary key
# token :string(255) # token :string(255)
......
# == Schema Information # == Schema Information
# #
# Table name: trigger_requests # Table name: ci_trigger_requests
# #
# id :integer not null, primary key # id :integer not null, primary key
# trigger_id :integer not null # trigger_id :integer not null
......
# == Schema Information # == Schema Information
# #
# Table name: variables # Table name: ci_variables
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer not null # project_id :integer not null
......
# == Schema Information # == Schema Information
# #
# Table name: web_hooks # Table name: ci_web_hooks
# #
# id :integer not null, primary key # id :integer not null, primary key
# url :string(255) not null # url :string(255) not null
......
# == Schema Information
#
# Table name: ci_builds
#
# id :integer not null, primary key
# project_id :integer
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
# started_at :datetime
# runner_id :integer
# coverage :float
# commit_id :integer
# commands :text
# job_id :integer
# name :string(255)
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string(255)
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string(255)
# user_id :integer
# type :string(255)
# target_url :string(255)
# description :string(255)
# artifacts_file :text
#
class CommitStatus < ActiveRecord::Base class CommitStatus < ActiveRecord::Base
self.table_name = 'ci_builds' self.table_name = 'ci_builds'
......
# == Schema Information
#
# Table name: ci_builds
#
# id :integer not null, primary key
# project_id :integer
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
# started_at :datetime
# runner_id :integer
# coverage :float
# commit_id :integer
# commands :text
# job_id :integer
# name :string(255)
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string(255)
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string(255)
# user_id :integer
# type :string(255)
# target_url :string(255)
# description :string(255)
# artifacts_file :text
#
class GenericCommitStatus < CommitStatus class GenericCommitStatus < CommitStatus
before_validation :set_default_values before_validation :set_default_values
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# type :string(255) # type :string(255)
# description :string(255) default(""), not null # description :string(255) default(""), not null
# avatar :string(255) # avatar :string(255)
# public :boolean default(FALSE)
# #
require 'carrierwave/orm/activerecord' require 'carrierwave/orm/activerecord'
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# merge_requests_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE) # tag_push_events :boolean default(FALSE)
# note_events :boolean default(FALSE), not null # note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# #
class ProjectHook < WebHook class ProjectHook < WebHook
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# merge_requests_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE) # tag_push_events :boolean default(FALSE)
# note_events :boolean default(FALSE), not null # note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# #
class ServiceHook < WebHook class ServiceHook < WebHook
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# merge_requests_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE) # tag_push_events :boolean default(FALSE)
# note_events :boolean default(FALSE), not null # note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# #
class SystemHook < WebHook class SystemHook < WebHook
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# merge_requests_events :boolean default(FALSE), not null # merge_requests_events :boolean default(FALSE), not null
# tag_push_events :boolean default(FALSE) # tag_push_events :boolean default(FALSE)
# note_events :boolean default(FALSE), not null # note_events :boolean default(FALSE), not null
# enable_ssl_verification :boolean default(TRUE)
# #
class WebHook < ActiveRecord::Base class WebHook < ActiveRecord::Base
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# project_id :integer # project_id :integer
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# template :boolean default(FALSE)
# #
class Label < ActiveRecord::Base class Label < ActiveRecord::Base
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
# position :integer default(0) # position :integer default(0)
# locked_at :datetime # locked_at :datetime
# updated_by_id :integer # updated_by_id :integer
# merge_error :string(255)
# #
require Rails.root.join("app/models/commit") require Rails.root.join("app/models/commit")
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# type :string(255) # type :string(255)
# description :string(255) default(""), not null # description :string(255) default(""), not null
# avatar :string(255) # avatar :string(255)
# public :boolean default(FALSE)
# #
class Namespace < ActiveRecord::Base class Namespace < ActiveRecord::Base
......
# == Schema Information # == Schema Information
# #
# Table name: services # Table name: ci_services
# #
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
......
# == Schema Information # == Schema Information
# #
# Table name: services # Table name: ci_services
# #
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
......
# == Schema Information # == Schema Information
# #
# Table name: services # Table name: ci_services
# #
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
......
# == Schema Information
#
# Table name: releases
#
# id :integer not null, primary key
# tag :string(255)
# description :text
# project_id :integer
# created_at :datetime
# updated_at :datetime
#
class Release < ActiveRecord::Base class Release < ActiveRecord::Base
belongs_to :project belongs_to :project
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
# public_email :string(255) default(""), not null # public_email :string(255) default(""), not null
# dashboard :integer default(0) # dashboard :integer default(0)
# project_view :integer default(0) # project_view :integer default(0)
# consumed_timestep :integer
# layout :integer default(0) # layout :integer default(0)
# #
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# project_id :integer # project_id :integer
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# template :boolean default(FALSE)
# #
# Read about factories at https://github.com/thoughtbot/factory_girl # Read about factories at https://github.com/thoughtbot/factory_girl
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
# position :integer default(0) # position :integer default(0)
# locked_at :datetime # locked_at :datetime
# updated_by_id :integer # updated_by_id :integer
# merge_error :string(255)
# #
FactoryGirl.define do FactoryGirl.define do
......
# == Schema Information
#
# Table name: releases
#
# id :integer not null, primary key
# tag :string(255)
# description :text
# project_id :integer
# created_at :datetime
# updated_at :datetime
#
# Read about factories at https://github.com/thoughtbot/factory_girl # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do FactoryGirl.define do
......
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
# after_sign_out_path :string(255) # after_sign_out_path :string(255)
# session_expire_delay :integer default(10080), not null # session_expire_delay :integer default(10080), not null
# import_sources :text # import_sources :text
# help_page_text :text
# admin_notification_email :string(255)
# shared_runners_enabled :boolean default(TRUE), not null
# max_artifacts_size :integer default(100), not null
# #
require 'spec_helper' require 'spec_helper'
......
# == Schema Information # == Schema Information
# #
# Table name: commits # Table name: ci_commits
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer # project_id :integer
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
# tag :boolean default(FALSE) # tag :boolean default(FALSE)
# yaml_errors :text # yaml_errors :text
# committed_at :datetime # committed_at :datetime
# gl_project_id :integer
# #
require 'spec_helper' require 'spec_helper'
......
# == Schema Information # == Schema Information
# #
# Table name: projects # Table name: ci_projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# name :string(255) not null # name :string(255)
# timeout :integer default(3600), not null # timeout :integer default(3600), not null
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
......
# == Schema Information # == Schema Information
# #
# Table name: runner_projects # Table name: ci_runner_projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# runner_id :integer not null # runner_id :integer not null
......
# == Schema Information # == Schema Information
# #
# Table name: runners # Table name: ci_runners
# #
# id :integer not null, primary key # id :integer not null, primary key
# token :string(255) # token :string(255)
......
# == Schema Information # == Schema Information
# #
# Table name: services # Table name: ci_services
# #
# id :integer not null, primary key # id :integer not null, primary key
# type :string(255) # type :string(255)
......
# == Schema Information
#
# Table name: ci_triggers
#
# id :integer not null, primary key
# token :string(255)
# project_id :integer not null
# deleted_at :datetime
# created_at :datetime
# updated_at :datetime
#
require 'spec_helper' require 'spec_helper'
describe Ci::Trigger do describe Ci::Trigger do
......
# == Schema Information # == Schema Information
# #
# Table name: variables # Table name: ci_variables
# #
# id :integer not null, primary key # id :integer not null, primary key
# project_id :integer not null # project_id :integer not null
......
# == Schema Information # == Schema Information
# #
# Table name: web_hooks # Table name: ci_web_hooks
# #
# id :integer not null, primary key # id :integer not null, primary key
# url :string(255) not null # url :string(255) not null
......
# == Schema Information
#
# Table name: ci_builds
#
# id :integer not null, primary key
# project_id :integer
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
# started_at :datetime
# runner_id :integer
# coverage :float
# commit_id :integer
# commands :text
# job_id :integer
# name :string(255)
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string(255)
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string(255)
# user_id :integer
# type :string(255)
# target_url :string(255)
# description :string(255)
# artifacts_file :text
#
require 'spec_helper' require 'spec_helper'
describe CommitStatus do describe CommitStatus do
......
# == Schema Information
#
# Table name: ci_builds
#
# id :integer not null, primary key
# project_id :integer
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
# started_at :datetime
# runner_id :integer
# coverage :float
# commit_id :integer
# commands :text
# job_id :integer
# name :string(255)
# deploy :boolean default(FALSE)
# options :text
# allow_failure :boolean default(FALSE), not null
# stage :string(255)
# trigger_request_id :integer
# stage_idx :integer
# tag :boolean
# ref :string(255)
# user_id :integer
# type :string(255)
# target_url :string(255)
# description :string(255)
# artifacts_file :text
#
require 'spec_helper' require 'spec_helper'
describe GenericCommitStatus do describe GenericCommitStatus do
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# type :string(255) # type :string(255)
# description :string(255) default(""), not null # description :string(255) default(""), not null
# avatar :string(255) # avatar :string(255)
# public :boolean default(FALSE)
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# project_id :integer # project_id :integer
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# template :boolean default(FALSE)
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
# position :integer default(0) # position :integer default(0)
# locked_at :datetime # locked_at :datetime
# updated_by_id :integer # updated_by_id :integer
# merge_error :string(255)
# #
require 'spec_helper' require 'spec_helper'
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# type :string(255) # type :string(255)
# description :string(255) default(""), not null # description :string(255) default(""), not null
# avatar :string(255) # avatar :string(255)
# public :boolean default(FALSE)
# #
require 'spec_helper' require 'spec_helper'
......
# == Schema Information
#
# Table name: releases
#
# id :integer not null, primary key
# tag :string(255)
# description :text
# project_id :integer
# created_at :datetime
# updated_at :datetime
#
require 'rails_helper' require 'rails_helper'
RSpec.describe Release, type: :model do RSpec.describe Release, type: :model do
......
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
# public_email :string(255) default(""), not null # public_email :string(255) default(""), not null
# dashboard :integer default(0) # dashboard :integer default(0)
# project_view :integer default(0) # project_view :integer default(0)
# consumed_timestep :integer
# layout :integer default(0)
# #
require 'spec_helper' require 'spec_helper'
......
Markdown is supported
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