I load the fireruby, copy the fbclient.dll for C:\Windows\System32, I
placed in aliases.conf the path for arquive .fdb “testefb =
localhost:C:\Teste\DADOS.FDB” and configure de database.yml:
- development:
- adapter: firebird
- database: testefb
- username: sysdba
- password: masterkey
- host: localhost
- test:
- development
- production:
- development
I create a migrate:
- def self.up
- create_table :usuario do |t|
-
t.column :nome, :string, :limit => 30
-
t.column :email, :string
-
t.column :cript_senha, :string, :null => false
-
t.column :nivel, :integer
- end
- end
And when execute the rake migrate, appear the following error:
rake aborted!
Error opening database connection.
I/O error for file “testefb”
Error while trying to open file
O sistema nÃ’o pode encontrar o arquivo especificado.
Unsuccessful execution caused by a system error that precludes
successful execution of subsequent statements
SQL Code = -902
Firebird Code = 335544344
What I am making a mistake, therefore I tried im my notebook, and on
micro here of work, and both appear the exactly error.
ps.: In aliases.conf I am making to place the path without the
localhost, but appear the following error:
rake aborted!
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]