Class: DbUrlHelper::Adapter::Postgresql
Constant Summary
collapse
- DEPENDS =
:PG
- SCHEME =
"postgresql"
- PRIORITY =
0
Class Method Summary
collapse
base, included, #testable?
Methods inherited from Generic
get, lookup, scheme, via
Class Method Details
.database ⇒ Object
15
16
17
|
# File 'lib/db_url_helper/adapter/postgresql.rb', line 15
def database
"#{Rails.application.class.parent_name.underscore}_#{Rails.env}"
end
|
.password ⇒ Object
12
13
14
|
# File 'lib/db_url_helper/adapter/postgresql.rb', line 12
def password
ENV['DB_PASSWORD'] || ""
end
|
.user ⇒ Object
9
10
11
|
# File 'lib/db_url_helper/adapter/postgresql.rb', line 9
def user
Rails.application.class.parent_name.underscore
end
|