replace ActiveRecord::VERSION::STRING with ActiveRecord::VERSION::MAJOR