Rails 3.1.0.rc5 Rake 问题
迁移似乎没有运行,这让我感到非常头疼。不知道为什么——让我很恼火!我不知道“访客”到底是什么。
$ bundle exec 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
rake aborted!
undefined method `visitor' for # <ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x007fcdcbdd8308>
/Users/danbronsema/.rvm/gems/ruby-1.9.2-p290@edge/gems/arel-2.1.5/lib/arel/tree_manager.rb:19:in `visitor'
下面是宝石列表
actionmailer (3.1.0.rc5)
actionpack (3.1.0.rc5)
activemodel (3.1.0.rc5)
activerecord (3.1.0.rc5)
activeresource (3.1.0.rc5)
activesupport (3.1.0.rc5)
ansi (1.3.0)
arel (2.1.5)
bcrypt-ruby (2.1.4)
builder (3.0.0)
bundler (1.0.17)
coffee-rails (3.1.0.rc.5)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
erubis (2.7.0)
execjs (1.2.4)
hike (1.2.0)
i18n (0.6.0)
jquery-rails (1.0.12)
mail (2.3.0)
mime-types (1.16)
multi_json (1.0.3)
polyglot (0.3.2)
rack (1.3.2)
rack-cache (1.0.2)
rack-mount (0.8.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.0.rc5)
railties (3.1.0.rc5)
rake (0.9.2)
rdoc (3.9.1)
sass (3.1.7)
sass-rails (3.1.0.rc.5)
sprockets (2.0.0.beta.13)
sqlite3 (1.3.4)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.10)
turn (0.8.2)
tzinfo (0.3.29)
uglifier (1.0.0)
Having some huge headaches with migrations not seeming to run. No idea why - giving me the irrits! I don't know what the heck 'visitor' is.
$ bundle exec 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
rake aborted!
undefined method `visitor' for # <ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x007fcdcbdd8308>
/Users/danbronsema/.rvm/gems/ruby-1.9.2-p290@edge/gems/arel-2.1.5/lib/arel/tree_manager.rb:19:in `visitor'
Below is the gemlist
actionmailer (3.1.0.rc5)
actionpack (3.1.0.rc5)
activemodel (3.1.0.rc5)
activerecord (3.1.0.rc5)
activeresource (3.1.0.rc5)
activesupport (3.1.0.rc5)
ansi (1.3.0)
arel (2.1.5)
bcrypt-ruby (2.1.4)
builder (3.0.0)
bundler (1.0.17)
coffee-rails (3.1.0.rc.5)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
erubis (2.7.0)
execjs (1.2.4)
hike (1.2.0)
i18n (0.6.0)
jquery-rails (1.0.12)
mail (2.3.0)
mime-types (1.16)
multi_json (1.0.3)
polyglot (0.3.2)
rack (1.3.2)
rack-cache (1.0.2)
rack-mount (0.8.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.0.rc5)
railties (3.1.0.rc5)
rake (0.9.2)
rdoc (3.9.1)
sass (3.1.7)
sass-rails (3.1.0.rc.5)
sprockets (2.0.0.beta.13)
sqlite3 (1.3.4)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.10)
turn (0.8.2)
tzinfo (0.3.29)
uglifier (1.0.0)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是
arel 2.1.5
中的一个错误。通过将
gem "arel", "2.1.4"
添加到您的 Gemfile 并运行bundle update arel
来修复此问题。This is a bug in
arel 2.1.5
.Fix this by adding
gem "arel", "2.1.4"
to your Gemfile and runningbundle update arel
.只是重复章鱼保罗的解决方案作为答案而不是评论。这样比较容易找到。
您可以在 ruby-forum.com/topic/2317524 或 comments.gmane.org/gmane.comp.lang.ruby.rails/296600 找到解决方案 – Octopus-Paul
Just repeating Octupus-Paul's solution as an answer instead of a comment. It's easier to find that way.
You can find the solution here ruby-forum.com/topic/2317524 or here comments.gmane.org/gmane.comp.lang.ruby.rails/296600 – Octopus-Paul