added relationship getters to rails