Get rails associations from consol