Any railroad now having or which may hereafter have tracks running through or across the streets, avenues, alleys or lands of the city, or other public places, shall be required by the board of commissioners to pave and drain the width of its track and two feet on each side of every line of track now constructed or that may hereafter be constructed by such railroad company. If such railroad company shall fail or refuse to comply with the order of the board of commissioners to make such improvements by paving, macadamizing, and draining the same after receiving 30 days' notice to do so, such work may be done by the board of commissioners at the cost and expense of such railroad company. The city shall be entitled to a lien for the full amount of such cost and expense against the property of such railroad company, which may be enforced against such property as provided for enforcement of other liens for paving.