diff --git a/app/models/concerns/empty_metadata.rb b/app/models/concerns/empty_metadata.rb index 3f3707480..0f8fa5927 100644 --- a/app/models/concerns/empty_metadata.rb +++ b/app/models/concerns/empty_metadata.rb @@ -2,7 +2,7 @@ module EmptyMetadata extend ActiveSupport::Concern included do - after_create :create_empty_metadata + after_commit :create_empty_metadata, on: :create end def create_empty_metadata