Adds rails base