阅读背景:

删除过去允许的任何实例 - Rails

来源:互联网 

Is it possible with Rails to delete anything past a certain limit. For example, if there were 200 posts in a Model post and I wanted to only keep the most recent 100 and delete the old ones, what is the most efficient way to do that? Would it be this? Is there a quicker way?Is it possible with Rails to delete anything pa




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

分享到: