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

前端 未结 0 538
萌比男神i
萌比男神i 2021-02-12 08:43

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

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