class RubyLLM::Generators::UpgradeToV114Generator
Generator to fix tool call thought signature column type for MySQL safety.
Public Class Methods
# File lib/generators/ruby_llm/upgrade_to_v1_14/upgrade_to_v1_14_generator.rb, line 21 def self.next_migration_number(dirname) ::ActiveRecord::Generators::Base.next_migration_number(dirname) end
Public Instance Methods
Source
# File lib/generators/ruby_llm/upgrade_to_v1_14/upgrade_to_v1_14_generator.rb, line 25 def create_migration_file parse_model_mappings migration_template 'add_v1_14_tool_call_columns.rb.tt', 'db/migrate/add_ruby_llm_v1_14_columns.rb', migration_version: migration_version, tool_call_table_name: tool_call_table_name end
Source
# File lib/generators/ruby_llm/upgrade_to_v1_14/upgrade_to_v1_14_generator.rb, line 34 def show_next_steps say_status :success, 'Upgrade prepared!', :green say <<~INSTRUCTIONS Next steps: 1. Review the generated migration 2. Run: bin/rails db:migrate 3. Restart your application server 📚 See the v1.14.0 release notes for details on thought signature persistence. INSTRUCTIONS end