iDownloadBlog shows you how to do it.

Head over to iDownloadBlog for the full instructions.

How to Downgrade iOS 8 to iOS 7.1.2| iDownloadBlog