rom-rails
rom-rails copied to clipboard
ROM-SQL Connection remains on development
Describe the bug
ROM keep previous connections when rails reload the codebase. Due to this behavior, after some changes you get a
PG::ConnectionBad: FATAL: remaining connection slots are reserved for non-replication superuser connections
To Reproduce
A Rails app with ROM and ROM-SQL.
Change multiple times the codebase with the Rails server started.
Expected behavior
After each reload, ROM should clear his connections.
Your environment
- Affects my production application: NO
- Ruby version: 2.6.6
- OS: All