Remove active record references and precompile assets