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

Migration and Rollback Issues with Incorrect User and Password #16

Closed
juanmamaffei opened this issue Nov 29, 2023 · 1 comment
Closed

Comments

@juanmamaffei
Copy link

Description:

Encountering a PG::InsufficientPrivilege error when attempting to run migrations or rollbacks. The process incorrectly uses app_user and the gem's password instead of the credentials defined in the initializer.

Steps to Reproduce:

  • Check out a branch with a previous version of the PG RLS gem.
  • Run rails db:rollback to revert a migration.
  • Switch to a branch with the current version of the PG RLS gem.
  • Attempt to run rails db:migrate or rails db:rollback.
  • Observe the PG::Permissions error in the console.

Expected Behavior:

Migrations and rollbacks should use the correct admin user and the password defined in the Rails initializer.

Actual Behavior:

The process attempts to execute with app_user and the gem's default password, leading to permission errors.

Environment:

  • Ruby version: 3.2.2
  • Rails version: 7.0.8
  • Sidekiq version: 7.2.0
  • PG RLS gem version: v0.1.4

image

@juanmamaffei
Copy link
Author

Solved on #17 . Thanks @Dandush03 !

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