Testing Against Multiple Databases in Rails with The DATABASE_URL Env Var
Pro
Rails apps and Rubygems might need to support multiple databases. We can use the DATABASE_URL environment variable to quickly swap out the database that Rails uses in CI, local testing, and more.