adapting to ruby==1.8.7,  activerecord==3.2.14
downgrading rake to 0.8.7