# This provides convenience-methods to directly operate on the database, without
# relying on the existence of model methods (except for `id`).
# It allows to perform data migrations which won't fail because of renamed
# or removed model-methods.
end
end
end
end
# create_unsafe skips callbacks and validations.
record.save(validate: false)
end
# update_columns skips callbacks and validations.
end
end
# update_attributes! calls callbacks and validations (by calling save!).
end
# {skip,set}_all_callbacks was found on
end
end
end
end
end
end
end
end
end