diff options
author | Nick Thomas <nick@gitlab.com> | 2017-04-10 19:36:30 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-04-21 17:24:33 +0100 |
commit | d2b883b7506d7b77d57583b5e9b17c024480b721 (patch) | |
tree | 939e32929eed7175d2e0fbb7de44b3bef8b250b7 /db/migrate | |
parent | e9819de10aa1ca29cb760c714c37ab0a23c0bd89 (diff) | |
download | gitlab-ce-d2b883b7506d7b77d57583b5e9b17c024480b721.tar.gz |
Start versioning cached markdown fields
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170410133135_add_version_field_to_markdown_cache.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb b/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb new file mode 100644 index 00000000000..d9209fe5770 --- /dev/null +++ b/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb @@ -0,0 +1,25 @@ +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 |