【问题标题】:ExceptionNotifier and rake:db:migrateExceptionNotifier 和 rake:db:migrate
【发布时间】:2013-07-30 02:21:00
【问题描述】:

应用程序和迁移在本地运行良好,但 rake db:migrate 在服务器上失败并出现以下错误:

undefined method `new' for ExceptionNotifier:Module

我尝试运行的唯一迁移在本地通过,如下所示:

def change
  change_table :users do |t|
    t.remove :admin
  end
  change_column :users, :state, :string, :default => "client"
end

不知道是什么原因造成的。是的,我正在使用exception notification gem。有什么想法吗?谢谢!

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 rails-migrations exception-notification


    【解决方案1】:

    好像是异常通知器的问题

    请看下面这两个链接,希望对你有帮助

    https://gist.github.com/shu0115/5820702

    谢谢

    【讨论】:

    • 啊,谢谢!我也没有看到 gem 页面的新链接。
    猜你喜欢
    • 2011-07-12
    • 1970-01-01
    • 2013-04-17
    • 1970-01-01
    • 2011-08-23
    • 2018-06-15
    • 2010-09-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多