Supporting ActiveRecord::VERSION::MAJOR <= 4