我正在使用一个已经存在并被其他应用程序使用的数据库。
例如:
class Foo has n :components # => the table name here should be COMPONENT, but datamapper uses COMPONENTS end
更改模型本身的名称。
class Component # ... storage_names[:default] = 'component' end