On Jan 22, 2010, at 4:59 PM, VegHead wrote:
On Jan 22, 3:52 pm, Matt Jones <[email protected]> wrote:
On Jan 22, 2010, at 4:41 PM, VegHead wrote:
Yeah, #345 is really really close... Is it possible I don't have the
fix that Tom Locke made for #345? I'm running hobo 0.9.103 and it
looks like he made that change for 1.0RC1.
-Sean
0.9.100 was (I think) right around RC1; the naming is a little
confusing. The issue closed by #345 wouldn't handle your case, as the
migration generator does an entirely different class-loading dance
than the standard methods. Just to speed things up for me, can you
post a complete backtrace (run 'rake db:migrate --trace') of the
error?
$ rake db:setup --trace
(in /Users/myuser/src/testproject)
** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
testproject_dev already exists
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Table as does not exist
/Users/myuser/Apps/jruby/jruby-1.4.0RC1/lib/ruby/gems/1.8/gems/
activerecord-2.3.5/lib/active_record/base.rb:1271:in `columns'
/Users/myuser/Apps/jruby/jruby-1.4.0RC1/lib/ruby/gems/1.8/gems/
hobofields-0.9.103/lib/hobo_fields/model_extensions.rb:212:in `column'
Nothing like a little live patching... can you try adding this line:
return unless table_exists?
at the very beginning of the column method (line 211 of hobofields/lib/
hobo_fields/model_extensions.rb)?
The trace has the automatic scope code trying to see if
inherited_without_inheritable_attributes is a column, which hits the
DB and dies. This code essentially says, "if the DB isn't there,
nevermind about that scope...".
--Matt JOnes
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.