You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a repeat of #659 which should have been fixed by #657 but wasn't.
Expected behavior
Describe here how you expected RuboCop Rails to behave in this particular situation.
Actual behavior
Describe here what actually happened.
db/migrate/20190911042535_remove_trials.rb:2:9: C: [Correctable] Rails/MigrationClassName: Replace with RemoveTrials that matches the file name.
class Trial < ActiveRecord::Base
^^^^^
--- a/db/migrate/20190911042535_remove_trials.rb+++ b/db/migrate/20190911042535_remove_trials.rb@@ -1,5 +1,5 @@
class RemoveTrials < ActiveRecord::Migration
- class Trial < ActiveRecord::Base+ class RemoveTrials < ActiveRecord::Base
end
def up
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
You can see extension cop versions (e.g. rubocop-rails, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
This is a repeat of #659 which should have been fixed by #657 but wasn't.
Expected behavior
Describe here how you expected RuboCop Rails to behave in this particular situation.
Actual behavior
Describe here what actually happened.
Steps to reproduce the problem
Run the cop on this migration file:
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:You can see extension cop versions (e.g. rubocop-rails, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
The text was updated successfully, but these errors were encountered: