capistrano-db-tasks
capistrano-db-tasks copied to clipboard
Strip adapter check?
I noticed that the gem was failing for me with a particular application and I found that stripping whitespace from the adapter check fixed it for me:
def mysql?
@config['adapter'].strip =~ /^mysql/
end
def postgresql?
adapter = @config['adapter'].strip
%{postgresql pg}.include? adapter
end
Wondering if you thought that this was something worth considering as a PR.
Love the gem by the way, use it on pretty much every Rails application.
sure!
I think so.