{"record":{"id":"1c0bda9f79e86820","repo":"padrino/padrino-framework","slug":"you-need-an-orm-adapter-for-run-this-generator","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/migration.rb","lineNumber":36,"sourceCode":"      argument :name, desc: 'The name of your padrino migration'\n      argument :columns, desc: 'The columns for the migration', type: :array, default: []\n      class_option :root, desc: 'The root destination', aliases: '-r', default: '.', type: :string\n      class_option :destroy, aliases: '-d', default: false, type: :boolean\n\n      # Show help if no ARGV given.\n      require_arguments!\n\n      # Creates the migration file within a Padrino project.\n      def create_migration\n        validate_namespace name\n        self.destination_root = options[:root]\n        if in_app_root?\n          self.behavior = :revoke if options[:destroy]\n          if include_component_module_for(:orm)\n            create_migration_file(name, name, columns)\n          else\n            say '<= You need an ORM adapter for run this generator. Sorry!'\n            raise SystemExit\n          end\n        else\n          say 'You are not at the root of a Padrino application! (config/boot.rb not found)'\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":18,"sourceCodeEnd":45,"githubUrl":"https://github.com/padrino/padrino-framework/blob/167044f3d56b2bce12f943eb826fdb0b0ea94375/padrino-gen/lib/padrino-gen/generators/migration.rb#L18-L45","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/migration.rb:36 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"}