rake db:migrate
(in /home/pal/project/sprint-19)
DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /usr/lib/ruby/vendor_ruby/activerecord.rb:2)
DEPRECATION WARNING: "Rails.root/test/mocks/development" won't be added automatically to load paths anymore in future releases. (called from /home/pal/project/new-sprint/sprint-19/config/application.rb:51)
DEPRECATION WARNING: Rake tasks in /home/pal/project/new-sprint/sprint-19/vendor/plugins/authorization/tasks/authorization_tasks.rake are deprecated. Use lib/tasks instead. (called from /home/pa/project/new-sprint/sprint-19/Rakefile:7)
DEPRECATION WARNING: Rake tasks in /home/pal/project/new-sprint/sprint-19/vendor/plugins/chartdirector/tasks/chartdirector_tasks.rake are deprecated. Use lib/tasks instead. (called from /home/pal/project/new-sprint/sprint-19/Rakefile:7)
DEPRECATION WARNING: Rake tasks in /home/pal/project/new-sprint/sprint-19/vendor/plugins/headliner/tasks/headliner_tasks.rake are deprecated. Use lib/tasks instead. (called from /home/pal/project/new-sprint/sprint-19/Rakefile:7)
DEPRECATION WARNING: Rake tasks in /home/pal/project/new-sprint/sprint-19/vendor/plugins/open_flash_chart/tasks/open_flash_chart_tasks.rake are deprecated. Use lib/tasks instead. (called from /home/pal/project/new-sprint/sprint-19/Rakefile:7)
DEPRECATION WARNING: Rake tasks in /home/pal/project/new-sprint/sprint-19/vendor/plugins/rails_indexes/tasks/indexer.rake are deprecated. Use lib/tasks instead. (called from /home/pal/project/new-sprint/sprint-19/Rakefile:7)
DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from join at /home/pal/project/new-sprint/sprint-19/lib/tasks/helpers.rb:15)
rake aborted!
Table 'connect_production_new.settings' doesn't exist我尝试过使用MySQL和Postgres,但它只为MySQL抛出了这个错误。
发布于 2012-04-24 14:43:12
可能你没有数据库,或者你的模式没有更新,试着运行rake db:reset (这将删除你的数据库,创建数据库,加载模式和种子数据,如果你的数据库中有重要的数据,不要这样做)。
有关详细信息,请参阅bundle exec rake -T db。
https://stackoverflow.com/questions/10292765
复制相似问题