lock activerecord version