padrino/padrino-framework · error · SystemExit

<= You need an ORM adapter for run this generator. Sorry!

Error message

<= You need an ORM adapter for run this generator. Sorry!

What it means

Error "<= You need an ORM adapter for run this generator. Sorry!" thrown in padrino/padrino-framework.

Source

Thrown at padrino-gen/lib/padrino-gen/generators/migration.rb:36

      argument :name, desc: 'The name of your padrino migration'
      argument :columns, desc: 'The columns for the migration', type: :array, default: []
      class_option :root, desc: 'The root destination', aliases: '-r', default: '.', type: :string
      class_option :destroy, aliases: '-d', default: false, type: :boolean

      # Show help if no ARGV given.
      require_arguments!

      # Creates the migration file within a Padrino project.
      def create_migration
        validate_namespace name
        self.destination_root = options[:root]
        if in_app_root?
          self.behavior = :revoke if options[:destroy]
          if include_component_module_for(:orm)
            create_migration_file(name, name, columns)
          else
            say '<= You need an ORM adapter for run this generator. Sorry!'
            raise SystemExit
          end
        else
          say 'You are not at the root of a Padrino application! (config/boot.rb not found)'
        end
      end
    end
  end
end

View on GitHub (pinned to 167044f3d5)

When it happens

Trigger: Thrown at padrino-gen/lib/padrino-gen/generators/migration.rb:36 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of padrino/padrino-framework@167044f3d5 (2026-08-23). Data as JSON: /api/errors/1c0bda9f79e86820. Report an issue: GitHub.