Disable Callbacks

Hi All,

I have this requirement where in I am migrating data from database of
one system to database of a new system. The new system is a rails app
and I want my migrations to go via active record validations, however
I want the callbacks to be disabled. I tried using

Model.skip_callback(:save, :after, :my_callback)

But this somehow does not skip the callbacks. Need help !!

Thanks in advance !!

You should be able to reopen your models and use skip_callback. Example:

skip_callback :validate, :before, :save, :update, :destroy, etc

Oscar Del B.
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

Oh, I just realized that you tried that already, can you post some code?

Oscar Del B.
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)