generates Rails structure