{"record":{"id":"d5b9363c5baf2f52","repo":"padrino/padrino-framework","slug":"you-need-an-orm-adapter-for-run-this-generator-d5b936","errorCode":null,"errorMessage":"<= You need an ORM adapter for run this generator. Sorry!","messagePattern":"<= You need an ORM adapter for run this generator\\. Sorry!","errorType":"console","errorClass":"SystemExit","httpStatus":null,"severity":"error","filePath":"padrino-gen/lib/padrino-gen/generators/model.rb","lineNumber":89,"sourceCode":"      #\n      def model_name_already_exists?\n        @camel_name = name.to_s.underscore.camelize\n\n        @project_name = ''\n        @project_name = fetch_project_name\n\n        return false unless already_exists?(@camel_name, @project_name)\n        true\n      end\n\n      ##\n      # Alert if there is not an ORM Adapter\n      #\n      def check_orm\n        return true if include_component_module_for(:orm)\n\n        say '<= You need an ORM adapter for run this generator. Sorry!'\n        raise SystemExit\n      end\n\n      ##\n      # Check app path\n      #\n      def correct_path?\n        return true if in_app_root?\n        say 'You are not at the root of a Padrino application! (config/boot.rb not found)'\n        false\n      end\n\n      ##\n      # Check if the fields are valid\n      #\n      def has_invalid_fields?\n        if (invalids = invalid_fields(fields))\n          say 'Invalid field name:', :red\n          say \" #{invalids.join(', ')}\"","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/padrino/padrino-framework/blob/167044f3d56b2bce12f943eb826fdb0b0ea94375/padrino-gen/lib/padrino-gen/generators/model.rb#L71-L107","documentation":"Error \"<= You need an ORM adapter for run this generator. Sorry!\" thrown in padrino/padrino-framework.","triggerScenarios":"Thrown at padrino-gen/lib/padrino-gen/generators/model.rb:89 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"}