attempting to reverse previous manual changes and implement same changes via active record