summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-02 15:44:10 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-02 15:44:10 +0900
commit5ef309ab8863b98d39ab2471a7a1985d4ac0696b (patch)
tree89908d376931194771b24d8b57d8b40e2253af27 /db
parentb5e0527c5d4fe8f18b2fdda5916bae9b8cd859a4 (diff)
downloadgitlab-ce-add-action-to-deployment-backup.tar.gz
Add action to deploymentadd-action-to-deployment-backup
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20181030150739_add_action_to_deployments.rb15
-rw-r--r--db/schema.rb1
2 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20181030150739_add_action_to_deployments.rb b/db/migrate/20181030150739_add_action_to_deployments.rb
new file mode 100644
index 00000000000..a70ead45e03
--- /dev/null
+++ b/db/migrate/20181030150739_add_action_to_deployments.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddActionToDeployments < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def up
+ add_column :deployments, :action, :integer, limit: 2
+ end
+
+ def down
+ remove_column :deployments, :action, :integer, limit: 2
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 8594fc8d25a..762f3553877 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -826,6 +826,7 @@ ActiveRecord::Schema.define(version: 20181031190559) do
t.string "on_stop"
t.integer "status", limit: 2, default: 2, null: false
t.datetime_with_timezone "finished_at"
+ t.integer "action", limit: 2
end
add_index "deployments", ["created_at"], name: "index_deployments_on_created_at", using: :btree