fix NoMethodError undefined method after_commit