On Mon, Dec 27, 2010 at 11:55 AM, Joe Kutner <[email protected]> wrote:
> Is it possible to use DataMapper with multiple repositories such that > each repository has a different schema? For example, if I have two > model classes, Foo and Bar, can I persist Foo to :default and Bar > to :external without being able to do it "visa versa"? > Sure. e.g.: class Foo include DataMapper::Resource # persists to :default end class Bar include DataMapper::Resource def self.repository_name :external end end > > How would I configure this? Is there a better way to partition my > model? > > Thanks > > -j > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<datamapper%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. > > -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
