Skip to content

Commit 9504bb8

Browse files
committed
Fix upgrade migration class under acronym inflections
Rails camelizes the migration filename with the app inflector, so an app declaring an LLM acronym expects AddRubyLLMV20Columns while the template hardcoded AddRubyLlmV20Columns. Camelize in the template so both sides use the same inflections.
1 parent 1e70376 commit 9504bb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/generators/ruby_llm/upgrade/templates/add_v2_0_message_columns.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddRubyLlmV20Columns < ActiveRecord::Migration<%= migration_version %>
1+
class <%= 'add_ruby_llm_v2_0_columns'.camelize %> < ActiveRecord::Migration<%= migration_version %>
22
def change
33
unless column_exists?(:<%= message_table_name %>, :citations)
44
add_column :<%= message_table_name %>, :citations, :json

0 commit comments

Comments
 (0)