class RubyLLM::Generators::UpgradeToV110Generator
Generator to add v1.10 columns (thinking output + thinking tokens) to existing apps.
Public Class Methods
# File lib/generators/ruby_llm/upgrade_to_v1_10/upgrade_to_v1_10_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_10/upgrade_to_v1_10_generator.rb, line 25 def create_migration_file parse_model_mappings migration_template 'add_v1_10_message_columns.rb.tt', 'db/migrate/add_ruby_llm_v1_10_columns.rb', migration_version: migration_version, message_table_name: message_table_name, tool_call_table_name: tool_call_table_name end
Source
# File lib/generators/ruby_llm/upgrade_to_v1_10/upgrade_to_v1_10_generator.rb, line 35 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.10.0 release notes for details on extended thinking support. INSTRUCTIONS end