lock activerecord to working version