Get rid of ActiveRecord's warnings after upgrade to Rails 4.1