Fix deprecation in ActiveRecord 4