tryiing to fix before_migrate error