adding rails structure