Module: RailsDatabaseUrl

Defined in:
lib/rails-database-url.rb,
lib/rails-database-url/version.rb

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.set_database_urlObject



5
6
7
8
# File 'lib/rails-database-url.rb', line 5

def self.set_database_url
  return if ENV["DATABASE_URL"]
  ENV["DATABASE_URL"] = config_to_url(db_config)
end