test criteria if data has been migrated properly or not code example
Example: how to resolve failing tests after database migration
# in project directory
RAILS_ENV=test bundle exec rake db:migrate
# in project directory
RAILS_ENV=test bundle exec rake db:migrate