Retab smart_migrate.rb module

Retabs completely for PR #2212