#814 ✓resolved
Arnaud D.

Initial migration failure with new application

Reported by Arnaud D. | September 29th, 2010 @ 08:38 PM | in Hobo 1.3 (Rails 3)

Hi,

I have created a new application using hobo new. I'm using hobo pre7 and rails 3.
When trying to do the first migration created (for users table), I have this error stack:

rake aborted! Table 'rorsmtdev.users' doesn't exist /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/mysql2-> 0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:312:in query' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:312:inexecute' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:462:in columns' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0/lib/active_record/base.rb:679:incolumns' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre7/lib/hobo/model.rb:123:in block in <module:ClassMethods>' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hobo_support-1.3.0.pre7/lib/hobo_support/module.rb:31:incall' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hobo_support-1.3.0.pre7/lib/hobo_support/module.rb:31:in block (2 levels) in inheriting_cattr_reader' rapid/cards:4:inblock in run_one'
/Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:133:in block in each_model' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:131:ineach' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:131:in each_model' rapid/cards:2:inrun_one'
/Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:82:in instance_eval' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:82:inrun_one' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:71:in block in run_for_subsite' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:70:ineach_pair' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:70:in run_for_subsite' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:64:inblock in run' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:64:in each' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:64:inrun' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.pre7/lib/dryml/dryml_generator.rb:25:in run' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre7/lib/hobo/engine.rb:69:inblock (2 levels) in class:Engine' /Ruby/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:429:in `_run_prepare_callbacks'

And this line:

       names = c.columns.*.name + c.public_instance_methods.*.to_s

seems to cause the issue.

I was checking around if there are any autocomplete in the sources and nothing found (then, I think it's not the same problem as the other migration issue).

For now on, I don't find what causes the issue (since I'm not sufficiently experimented with hobo and rails).
If you need more information, don't hesitate to ask.

Regards,
Arnaud.

Comments and changes to this ticket

  • Domizio Demichelis

    Domizio Demichelis September 29th, 2010 @ 11:25 PM

    • State changed from “new” to “resolved”
    • Milestone set to Hobo 1.3 (Rails 3)
    • Assigned user set to “Domizio Demichelis”
    • Milestone order changed from “197904” to “0”

    fixed in 8e9b4f791

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages