Guest User

Untitled

a guest
Jun 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ## find the first field
  2. >> first = FieldQueue.first
  3. => #<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">
  4.  
  5. ## the last
  6. >> last = FieldQueue.last
  7. => #<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">
  8.  
  9. ## it's the same field...but look at the count:
  10.  
  11. >> FieldQueue.count
  12. => 78333
Add Comment
Please, Sign In to add comment