How to make a database field read-only in Rails?

前端 未结 0 1904
北海茫月
北海茫月 2021-02-12 08:41

I have a database table with a certain field which should be impossible to update once it has been inserted to the database. How do I tell my model that it shouldn\'t allow upda

相关标签:
回答
  • 消灭零回复
提交回复
热议问题