Just skip the 2nd part of the conditional:
```rb
if ActiveRecord::VERSION::MAJOR > 2
  # ...
```