2018-11-13 07:27:31 +00:00
|
|
|
class AddNewProjectGuidelinesToAppearances < ActiveRecord::Migration[4.2]
|
2017-11-22 13:48:38 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
2017-12-12 11:12:42 +00:00
|
|
|
# Clears the current Appearance cache otherwise it breaks since
|
|
|
|
# new_project_guidelines_html would be missing. See
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab-ce/issues/41041
|
|
|
|
# We're not using Appearance#flush_redis_cache on purpose here.
|
|
|
|
Rails.cache.delete('current_appearance')
|
|
|
|
|
2017-11-22 13:48:38 +00:00
|
|
|
change_table :appearances do |t|
|
|
|
|
t.text :new_project_guidelines
|
|
|
|
t.text :new_project_guidelines_html
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|