Reset create callbacks for Issues/MRs while importing GitHub projects

This commit is contained in:
Douglas Barbosa Alexandre 2017-05-11 17:30:56 -03:00
parent c5e4e676e3
commit e901d1209e

View file

@ -7,6 +7,7 @@ module Github
class MergeRequest < ::MergeRequest
self.table_name = 'merge_requests'
self.reset_callbacks :create
self.reset_callbacks :save
self.reset_callbacks :commit
self.reset_callbacks :update
@ -17,6 +18,7 @@ module Github
self.table_name = 'issues'
self.reset_callbacks :save
self.reset_callbacks :create
self.reset_callbacks :commit
self.reset_callbacks :update
self.reset_callbacks :validate