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
n error occurred while Rails/BulkChangeTable cop was inspecting /Users/nroose/work/db/migrate/20230308165236_test.rb:1:13.
For /Users/nroose/work/: configuration from /Users/nroose/work/.rubocop.yml
configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-performance-1.14.0/config/default.yml
configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-performance-1.14.0/config/default.yml
Default configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-1.48.0/config/default.yml
configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-rails-2.9.1/config/default.yml
configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-rails-2.9.1/config/default.yml
configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-rspec-2.11.1/config/default.yml
configuration from /Users/nroose/.rvm/gems/ruby-3.1.3/gems/rubocop-rspec-2.11.1/config/default.yml
Use parallel by default.
Skipping parallel inspection: only a single file needs inspection
Inspecting 1 file
Scanning /Users/nroose/work/db/migrate/20230308165236_test.rb
Unknown alias: default
/Users/nroose/.rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias'
Steps to reproduce the problem
Create a migration file:
class Test < ActiveRecord::Migration[7.0]
def change
ActiveRecord::Base.connection.execute(
<<~SQL.squish
ALTER TABLE `test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
SQL
)
end
end
Expected behavior
Inspect the file without an error
Actual behavior
The parser/inspecter got an error:
Steps to reproduce the problem
Create a migration file:
Run
RuboCop version
The text was updated successfully, but these errors were encountered: