diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-18 11:04:05 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-28 08:50:10 +0300 |
commit | 321e580eded961d4de1570d2dd24e8140b0e1b77 (patch) | |
tree | 3254b161c5cc377e7578fe5a53ea45af0c55ff1f /db | |
parent | 26b3816d747a6527c4b1382891f36e8f2b31bae1 (diff) |
Rename FillFileStoreUpload to FillStoreUpload
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20180424151928_fill_file_store.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/post_migrate/20180424151928_fill_file_store.rb b/db/post_migrate/20180424151928_fill_file_store.rb index e950d78e1dd..bb7d0978efe 100644 --- a/db/post_migrate/20180424151928_fill_file_store.rb +++ b/db/post_migrate/20180424151928_fill_file_store.rb @@ -28,10 +28,11 @@ class FillFileStore < ActiveRecord::Migration class Upload < ActiveRecord::Base include EachBatch self.table_name = 'uploads' + self.inheritance_column = :_type_disabled # Disable STI BATCH_SIZE = 10_000 def self.params_for_background_migration - yield self.where(store: nil), 'FillFileStoreUpload', 5.minutes, BATCH_SIZE + yield self.where(store: nil), 'FillStoreUpload', 5.minutes, BATCH_SIZE end end |