You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are having an import function which produces huge amounts of this join model items and it is important not to run migrations or hooks during import. So I tried:
DistrictSection.without_callbacks :all do
converted_district_sections = ...
DistrictSection.create! converted_district_sections
end
But the hooks and validations are all still run. This is a Rails 2.3 application.
The text was updated successfully, but these errors were encountered:
Dang, this plugin is really old. Like Rails 1.x and 2.0.x old. I would love to update it for you asap, but I'm leaving for a 2 week vacation in about 2 hours.
Till then, you can do it the old fashion way of having an attr_accessor on your class, then checking it in your callbacks.
I'm having the following model:
We are having an import function which produces huge amounts of this join model items and it is important not to run migrations or hooks during import. So I tried:
But the hooks and validations are all still run. This is a Rails 2.3 application.
The text was updated successfully, but these errors were encountered: