summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-05 11:40:40 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-05 11:40:40 +0200
commite1ea394072b9358d77a02a021cc79a37ddee1409 (patch)
tree5cd5f8f194ef03e10cac10cd7860c86aff5939bb
parent0511789729411c6dc7f7c0165a584f2c93fbe1cb (diff)
downloadgitlab-ci-e1ea394072b9358d77a02a021cc79a37ddee1409.tar.gz
Reannotate
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/models/build.rb8
-rw-r--r--app/models/commit.rb16
-rw-r--r--app/models/job.rb13
-rw-r--r--app/models/project.rb2
-rw-r--r--spec/factories/builds.rb8
-rw-r--r--spec/factories/commits.rb17
-rw-r--r--spec/factories/projects.rb2
-rw-r--r--spec/models/build_spec.rb8
-rw-r--r--spec/models/commit_spec.rb16
-rw-r--r--spec/models/project_spec.rb2
10 files changed, 67 insertions, 25 deletions
diff --git a/app/models/build.rb b/app/models/build.rb
index 04edb74..7486492 100644
--- a/app/models/build.rb
+++ b/app/models/build.rb
@@ -3,15 +3,23 @@
# Table name: builds
#
# id :integer not null, primary key
+# project_id :integer
+# ref :string(255)
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
+# sha :string(255)
# started_at :datetime
# tmp_file :string(255)
+# before_sha :string(255)
+# push_data :text
# runner_id :integer
+# coverage :float
# commit_id :integer
+# commands :text
+# job_id :integer
#
class Build < ActiveRecord::Base
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 5a01667..4abe0da 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -2,14 +2,14 @@
#
# Table name: commits
#
-# id :integer not null, primary key
-# project_id :integer
-# ref :string(255)
-# sha :string(255)
-# before_sha :string(255)
-# push_data :text
-# created_at :datetime
-# updated_at :datetime
+# id :integer not null, primary key
+# project_id :integer
+# ref :string(255)
+# sha :string(255)
+# before_sha :string(255)
+# push_data :text
+# created_at :datetime
+# updated_at :datetime
#
class Commit < ActiveRecord::Base
diff --git a/app/models/job.rb b/app/models/job.rb
index 9ebc9aa..dcda159 100644
--- a/app/models/job.rb
+++ b/app/models/job.rb
@@ -1,3 +1,16 @@
+# == Schema Information
+#
+# Table name: jobs
+#
+# id :integer not null, primary key
+# project_id :integer not null
+# commands :text
+# active :boolean default(TRUE), not null
+# created_at :datetime
+# updated_at :datetime
+# name :string(255)
+#
+
class Job < ActiveRecord::Base
belongs_to :project
has_many :builds
diff --git a/app/models/project.rb b/app/models/project.rb
index c428e74..314f7e8 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -20,6 +20,8 @@
# email_recipients :string(255) default(""), not null
# email_add_committer :boolean default(TRUE), not null
# email_only_broken_builds :boolean default(TRUE), not null
+# skip_refs :string(255)
+# coverage_regex :string(255)
#
class Project < ActiveRecord::Base
diff --git a/spec/factories/builds.rb b/spec/factories/builds.rb
index 7e222b2..eacdd76 100644
--- a/spec/factories/builds.rb
+++ b/spec/factories/builds.rb
@@ -3,15 +3,23 @@
# Table name: builds
#
# id :integer not null, primary key
+# project_id :integer
+# ref :string(255)
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
+# sha :string(255)
# started_at :datetime
# tmp_file :string(255)
+# before_sha :string(255)
+# push_data :text
# runner_id :integer
+# coverage :float
# commit_id :integer
+# commands :text
+# job_id :integer
#
# Read about factories at https://github.com/thoughtbot/factory_girl
diff --git a/spec/factories/commits.rb b/spec/factories/commits.rb
index c05dad8..f767cac 100644
--- a/spec/factories/commits.rb
+++ b/spec/factories/commits.rb
@@ -2,15 +2,14 @@
#
# Table name: commits
#
-# id :integer not null, primary key
-# project_id :integer
-# ref :string(255)
-# sha :string(255)
-# before_sha :string(255)
-# status :string(255)
-# push_data :text
-# created_at :datetime
-# updated_at :datetime
+# id :integer not null, primary key
+# project_id :integer
+# ref :string(255)
+# sha :string(255)
+# before_sha :string(255)
+# push_data :text
+# created_at :datetime
+# updated_at :datetime
#
# Read about factories at https://github.com/thoughtbot/factory_girl
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index c995fff..46b11d5 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -20,6 +20,8 @@
# email_recipients :string(255) default(""), not null
# email_add_committer :boolean default(TRUE), not null
# email_only_broken_builds :boolean default(TRUE), not null
+# skip_refs :string(255)
+# coverage_regex :string(255)
#
# Read about factories at https://github.com/thoughtbot/factory_girl
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index d1a3a16..753da0d 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -3,15 +3,23 @@
# Table name: builds
#
# id :integer not null, primary key
+# project_id :integer
+# ref :string(255)
# status :string(255)
# finished_at :datetime
# trace :text
# created_at :datetime
# updated_at :datetime
+# sha :string(255)
# started_at :datetime
# tmp_file :string(255)
+# before_sha :string(255)
+# push_data :text
# runner_id :integer
+# coverage :float
# commit_id :integer
+# commands :text
+# job_id :integer
#
require 'spec_helper'
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 380a9b1..75f236b 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -2,14 +2,14 @@
#
# Table name: commits
#
-# id :integer not null, primary key
-# project_id :integer
-# ref :string(255)
-# sha :string(255)
-# before_sha :string(255)
-# push_data :text
-# created_at :datetime
-# updated_at :datetime
+# id :integer not null, primary key
+# project_id :integer
+# ref :string(255)
+# sha :string(255)
+# before_sha :string(255)
+# push_data :text
+# created_at :datetime
+# updated_at :datetime
#
require 'spec_helper'
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index a0563f9..fd33ddd 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -20,6 +20,8 @@
# email_recipients :string(255) default(""), not null
# email_add_committer :boolean default(TRUE), not null
# email_only_broken_builds :boolean default(TRUE), not null
+# skip_refs :string(255)
+# coverage_regex :string(255)
#
require 'spec_helper'