Try using RAILS_DATABASE_POOL env var