Adding matview and migration for bug 915246.
Merge pull request #1701 from brandonsavage/bug815246-crashes-by-adu

Bug915246 crashes by adu r=selenamarie