Fix mysql issue on Rails 3.0