HandlerSocket for ActiveRecord; depends handlersocket gem https://github.com/miyucy/handlersocket