Created
July 19, 2013 15:33
-
-
Save kshsieh/6040053 to your computer and use it in GitHub Desktop.
diff
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
[9] pry(main)> info.update_attributes(params) | |
(0.1ms) BEGIN | |
Image Load (0.5ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Image') AND `assets`.`viewable_id` = 1 AND `assets`.`viewable_type` = 'User::Info' AND `assets`.`id` IN (4039) ORDER BY `assets`.`position` | |
(2.7ms) UPDATE `user_infos` SET `completion` = '---\n:card: false\n:statement: false\n:bio: false\n:contact_info: false\n:artworks: false\n:publish: false\n:share:\n :twitter: false\n :facebook: false\n :email: false\n :link: false\n', `updated_at` = '2013-07-19 15:24:04' WHERE `user_infos`.`id` = 1 | |
(0.6ms) UPDATE `assets` SET `remote_url` = 'https://s3.amazonaws.com/artsicle.filepicker.testing/tmp/AYRlLfbrS22r4dG7mtbH_Selection_004.png', `filepicker_url` = 'https://www.filepicker.io/api/file/Kb41uMctTeuAxdG57rE7', `attachment_file_size` = 29761, `attachment_file_name` = 'Selection_004.png', `attachment_content_type` = 'image/png' WHERE `assets`.`type` IN ('Image') AND `assets`.`id` = 4039 | |
(0.8ms) SELECT COUNT(*) FROM `assets` WHERE (`assets`.`viewable_id` = 1 AND position = 1) | |
SQL (0.6ms) UPDATE `assets` SET `attachment_processing` = 0 WHERE `assets`.`type` IN ('Image') AND `assets`.`id` = 4039 | |
(5.0ms) COMMIT | |
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
User::Info Load (0.3ms) SELECT `user_infos`.* FROM `user_infos` WHERE `user_infos`.`id` = 1 LIMIT 1 | |
User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
[8] pry(main)> ug.update_attributes(params) | |
(0.3ms) BEGIN | |
Image Load (0.3ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Image') AND `assets`.`viewable_id` = 5 AND `assets`.`viewable_type` = 'UserGroup' AND `assets`.`id` IN (6799) ORDER BY `assets`.`position` | |
UserGroup Exists (0.2ms) SELECT 1 AS one FROM `user_groups` WHERE (`user_groups`.`name` = BINARY 'test' AND `user_groups`.`id` != 5) LIMIT 1 | |
(0.6ms) UPDATE `assets` SET `remote_url` = 'https://s3.amazonaws.com/artsicle.filepicker.testing/tmp/AYRlLfbrS22r4dG7mtbH_Selection_4.png', `filepicker_url` = 'https://www.filepicker.io/api/file/41uMctTeuAxdG57rE7' WHERE `assets`.`type` IN ('Image') AND `assets`.`id` = 6799 | |
(0.4ms) SELECT COUNT(*) FROM `assets` WHERE (`assets`.`viewable_id` = 5 AND position = 1) | |
SQL (0.3ms) UPDATE `assets` SET `attachment_processing` = 0 WHERE `assets`.`type` IN ('Image') AND `assets`.`id` = 6799 | |
(17.4ms) COMMIT | |
UserGroup Load (0.3ms) SELECT `user_groups`.* FROM `user_groups` WHERE `user_groups`.`id` = 5 LIMIT 1 | |
#<NoMethodError: undefined method `user' for #<UserGroup:0x0000000e4a6678>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment