debian-mirror-gitlab/db/migrate/20190527011309_add_required_template_name_to_application_settings.rb

18 lines
581 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
2019-09-30 21:07:59 +05:30
class AddRequiredTemplateNameToApplicationSettings < ActiveRecord::Migration[5.1]
2017-09-10 17:25:29 +05:30
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
2017-09-10 17:25:29 +05:30
def change
2020-05-24 23:13:21 +05:30
add_column :application_settings, :required_instance_ci_template, :string, null: true
2017-09-10 17:25:29 +05:30
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
2017-09-10 17:25:29 +05:30
end