尝试执行此操作,但在使用
运行时作业失败Exception: NameError
Error: uninitialized constant ActiveRecord
我正在使用Rails 4.2,并已从application.rb中的依赖项中删除了活动记录,如下所示:
#config/application.rb
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_job/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"