can’t convert Fixnum into String

运行rake db:migrate时报上述错误:can’t convert Fixnum into String

是由于将数据库密码写成了数字导致,只需将config/database.yml中

password: 123456 改成 password:”123456″即可。

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>