# Error on rake command

**URL:** <https://www.ruby-forum.com/t/error-on-rake-command/189522>\
**Category:** Rails\
**Created:** [June 2, 2010, 12:44pm UTC](https://www.ruby-forum.com/t/error-on-rake-command/189522 "2010-06-02T12:44:23Z")\
**Posts on this page:** 3\
**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 2, 2010, 12:44pm UTC](https://www.ruby-forum.com/t/error-on-rake-command/189522/1 "2010-06-02T12:44:23Z")

</div>

Hi,

Have you an idea about this error message when i run the rake db:migrate  
command under Aptana ?

rake aborted!  
NoMethodError: undefined method `ord’ for 0:Fixnum: SET  
SQL\_AUTO\_IS\_NULL=0

Thanks

Here My Config :  
Windows XP PRO SP2  
Wamp 2.0  
Aptana 2.0.4  
RubyGems 1.3.5  
Ruby 1.8.6

---

<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 2, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/error-on-rake-command/189522/2 "2010-06-02T13:08:19Z")

</div>

can you please provide us the migration file?

---

<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 2, 2010, 2:27pm UTC](https://www.ruby-forum.com/t/error-on-rake-command/189522/3 "2010-06-02T14:27:59Z")

</div>

Priya B. wrote:

> can you please provide us the migration file?

what is the migration file ?  
see the database.yml file here :

* * *

# MySQL. Versions 4.1 and 5.0 are recommended.

# 

# Install the MySQL driver:

# gem install mysql

# On Mac OS X:

# sudo gem install mysql – --with-mysql-dir=/usr/local/mysql

# On Mac OS X Leopard:

# sudo env ARCHFLAGS=“-arch i386” gem install mysql –

–with-mysql-config=/usr/local/mysql/bin/mysql\_config

# This sets the ARCHFLAGS environment variable to your native

architecture

# On Windows:

# gem install mysql

# Choose the win32 build.

# Install MySQL and put its /bin directory on your path.

# 

# And be sure to use new-style password hashing:

# [http://dev.mysql.com/doc/refman/5.0/en/old-client.html](http://dev.mysql.com/doc/refman/5.0/en/old-client.html)

development:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: annuaire\_development  
pool: 5  
username: root  
password:  
host: 127.0.0.1

# Warning: The database defined as “test” will be erased and

# re-generated from your development database when you run “rake”.

# Do not set this db to the same as development or production.

test:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: annuaire\_test  
pool: 5  
username: root  
password:  
host: 127.0.0.1

production:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: annuaire\_production  
pool: 5  
username: root  
password:  
host: 127.0.0.1

* * *

and see the migrate file 001\_create\_livre.rb here :

* * *

class CreateLivres \< ActiveRecord::Migration  
def self.up  
create\_table :livres do |t|  
t.string :titre  
t.string :description  
t.string :auteur  
t.timestamps  
end  
end

def self.down  
drop\_table :livres  
end  
end

* * *

Thanks
