Ruby Datamapper table inheritance with associations
问题 I started learning Datamapper and what I liked about it was that I can write my models with real inheritance. Now I wonder, if it is possible to be more advanced about this: class Event include DataMapper::Resource property :id, Serial property :begin, DateTime property :type, Discriminator end class Talk<Event property :title, String belongs_to :meeting end class Meeting<Event has n, :talks end That code fails to create the :title column for the Talk and obviously, the discriminator column