If a model is described as:
class Topic
include DataMapper::Resource
property :somestring, String, :length => 255
property :topic_id, Integer
belongs_to :topic
has n, :topics, :through => DataMapper::Resource
is :list, :scope => [:topic_id]
end
The migration created a @ table in the database that only has one row – @
Created by smoofles - 2008-12-20 21:04:45 UTC
Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/724
该提问来源于开源项目:datamapper/dm-core