I'm using MySQL and tried to run rake db:create and this error was returned:
`connect': can't convert Fixnum into String (TypeError)
The problem is that YAML parser is trying to guess what data type value I have in my datase.yml.
My file was like this:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: walk_benchmark_development
pool: 5
username: root
password: 123
socket: /var/run/mysqld/mysqld.sock
So the parser probably considers my password as a integer and forcing it to interpret my password as a string works.
password: "123"
No comments:
Post a Comment