Excellent! Thank you both. On Dec 28, 10:27 am, RipTheJacker <[email protected]> wrote: > Brian is correct except that "repository_name" should be > "default_repository_name" > > On Dec 27, 3:01 pm, "Brian P O'Rourke" <[email protected]> wrote: > > > > > > > > > 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%2bunsubscr...@googlegrou > > > ps.com> > > > . > > > 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.
