Avoid using the model in the migrations.
Added missing down blocks.