26 lines
492 B
Ruby
26 lines
492 B
Ruby
class AddVersionFieldToMarkdownCache < ActiveRecord::Migration[4.2]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
|
|
def change
|
|
%i[
|
|
abuse_reports
|
|
appearances
|
|
application_settings
|
|
broadcast_messages
|
|
issues
|
|
labels
|
|
merge_requests
|
|
milestones
|
|
namespaces
|
|
notes
|
|
projects
|
|
releases
|
|
snippets
|
|
].each do |table|
|
|
add_column table, :cached_markdown_version, :integer, limit: 4
|
|
end
|
|
end
|
|
end
|