diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20181030150739_add_action_to_deployments.rb | 15 | ||||
-rw-r--r-- | db/schema.rb | 1 |
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 |