I had a Magento2 version 2.0.5 and I upgraded it to Magento 2.1.0rc1 using composer. I ran the command for setup upgrade and db schema upgrade.
After upgrade I have faced some comparability issues with my custom extension so I downgraded it to 2.0.7 using composer. and ran below commands
composer require magento/product-community-edition 2.0.7 --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
Now Magento is not working and its giving me error that version of my certain modules in db is different then they are in file system. Any idea what I did wrong and how to get it back ?