Init rails structure