development:
adapter: firebird
database: Agenda_development
username: sysdba
password: masterkey
host: localhost
# 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: firebird
database: Agenda_test
username: sysdba
password:
host: localhost
production:
adapter: firebird
database: Agenda_production
username: sysdba
password:
host: localhost
E o erro que ocorre é:
in C:/ProjetosRails/Agenda)
rake aborted!
Error opening database connection.
I/O error for file "Agenda_development"
Error while trying to open file
O sistema não pode encontrar o caminho especificado.
Unsuccessful execution caused by a system error that precludes
successful execution of subsequent statements
SQL Code = -902
Firebird Code = 335544344
(See full trace by running task with --trace)
development:
adapter: firebird
database: C:\ProjetosRails\Banco\AGENDA_DEVELOPMENT.GDB
username: sysdba
password: masterkey
host: localhost
E agora estou tendo o seguinte erro:
(in C:/ProjetosRails/Agenda)
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.[]
(See full trace by running task with --trace)
On 9 fev, 07:39, Marlon José <marlon.j...@gmail.com> wrote:
class CreatePessoas < ActiveRecord::Migration
def self.up
create_table :pessoas do |t|
t.column :nome, :string
t.column :data_de_nascimento, :date
t.column :altura, :float
end
end
def self.down
drop_table :pessoas
end
end
Era a versão do Rails, eu atualizei e agora consegui fazer o migrate.
Tá gerando o seguinte erro agora "abnormal program termination
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/
connection_adapters/firebird_adapter.rb:377: [BUG] Segmentation fault
ruby 1.8.4 (2006-04-14) [i386-mswin32]" mas para quem não conseguia
nada já é muito coisa.
Valeu pela força!
Abraços.