Ruby on Rails Switch Rails Database Connections While Running Cypress Tests This setup will switch the database connection when the Cypress tests are running so it won't muddy up the data in other database environments.