summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-05-28 14:29:21 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-03 16:35:57 +0300
commit17a8fe8a9011cfde0a9dbe70d726c769819a9dfd (patch)
tree10b048c8c2dab844f82779a2a6efdaf3811bb9f0 /db
parent54bd76399ddf5fb925df01d9f86ed020c475b3ba (diff)
downloadgitlab-ci-17a8fe8a9011cfde0a9dbe70d726c769819a9dfd.tar.gz
proof of concept yml configuration
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150528011001_add_fields_to_builds.rb6
-rw-r--r--db/schema.rb5
2 files changed, 10 insertions, 1 deletions
diff --git a/db/migrate/20150528011001_add_fields_to_builds.rb b/db/migrate/20150528011001_add_fields_to_builds.rb
new file mode 100644
index 0000000..394dd8b
--- /dev/null
+++ b/db/migrate/20150528011001_add_fields_to_builds.rb
@@ -0,0 +1,6 @@
+class AddFieldsToBuilds < ActiveRecord::Migration
+ def change
+ add_column :builds, :name, :string
+ add_column :builds, :deploy, :boolean, default: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 1e4f9cd..9876a2e 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,8 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20150602000240) do
+
+ActiveRecord::Schema.define(version: 20150528011001) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -29,6 +30,8 @@ ActiveRecord::Schema.define(version: 20150602000240) do
t.float "coverage"
t.text "commands"
t.integer "job_id"
+ t.string "name"
+ t.boolean "deploy", default: false
end
add_index "builds", ["commit_id"], name: "index_builds_on_commit_id", using: :btree