Skip to content

[BUG] Typo in class naming migration 1.7 #498

@CPloscaru

Description

@CPloscaru

Basic checks

  • I searched existing issues - this hasn't been reported
  • I can reproduce this consistently
  • This is a RubyLLM bug, not my application code

What's broken?

Hello,

I think there is an error in lib/generators/ruby_llm/upgrade_to_v1_7/templates/migration.rb.tt

MigrateToRubyLLMModelReferences should be MigrateToRubyLlmModelReferences or we get NameError:

NameError: uninitialized constant MigrateToRubyLlmModelReferences (NameError)

  Object.const_get(camel_cased_word)
        ^^^^^^^^^^

Did you mean? MigrateToRubyLLMModelReferences

How to reproduce

Run the 1.7 migration

Expected behavior

Do not raise an error when running "rails db:migrate"

What actually happened

Raise an error

Environment

Ruby LLM latest (1.9.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions