ame*_*ior 1 ruby postgresql activerecord ruby-on-rails
{ topic: "Foo", opportunity: Opportunity.limit(15)[0] },
{ topic: "Foo", opportunity: Opportunity.limit(15)[2] },
{ topic: "Foo", opportunity: Opportunity.limit(15)[7] },
{ topic: "Foo", opportunity: Opportunity.limit(15)[9] },
{ topic: "Foo", opportunity: Opportunity.limit(15)[11]}
Run Code Online (Sandbox Code Playgroud)
Opportunity.limit(15)[n]Active Record 不提供任何便利功能吗?