initialized rails structure