The Neurochild wrote:
>> delete_foreign_key :orders, :customer_id
> 
> I'm not sure, but I think there's something missing: the class name.
> Or isn't that necessary here? If yes, can we put a name to it or what
> kind of class is it?
> 

You don't need a class since you're just building a sql statement. You 
need to deal with tables and columns, not classes. Look back at how I 
defined foreign_key and delete_foreign_key. delete_foreign_key assumes a 
naming convention that is used in foreign_key. If you use a different 
naming convention for your foreign keys, adjust both methods 
accordingly.

Peace.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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