{"record":{"id":"347b8ef196aa2df3","repo":"padrino/padrino-framework","slug":"migration-version-is-required","errorCode":null,"errorMessage":"MIGRATION_VERSION is required","messagePattern":"MIGRATION_VERSION is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"padrino-gen/lib/padrino-gen/padrino-tasks/activerecord.rb","lineNumber":376,"sourceCode":"\n  def firebird_db_string(config)\n    FireRuby::Database.db_string_for(config.symbolize_keys)\n  end\n\n  def catch_error(type, error, config)\n    $stderr.puts(*error.backtrace)\n    $stderr.puts error.inspect\n    case type\n    when :create\n      $stderr.puts \"Couldn't create database for #{config.inspect}\"\n    when :drop\n      $stderr.puts \"Couldn't drop #{config[:database]}\"\n    end\n  end\n\n  def migrate_as(type)\n    version = env_migration_version\n    raise 'MIGRATION_VERSION is required' unless version\n\n    if less_than_active_record_5_2?\n      ActiveRecord::Migrator.run(type, 'db/migrate/', version)\n    else\n      migration_context.run(type, version)\n    end\n\n    dump_schema\n  end\n\n  def move_as(type)\n    step = ENV['STEP'] ? ENV['STEP'].to_i : 1\n\n    if less_than_active_record_5_2?\n      ActiveRecord::Migrator.send(type, 'db/migrate/', step)\n    else\n      migration_context.send(type, step)\n    end","sourceCodeStart":358,"sourceCodeEnd":394,"githubUrl":"https://github.com/padrino/padrino-framework/blob/167044f3d56b2bce12f943eb826fdb0b0ea94375/padrino-gen/lib/padrino-gen/padrino-tasks/activerecord.rb#L358-L394","documentation":"Error \"MIGRATION_VERSION is required\" thrown in padrino/padrino-framework.","triggerScenarios":"Thrown at padrino-gen/lib/padrino-gen/padrino-tasks/activerecord.rb:376 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"167044f3d56b2bce12f943eb826fdb0b0ea94375","analyzedAt":"2026-08-23T12:41:41.049Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}