debian-mirror-gitlab/db/migrate/20180308125206_add_user_internal_regex_to_application_setting.rb
2020-05-24 23:13:21 +05:30

16 lines
428 B
Ruby

class AddUserInternalRegexToApplicationSetting < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
# rubocop:disable Migration/PreventStrings
def up
add_column :application_settings, :user_default_internal_regex, :string, null: true
end
# rubocop:enable Migration/PreventStrings
def down
remove_column :application_settings, :user_default_internal_regex
end
end