Skip to content

attempting to create an existing database results in uninitialized constant error #1092

Description

@akcrono

When running the create database task for postgres for an already existing database, I get a ActiveRecord::Tasks::PostgreSQLDatabaseTasks::PG due to activercord expecting a PG::DuplicateDatabase error https://github.com/rails/rails/blob/v5.2.6/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb#L25, while the PG gem is not included with jruby. From the gemfile, it looks like the PG gem is only required for MRI ruby, so this might have slipped through the tests.

activerecord: 5.2.6
activerecord-jdbc-adapter: 52.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions