We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843ed2c commit 75a4208Copy full SHA for 75a4208
templates/rails/database.yml.rb
@@ -1,5 +1,5 @@
1
# TODO think about a better way
2
-db_name = app_path.split('/').last
+db_name = Rails.application.class.parent_name.underscore
3
4
database = options[:database].delete('jdbc')
5
database = 'postgres' if database == 'postgresql'
0 commit comments