second()
Instance Public methods
Find the second record. If no order is defined it will order by primary key.
1 2 3 | Person.second # returns the second object fetched by SELECT * FROM people Person.offset( 3 ).second # returns the second object from OFFSET 3 (which is OFFSET 4) Person.where([ "user_name = :u" , { u: user_name }]).second |
Please login to continue.