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
can you please provide us the migration file?
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:
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