We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28a6f65 commit 00d02ccCopy full SHA for 00d02cc
lib/ruby_lsp/ruby_lsp_rails/code_lens.rb
@@ -151,7 +151,7 @@ def on_class_node_enter(node)
151
@group_id += 1
152
end
153
154
- if superclass_name&.start_with?("ActiveRecord::Migration")
+ if @path && superclass_name&.start_with?("ActiveRecord::Migration")
155
command = "#{migrate_command} VERSION=#{migration_version}"
156
add_migrate_code_lens(node, name: class_name, command: command)
157
0 commit comments