327 Make it fit for ActiveRecord 4.0