changed setup for websocket activerecord