Rails infrastructure extensions for multiple databases, environment, and versioning