Fix activerecord dependency to 4.0.0

Don't depend on beta versions any more.