Fixed migrations script