Advertisement
jarocki_art

tables

Jul 6th, 2019
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. irb(main):002:0> Testimonial.all
  2. Testimonial Load (0.2ms) SELECT "testimonials".* FROM "testimonials" LIMIT $1 [["LIMIT", 11]]
  3. => #<ActiveRecord::Relation [#<Testimonial id: 16, name: "zvfasdfasdf", patronymic: "", surname: "", userpic: "", company: "", object_photo_1: nil, object_photo_2: "", object_photo_3: "", video: "", text: "asdfasdf", created_at: "2019-07-06 20:08:16", updated_at: "2019-07-06 20:08:16">]>
  4. irb(main):003:0> ActiveStorage::Attachment.all
  5. ActiveStorage::Attachment Load (0.9ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" LIMIT $1 [["LIMIT", 11]]
  6. => #<ActiveRecord::Relation [#<ActiveStorage::Attachment id: 9, name: "object_photo_1", record_type: "Testimonial", record_id: 16, blob_id: 9, created_at: "2019-07-06 20:08:16">]>
  7. irb(main):004:0> ActiveStorage::Blob.all
  8. ActiveStorage::Blob Load (0.8ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" LIMIT $1 [["LIMIT", 11]]
  9. => #<ActiveRecord::Relation [#<ActiveStorage::Blob id: 9, key: "xx4ycnsTNgLMAtrPMRAPQsP2", filename: "map.png", content_type: "image/png", metadata: {"identified"=>true, "width"=>2561, "height"=>1325, "analyzed"=>true}, byte_size: 983157, checksum: "OH5LyOEoHmCyVamDhfFvnA==", created_at: "2019-07-06 20:08:16">]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement