阅读背景:

如何让ActiveRecord在Ruby on Rails中显示下一个id(最后+ 1)?

来源:互联网 

Is there a compact way with ActiveRecord to query for what id it's going to use next if an object was going to be persisted to the database? In SQL, a query like this would look something like:Is there a compact way with ActiveRecord to que




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: