diff options
author | yhirano <yhirano@me.com> | 2017-04-30 07:23:45 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-30 00:23:45 +0200 |
commit | 8325866c6101c7b63b616e7e0035080ef1af96a7 (patch) | |
tree | c469fbd1529052675602caac06653db3ab205e9c /lib | |
parent | 01e011bc902709db6ec92bcea0136ae9fd258c34 (diff) |
Downgrade rubocop 0.48.1 => 0.46.0 (#2628)
* downgrade rubocop 0.48.1 => 0.46.0 * exclude vendor/**/* from rubocop target files * add frozen_string_literal comment line * fix percent literal delimited by ( and ) * fix alignment * remove comment disabling unknown cop
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mastodon.rake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 985747936..2ddf3c2f0 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -61,7 +61,6 @@ namespace :mastodon do desc 'Set unknown attachment type for remote-only attachments' task set_unknown: :environment do Rails.logger.debug 'Setting unknown attachment type for remote-only attachments...' - # rubocop:disable Rails/SkipsModelValidations MediaAttachment.where(file_file_name: nil).where.not(type: :unknown).in_batches.update_all(type: :unknown) Rails.logger.debug 'Done!' end |