2019-02-15 15:39:39 +05:30
|
|
|
class AddNewProjectGuidelinesToAppearances < ActiveRecord::Migration[4.2]
|
2018-03-17 18:26:18 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
|
|
|
# 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')
|
|
|
|
|
|
|
|
change_table :appearances do |t|
|
|
|
|
t.text :new_project_guidelines
|
|
|
|
t.text :new_project_guidelines_html
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|