# Migrate generate an error with character utf8

**URL:** <https://www.ruby-forum.com/t/migrate-generate-an-error-with-character-utf8/197140>\
**Category:** Rails\
**Created:** [June 10, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/migrate-generate-an-error-with-character-utf8/197140 "2010-06-10T14:16:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziburudebian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/eb8c5e/32.png) [@ziburudebian](https://www.ruby-forum.com/u/ziburudebian)\
**Post date:** [June 10, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/migrate-generate-an-error-with-character-utf8/197140/1 "2010-06-10T14:16:50Z")

</div>

hi,

i have this message  
NoMethodError: undefined method `ord’ for 0:Fixnum: SET NAMES ‘utf8’

when i use the command rake db:migrate

Have you an idea ?

here my files :  
[http://patxi.mayol.free.fr/public/database.yml](http://patxi.mayol.free.fr/public/database.yml)  
[http://patxi.mayol.free.fr/public/001\_create\_livres.rb](http://patxi.mayol.free.fr/public/001_create_livres.rb)  
[http://patxi.mayol.free.fr/public/config\_mysql.txt](http://patxi.mayol.free.fr/public/config_mysql.txt)

thanks

My config :  
Windows XP PRO SP3  
wamp 2.0 with mysql 5.0.51b  
apatana 2.0  
rails 2.3.2  
ruby server 1.8.6  
rubygems 1.3.5
