I’ve searched through the forum and google, and to no avail. I cannot
seem to find the solution to my problem. No one has ever defined this
as a rake problem. Anyway, it’s when my db:migrate tries to process
class AddPaymentTypeData < ActiveRecord::Migration
Payment_type.create(:type => 'Check') Payment_type.create(:type => 'Credit Card') Payment_type.create(:type => 'Purchase Order')
that it gives me the error:
Expected /Users/joel/Sites/depot/app/models/payment_type.rb to define
I have a payment_type.rb file:
class PaymentType < ActiveRecord::Base
This is in the right place, in the path that the rake task is
complaining that it isn’t. Does anyone have any idea why this is
happening? I’m sure someone has run into this before. I’m using
rails 2.2.2, ruby 1.8.
Thanks in advance.