Commit 0a31dc25 authored by Patrick Bair's avatar Patrick Bair

Merge branch 'auto-delete-at' into 'master'

Add auto_delete_at to environments

See merge request gitlab-org/gitlab!52788
parents 3236bcb2 eb4864b7
---
title: Add auto_delete_at to environments
merge_request: 52788
author:
type: added
# frozen_string_literal: true
class AddAutoDeleteAtToEnvironments < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :environments, :auto_delete_at, :datetime_with_timezone
end
end
def down
with_lock_retries do
remove_column :environments, :auto_delete_at
end
end
end
ad83205a0203427ccad1c25933e28cf13ebfb0274865ce5f0f2d578e84bb07a3
\ No newline at end of file
......@@ -12106,7 +12106,8 @@ CREATE TABLE environments (
environment_type character varying,
state character varying DEFAULT 'available'::character varying NOT NULL,
slug character varying NOT NULL,
auto_stop_at timestamp with time zone
auto_stop_at timestamp with time zone,
auto_delete_at timestamp with time zone
);
CREATE SEQUENCE environments_id_seq
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment