debian-mirror-gitlab/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb
2017-08-17 22:00:37 +05:30

26 lines
487 B
Ruby

class AddVersionFieldToMarkdownCache < ActiveRecord::Migration
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