Created
May 2, 2009 04:46
-
-
Save knowtheory/105413 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> bo = Pet.get 1 | |
| Sat, 02 May 2009 04:53:31 GMT ~ debug ~ (0.000099) SET sql_auto_is_null = 0 | |
| Sat, 02 May 2009 04:53:31 GMT ~ debug ~ (0.000093) SET SESSION sql_mode = 'ANSI,NO_AUTO_VALUE_ON_ZERO,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL' | |
| Sat, 02 May 2009 04:53:31 GMT ~ debug ~ (0.000333) SELECT `id`, `name`, `kind` FROM `pets` WHERE (`id` = 1) ORDER BY `id` LIMIT 1 | |
| => #<Pet id=1 name="Bo" kind="Portugese Water Dog"> | |
| >> bo.update_attributes(:name => "Bobobo") | |
| Sat, 02 May 2009 04:54:00 GMT ~ debug ~ (0.040384) UPDATE `pets` SET `name` = 'Bobobo' WHERE (`id` = 1) | |
| => true | |
| >> Pet.get(1) | |
| Sat, 02 May 2009 04:54:12 GMT ~ debug ~ (0.000331) SELECT `id`, `name`, `kind` FROM `pets` WHERE (`id` = 1) ORDER BY `id` LIMIT 1 | |
| => #<Pet id=1 name="Bobobo" kind="Portugese Water Dog"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment