We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Rails 4.2 ActiveRecord::Base.configurations has all keys as string. But TS can't read database parameters because trying find it by symbol keys.
ActiveRecord::Base.configurations
I convert all keys in symobls as workaround:
set_database ActiveRecord::Base.configurations["production"].map { |k, v| [k.to_sym, v] }.to_h
The text was updated successfully, but these errors were encountered:
Don't presume database settings are symbols.
464e624
ActiveRecord 4.2 now uses strings consistently. Closes #885.
Thanks for reporting this - I've just fixed it in the develop branch.
develop
Sorry, something went wrong.
No branches or pull requests
In Rails 4.2
ActiveRecord::Base.configurations
has all keys as string. But TS can't read database parameters because trying find it by symbol keys.I convert all keys in symobls as workaround:
The text was updated successfully, but these errors were encountered: