Exclude large tables when remapping in `Upload.migrate_to_new_scheme`.

Those tables do not carry any information about uploads.
This commit is contained in:
Guo Xiang Tan 2019-04-25 11:55:48 +08:00
parent d5d784b9f2
commit 4a03b21f80
1 changed files with 12 additions and 0 deletions

View File

@ -276,6 +276,18 @@ class Upload < ActiveRecord::Base
excluded_tables: %w{
posts
post_search_data
incoming_emails
notifications
single_sign_on_records
stylesheet_cache
topic_links
topics
topic_search_data
users
user_emails
user_profiles
draft_sequences
optimized_images
}
)