debian-mirror-gitlab/db/migrate/20191202181924_add_environment_auto_stop_in_to_ci_builds_metadata.rb

16 lines
405 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
class AddEnvironmentAutoStopInToCiBuildsMetadata < ActiveRecord::Migration[5.2]
DOWNTIME = false
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
2020-01-01 13:55:28 +05:30
def up
add_column :ci_builds_metadata, :environment_auto_stop_in, :string, limit: 255
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
2020-01-01 13:55:28 +05:30
def down
remove_column :ci_builds_metadata, :environment_auto_stop_in
end
end