diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-06-01 23:39:24 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-06-01 23:39:24 +0200 |
commit | 5e9687a198f205131d8e65c747f6b4ac2ae092f1 (patch) | |
tree | 586553d4fe7aa12291f37d9dfdcb149efc77e16e /db | |
parent | 2de002b3db1bc199755f8be212fa8804fcb80905 (diff) | |
download | gitlab-ce-5e9687a198f205131d8e65c747f6b4ac2ae092f1.tar.gz |
Add deploy_strategy to ProjectAutoDevops
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180601213245_add_deploy_strategy_to_project_auto_devops.rb | 15 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/db/migrate/20180601213245_add_deploy_strategy_to_project_auto_devops.rb b/db/migrate/20180601213245_add_deploy_strategy_to_project_auto_devops.rb new file mode 100644 index 00000000000..d5ea25f02d4 --- /dev/null +++ b/db/migrate/20180601213245_add_deploy_strategy_to_project_auto_devops.rb @@ -0,0 +1,15 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddDeployStrategyToProjectAutoDevops < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + def change + change_table :project_auto_devops do |t| + t.integer :deploy_strategy, null: false, default: 0 + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 97247387bc7..fc0a6347c6e 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: 20180529093006) do +ActiveRecord::Schema.define(version: 20180601213245) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1490,6 +1490,7 @@ ActiveRecord::Schema.define(version: 20180529093006) do t.datetime_with_timezone "updated_at", null: false t.boolean "enabled" t.string "domain" + t.integer "deploy_strategy", default: 0, null: false end add_index "project_auto_devops", ["project_id"], name: "index_project_auto_devops_on_project_id", unique: true, using: :btree |