-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rake db:seed或者db:seed:development:shop 报错 #459
Comments
已解决,我正在尝试升级至 rails3.2.6,所以问题和 Warning 会多一些,正在处理。 |
另外,第一次使用的时候不用运行 |
我用的是mysql,没有用postgresql, Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create |
bundle exec rake shopqi:bootstrap 里面必须要postgresql? |
这个文件的配置已经改成mysql database.yml |
我用rake db:migrate没有问题 |
是升级 rails3.2.6 后引起的问题,已经通过更新 kaminari 解决了。 你可以使用 MySQL。 |
我刚才更新了最新代码,然后bundle exec rake shopqi:bootstrap,还是报错如下: Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create |
我用postgresql数据库没有问题,感谢你做了这么好的一个产品!:-) |
@wyh770406 这个问题是因为 database.yml 仍然使用的是 你可以运行以下命令初始化
|
ok |
请教以下问题如何解决?
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActiveAdmin::Settings instead. (called from <top (required)> at /home/wyh77/shopqi/config/application.rb:9)
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Kaminari::ActiveRecordRelationMethods instead. (called from <top (required)> at /home/wyh77/shopqi/config/application.rb:9)
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Kaminari::PageScopeMethods instead. (called from <top (required)> at /home/wyh77/shopqi/config/application.rb:9)
/usr/share/ruby-rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.3/lib/bundler.rb:255: warning: Insecure world writable dir /usr/share/ruby-rvm/rubies/ruby-1.9.2-p290/bin in PATH, mode 040777
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /home/wyh77/shopqi/Rakefile:52)
rake aborted!
undefined method `remove_previously_stored_files_after_update' for #File:0x00000009e13f58
Tasks: TOP => db:seed => db:seed:development => db:seed:development:shop
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered: