2021-10-29 20:43:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# See https://docs.gitlab.com/ee/development/migration_style_guide.html
|
|
|
|
# for more information on how to write migrations for GitLab.
|
|
|
|
|
2021-11-11 11:23:49 +05:30
|
|
|
class AddWarnAboutPotentiallyUnwantedCharactersToProjectSettings < Gitlab::Database::Migration[1.0]
|
|
|
|
enable_lock_retries!
|
2021-10-29 20:43:33 +05:30
|
|
|
|
|
|
|
def up
|
2021-11-11 11:23:49 +05:30
|
|
|
add_column :project_settings, :warn_about_potentially_unwanted_characters, :boolean, null: false, default: true
|
2021-10-29 20:43:33 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2021-11-11 11:23:49 +05:30
|
|
|
remove_column :project_settings, :warn_about_potentially_unwanted_characters
|
2021-10-29 20:43:33 +05:30
|
|
|
end
|
|
|
|
end
|