Franz,

Try what dm-is-remixable does in such a situation:

http://is.gd/zmyc

Since auto_upgrade! is a class method you should be fine to do

class Zoo
  include DataMapper::Resource
  def self.auto_upgrade!(args = nil)
    DataMapper.logger.warn("Skipping #{self.name}.auto_upgrade! for
whatever reason")
  end
end

Hope that helps

cheers
snusnu

On Tue, May 12, 2009 at 23:35, fbettag <[email protected]> wrote:
>
> Hey guys,
>
> i've been playing around with dm-ldap-adapter all day, the problem is
> that unless i remove my model, autoupgrade is failing.
> Is there any way to "blacklist" repositories (named ldap in my case)
> or models for migration?
>
> Since i was looking into the code i found auto_upgrade methods which
> can have repository_name supplied, thats where i got the idea of
> blacklisting whole repositories.
>
> Any advice would be helpful!
>
> best regards
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to