Cleaning migrations.
Fixing resource log creation.