解决方法
看到这个问题
Can I specify in database.yml that a rails environment should have readonly access to the DB?
script/console --sandBox
Can I specify in database.yml that a rails environment should have readonly access to the DB?
script/console --sandBox