Skip to content

Commit 76d6e64

Browse files
authored
Update database.rb
1 parent ad44b9f commit 76d6e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/capistrano-db-tasks/database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def initialize(cap_instance)
117117
end
118118
# Remove all warnings, errors and artefacts produced by bunlder, rails and other useful tools
119119
config_content = dirty_config_content.match(/#{DBCONFIG_BEGIN_FLAG}(.*?)#{DBCONFIG_END_FLAG}/m)[1]
120-
config_hash = YAML.load(config_content).each_with_object({}) { |(k, v), h| h[k.to_s] = v }
120+
config_hash = YAML.load(config_content, aliases: true).each_with_object({}) { |(k, v), h| h[k.to_s] = v }
121121
@config = fetch(:db_config_key) ? config_hash[fetch(:db_config_key).to_s] : config_hash
122122
end
123123
end

0 commit comments

Comments
 (0)