Guest User

Untitled

a guest
Jun 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Loading development environment (Rails 2.3.2)
  2. >> v = Variant.new
  3. => #<Variant id: nil, product_id: nil, sku: "", price: nil, weight: nil, height: nil, width: nil, depth: nil, deleted_at: nil>
  4. >> o = OptionValue.first
  5. => #<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">
  6. >> v.option_values = [o]
  7. => [#<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">]
  8. >> v.option_values << o
  9. => [#<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">, #<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">]
Add Comment
Please, Sign In to add comment