Remove references to defunct method

0c9dafff5460f93d28edfc34dc884b1660492856 removed
optionally_activerecord_railtie, but missed Rakefile's usage

See #3673

#### Verification 
 - [ ] rake spec