Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## find the first field
- >> first = FieldQueue.first
- => #<FieldQueue id: 18318961, plugin_id: 39161, account_id: 2202, client_id: 2902, n1: "up", n2: nil, n3: nil, n4: nil, n5: nil, value_raw: "1", value_float: nil, rrd_key: nil, denormalized_key: nil, time: "2009-05-03 15:14:53", created_at: "2009-05-03 15:14:53">
- ## the last
- >> last = FieldQueue.last
- => #<FieldQueue id: 18318961, plugin_id: 39161, account_id: 2202, client_id: 2902, n1: "up", n2: nil, n3: nil, n4: nil, n5: nil, value_raw: "1", value_float: nil, rrd_key: nil, denormalized_key: nil, time: "2009-05-03 15:14:53", created_at: "2009-05-03 15:14:53">
- ## it's the same field...but look at the count:
- >> FieldQueue.count
- => 78333
Add Comment
Please, Sign In to add comment