关于rake db:migration的奇怪问题

时间:2011-07-14 20:49:57

标签: ruby-on-rails-3 rake

所有

我遇到了一个奇怪的Ruby问题。

enter image description here

请忽略这些警告信息。我刚刚运行了“rake db:migrate”命令,它确实为我做了迁移,但它也删除了一些CSS文件!当我再次运行此命令时,它不会再出现。

这是正常的还是只是一个奇妙的错误?

我的环境:

  • OS:ubuntu
  • ruby​​ 1.8.7
  • rails 3.0.7 with compass gem
  • 指南针0.11.4

这是我config/compass.rb文件的内容:

require "fancy-buttons"

project_type = :rails
project_path = Compass::AppIntegration::Rails.root
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "public/stylesheets"
sass_dir = "app/stylesheets"
environment = Compass::AppIntegration::Rails.env
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
output_style = :compressed

1 个答案:

答案 0 :(得分:2)

看起来你在初始化的某个地方有一个compass clean电话。