self.class.connection.delete("DELETE FROM #{ci} WHERE #{ci}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")
self.class.connection.delete("DELETE FROM #{cp} WHERE #{cp}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")
self.class.connection.delete("DELETE FROM #{cs} WHERE #{cs}.repository_id = #{id}")
- clear_extra_info_of_changesets
- end
-
- def clear_extra_info_of_changesets
end
end
self.save
end
private :clear_extra_info_of_changesets
+
+ def clear_changesets
+ super
+ clear_extra_info_of_changesets
+ end
+ private :clear_changesets
end