Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Update templates/rails/database.yml.rb #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions templates/rails/database.yml.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO think about a better way
db_name = app_path.split('/').last
db_name = Rails.application.class.parent_name.underscore

database = options[:database].delete('jdbc')
database = 'postgres' if database == 'postgresql'
Expand Down