Rails 3.1 RC4 has broken migrations
$ jruby -v
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
$ jruby -S rails -v
Rails 3.1.0.rc4
$ jruby -S rails new myapp -d jdbcpostgresql
[...]
$jruby -S rake db:create
[...]
$ jruby -S rails g model user name:string
invoke active_record
create db/migrate/20110609233144_create_users.rb
create app/models/user.rb
invoke test_unit
create test/unit/user_test.rb
create test/fixtures/users.yml
jruby -S rake db:migrate
$ jruby -S rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
== CreateUsers: migrating
===================================================-- create_table(:users)
-> 0.0950s
-> 0 rows
== CreateUsers: migrated (0.0960s)
==========================================
rake aborted!
An error has occurred, this and all later migrations canceled:
wrong number of arguments (3 for 2)
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/activerecord-
jdbc-adapter-1.1.1/lib/arjdbc/jdbc/adapter.rb:275:in `select''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/
database_statements.rb:9:in `select_all''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/
query_cache.rb:62:in `select_all''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/
database_statements.rb:15:in `select_one''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/
database_statements.rb:21:in `select_value''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/activerecord-
jdbc-adapter-1.1.1/lib/arjdbc/postgresql/adapter.rb:105:in
`postgresql_version''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/activerecord-
jdbc-adapter-1.1.1/lib/arjdbc/postgresql/adapter.rb:136:in
`supports_insert_with_returning?''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/activerecord-
jdbc-adapter-1.1.1/lib/arjdbc/postgresql/adapter.rb:247:in `insert''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:719:in
`record_version_state_after_migrating''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:680:in `migrate''
org/jruby/RubyProc.java:268:in `call''
org/jruby/RubyProc.java:228:in `call''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:734:in
`ddl_transaction''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/
database_statements.rb:183:in `transaction''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/transactions.rb:208:in
`transaction''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:734:in
`ddl_transaction''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:678:in `migrate''
org/jruby/RubyArray.java:1602:in `each''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:663:in `migrate''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:541:in `up''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/migration.rb:522:in `migrate''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/
activerecord-3.1.0.rc4/lib/active_record/railties/databases.rake:
157:in `(root)''
org/jruby/RubyProc.java:268:in `call''
org/jruby/RubyProc.java:228:in `call''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/task.rb:205:in `execute''
org/jruby/RubyArray.java:1602:in `each''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/task.rb:200:in `execute''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/task.rb:158:in `invoke_with_call_chain''
/Users/hipertracker/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/monitor.rb:
191:in `mon_synchronize''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/task.rb:151:in `invoke_with_call_chain''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/task.rb:144:in `invoke''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:112:in `invoke_task''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:90:in `top_level''
org/jruby/RubyArray.java:1602:in `each''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:90:in `top_level''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:129:in `standard_exception_handling''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:84:in `top_level''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:62:in `run''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:129:in `standard_exception_handling''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
lib/rake/application.rb:59:in `run''
/Users/hipertracker/.rvm/gems/jruby-1.6.2@rails-pre/gems/rake-0.9.2/
bin/rake:32:in `(root)''
org/jruby/RubyKernel.java:1063:in `load''
/Users/hipertracker/.rvm/rubies/jruby-1.6.2/bin/rake:19:in `(root)''
Tasks: TOP => db:migrate
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.