Get rails associations from console