Added association only if greater or equal to 4.1
Added test specific to Activerecord version “>= 4.1”
Solved the bug of recrsive restore