Fix: ActiveRecord class is not defined.