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

Sandbox mode won't work with rails 7.2 #119

Open
shouichi opened this issue Aug 20, 2024 · 1 comment
Open

Sandbox mode won't work with rails 7.2 #119

shouichi opened this issue Aug 20, 2024 · 1 comment

Comments

@shouichi
Copy link

I recently upgraded our app (console1984 installed) to rails 7.2 and realized that the sandbox mode did not work. It worked fine when rails 7.1.

The problem seems like calling reconnect! without restore_transactions: true. I added the option and sandbox mode worked again. Furthermore, the sandbox mode breaks if I call ApplicationRecord.connection.reconnect! in a working sandboxed rails console.

Console1984::Command.connection.reconnect! unless Console1984::Command.connection.active?

See also #91.

@shouichi
Copy link
Author

I changed to use a different DB to store audit logs (followed #91 (comment)) and everything works as expected.

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