summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-02-27 14:58:19 +0200
committerValery Sizov <vsv2711@gmail.com>2015-03-02 14:32:13 +0200
commit00d79e159086e55d8e06c55e0bdd5ee5b1779f34 (patch)
tree472715adae5aadfd4421f10658b68170a84d1102 /db
parent83835d271fa8fb04fae5c422afeacfba6f061629 (diff)
downloadgitlab-ci-00d79e159086e55d8e06c55e0bdd5ee5b1779f34.tar.gz
Deploy jobs
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150226001835_add_job_type_to_job.rb6
-rw-r--r--db/schema.rb12
2 files changed, 13 insertions, 5 deletions
diff --git a/db/migrate/20150226001835_add_job_type_to_job.rb b/db/migrate/20150226001835_add_job_type_to_job.rb
new file mode 100644
index 0000000..0153c87
--- /dev/null
+++ b/db/migrate/20150226001835_add_job_type_to_job.rb
@@ -0,0 +1,6 @@
+class AddJobTypeToJob < ActiveRecord::Migration
+ def change
+ add_column :jobs, :job_type, :string, default: 'parallel'
+ add_column :jobs, :refs, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 8fdc4a0..5c22e68 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20150113001835) do
+ActiveRecord::Schema.define(version: 20150226001835) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -58,14 +58,16 @@ ActiveRecord::Schema.define(version: 20150113001835) do
add_index "commits", ["sha"], name: "index_commits_on_sha", using: :btree
create_table "jobs", force: true do |t|
- t.integer "project_id", null: false
+ t.integer "project_id", null: false
t.text "commands"
- t.boolean "active", default: true, null: false
+ t.boolean "active", default: true, null: false
t.datetime "created_at"
t.datetime "updated_at"
t.string "name"
- t.boolean "build_branches", default: true, null: false
- t.boolean "build_tags", default: false, null: false
+ t.boolean "build_branches", default: true, null: false
+ t.boolean "build_tags", default: false, null: false
+ t.string "job_type", default: "parallel"
+ t.string "refs"
end
add_index "jobs", ["project_id"], name: "index_jobs_on_project_id", using: :btree