add rails structure