Guest User

Untitled

a guest
Jan 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ruby-1.9.2-p290 :001 > a = DeviceImage.create(:device_id => 1, :modification => :generic)
  2. => #<DeviceImage id: 1274, device_id: 1, image_file_name: nil, modification: :generic>
  3. ruby-1.9.2-p290 :002 > a.modification
  4. => :generic
  5. ruby-1.9.2-p290 :003 > b = DeviceImage.last
  6. => #<DeviceImage id: 1274, device_id: 1, image_file_name: nil, modification: "generic">
  7. ruby-1.9.2-p290 :004 > b.modification
  8. => "generic"
Add Comment
Please, Sign In to add comment