diff options
author | Simon Knox <psimyn@gmail.com> | 2018-11-13 14:07:25 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-11-13 14:07:25 +1100 |
commit | ed335291dbeda5b34ae14c47eb7f9058cd5339f6 (patch) | |
tree | 98420e96bdd3379df2777c98cee85e47b9ff078a /db/migrate/20181015155839_add_finished_at_to_deployments.rb | |
parent | 2dce46e941eb55dc55f3d85984298d7a9654e2cc (diff) | |
parent | 03e46cf72babbeb1df1320524fdf34b09fe1292c (diff) | |
download | gitlab-ce-ed335291dbeda5b34ae14c47eb7f9058cd5339f6.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into 49479-hide-unmerged-env-perf-stats49479-hide-unmerged-env-perf-stats
Diffstat (limited to 'db/migrate/20181015155839_add_finished_at_to_deployments.rb')
-rw-r--r-- | db/migrate/20181015155839_add_finished_at_to_deployments.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20181015155839_add_finished_at_to_deployments.rb b/db/migrate/20181015155839_add_finished_at_to_deployments.rb new file mode 100644 index 00000000000..1a061bb0f5f --- /dev/null +++ b/db/migrate/20181015155839_add_finished_at_to_deployments.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class AddFinishedAtToDeployments < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + add_column :deployments, :finished_at, :datetime_with_timezone + end + + def down + remove_column :deployments, :finished_at, :datetime_with_timezone + end +end |