Fixed migrations. Columns must exist to reference them in foreigns.