I have a migration that is failing. I am trying to create new records in a table. class BasicAnswerTypes < ActiveRecord::Migration def self.up # this adds basic answer types and response types to the database ResponseType.create :name => "boolean" end def self.down ResponseType.find_by_name("boolean").destroy end end when I run rake migrate i get (in /home/dupontct/clinicalsultan) rake aborted! uninitialized constant BasicAnswerTypes::ResponseType ResponseType is a valid model that works with the rest of my rails app. What am i doing wrong here? Thanks Charles -- Charles Dupont Computer System Analyst School of Medicine Department of Biostatistics Vanderbilt University
Hello Charles ! 2005/10/31, Charles Dupont <charles.dupont@vanderbilt.edu>:> (in /home/dupontct/clinicalsultan) > rake aborted! > uninitialized constant BasicAnswerTypes::ResponseTypeRequire response_type, and you'll be fine. There was a problem with migrations which did not do the automatic requiring of models and other files. Hope that helps, François _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails