Project

General

Profile

Actions

Patch #32296

closed

Ignore rubocop offense

Added by Masahiro IUCHI about 5 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I found a rubocop offense is remaining.

$ rubocop db/migrate/20190510070108_add_unique_id_to_import_items.rb
Inspecting 1 file
C

Offenses:

db/migrate/20190510070108_add_unique_id_to_import_items.rb:3:5: C: Rails/BulkChangeTable: You can combine alter queries using bulk: true options.
    change_table :import_items do |t|
    ^^^^^^^^^^^^^^^^^^^^^^^^^^

1 file inspected, 1 offense detected

Environment information:

$ RAILS_ENV=test bin/about

Environment:
  Redmine version                4.0.4.devel.18732
  Ruby version                   2.5.5-p157 (2019-03-15) [x86_64-darwin19]
  Rails version                  5.2.3
  Environment                    test
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::InlineAdapter
  Mailer delivery                test
SCM:
  Subversion                     1.10.4
  Git                            2.21.0
  Filesystem
Redmine plugins:
  no plugin installed

I have created a patch to ignore it like other migration files.


Files

Actions

Also available in: Atom PDF