Getting a.ref is not a function error when upgraded to angularfire 1.2

you should not upgrade your firebase to 3.0 because AngularFire upgrade to 3.0 has not been completed.

See Issue in GitHub : https://github.com/firebase/angularfire/issues/718