Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akcrono opened this issue Sep 20, 2021 · 0 comments

Comments

@akcrono
Copy link

akcrono commented Sep 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant