Forum: Ruby on Rails Migrations: The same class name form migration and model cau

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
zven (Guest)
on 2006-05-20 00:56
(Received via mailing list)
I need to bootstrap my database when creating schema. My model class and
migration class are the same.

When I trying: ClassName.create :foo => 'bar' in migration I got:

undefined method `create' for

How to avoid this? I think the same class names causes problem, but I
can't change class names.
This topic is locked and can not be replied to.