2020-03-04 00:07:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddExpandedEnvironmentNameToCiBuildMetadata < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-04-21 15:21:10 +00:00
|
|
|
# rubocop:disable Migration/PreventStrings
|
2020-03-04 00:07:52 +00:00
|
|
|
def up
|
|
|
|
add_column :ci_builds_metadata, :expanded_environment_name, :string, limit: 255
|
|
|
|
end
|
2020-04-21 15:21:10 +00:00
|
|
|
# rubocop:enable Migration/PreventStrings
|
2020-03-04 00:07:52 +00:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :ci_builds_metadata, :expanded_environment_name
|
|
|
|
end
|
|
|
|
end
|