raise migration error in development if pending migrations
Merge pull request #2844 from akshaymohite/optimization-fixes

raise migration error in development if pending migrations