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
this migration:

class AddPaymentTypeData < ActiveRecord::Migration
  def self.up
    Payment_type.delete_all

    Payment_type.create(:type => 'Check')
    Payment_type.create(:type => 'Credit Card')
    Payment_type.create(:type => 'Purchase Order')
  end

  def self.down
    Payment_type.delete_all
  end
end

that it gives me the error:
rake aborted!
Expected /Users/joel/Sites/depot/app/models/payment_type.rb to define
Payment_type


I have a payment_type.rb  file:

class PaymentType < ActiveRecord::Base

  has_many :orders

end

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.

Groove

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to