Rails will track row version numbers and perform optimistic locking if a table contains lock_version.
Rails会跟踪行版本号和执行乐观锁定,如果表中包含lock_version。
如果一个表有lock_version这个列,则Rails会跟踪一行的版本号并执行乐观锁。
如果表中包含lock_version字段,Rails会自动跟踪行版本号,并对记录加乐观锁。
【实 × 新 × 奇】http://www.lycom.de/ 最新报道Ruby语言、Rails框架、Ubuntu、MacOSX和软件技术信息
订阅 full-text RSS 或者 comments RSS.
Interesting links can be found at del.icio.us or by subscribing to my del.icio.us feed
Powered by SimpleLog