community_engine 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (737) hide show
  1. data/.gitignore +15 -0
  2. data/.gitmodules +0 -0
  3. data/.travis.yml +9 -0
  4. data/CHANGELOG +118 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +30 -0
  7. data/README.markdown +188 -0
  8. data/Rakefile +54 -0
  9. data/UPGRADING.markdown +93 -0
  10. data/about.yml +7 -0
  11. data/app/assets/images/auth/facebook_32.png +0 -0
  12. data/app/assets/images/auth/facebook_64.png +0 -0
  13. data/app/assets/images/auth/google_32.png +0 -0
  14. data/app/assets/images/auth/google_64.png +0 -0
  15. data/app/assets/images/auth/linked_in_32.png +0 -0
  16. data/app/assets/images/auth/linked_in_64.png +0 -0
  17. data/app/assets/images/auth/open_id_32.png +0 -0
  18. data/app/assets/images/auth/remove.png +0 -0
  19. data/app/assets/images/auth/twitter_32.png +0 -0
  20. data/app/assets/images/auth/twitter_64.png +0 -0
  21. data/app/assets/images/bg_h6btn.gif +0 -0
  22. data/app/assets/images/bg_navbar.gif +0 -0
  23. data/app/assets/images/clearbits/bg_rounded.gif +0 -0
  24. data/app/assets/images/clearbits/comment.gif +0 -0
  25. data/app/assets/images/clearbits/lock.gif +0 -0
  26. data/app/assets/images/clearbits/smile.gif +0 -0
  27. data/app/assets/images/close.gif +0 -0
  28. data/app/assets/images/cropper/marqueeHoriz.gif +0 -0
  29. data/app/assets/images/cropper/marqueeVert.gif +0 -0
  30. data/app/assets/images/feed.png +0 -0
  31. data/app/assets/images/icon_missing_medium.gif +0 -0
  32. data/app/assets/images/icon_missing_thumb.gif +0 -0
  33. data/app/assets/images/icons/31.png +0 -0
  34. data/app/assets/images/icons/52.png +0 -0
  35. data/app/assets/images/icons/accept.png +0 -0
  36. data/app/assets/images/icons/activity_default.png +0 -0
  37. data/app/assets/images/icons/add.png +0 -0
  38. data/app/assets/images/icons/book.png +0 -0
  39. data/app/assets/images/icons/bullet_arrow_down.png +0 -0
  40. data/app/assets/images/icons/bullet_arrow_down_50.png +0 -0
  41. data/app/assets/images/icons/clipping.png +0 -0
  42. data/app/assets/images/icons/comment.png +0 -0
  43. data/app/assets/images/icons/comments.png +0 -0
  44. data/app/assets/images/icons/date.png +0 -0
  45. data/app/assets/images/icons/delete.png +0 -0
  46. data/app/assets/images/icons/email.png +0 -0
  47. data/app/assets/images/icons/email_edit.png +0 -0
  48. data/app/assets/images/icons/email_go.png +0 -0
  49. data/app/assets/images/icons/email_open.png +0 -0
  50. data/app/assets/images/icons/group_go.png +0 -0
  51. data/app/assets/images/icons/heart.png +0 -0
  52. data/app/assets/images/icons/heart_add.png +0 -0
  53. data/app/assets/images/icons/heart_off.png +0 -0
  54. data/app/assets/images/icons/ical.gif +0 -0
  55. data/app/assets/images/icons/page_white.png +0 -0
  56. data/app/assets/images/icons/page_white_magnify.png +0 -0
  57. data/app/assets/images/icons/picture.png +0 -0
  58. data/app/assets/images/icons/poll.png +0 -0
  59. data/app/assets/images/icons/post.png +0 -0
  60. data/app/assets/images/icons/printer.png +0 -0
  61. data/app/assets/images/icons/rss.png +0 -0
  62. data/app/assets/images/icons/slides.png +0 -0
  63. data/app/assets/images/icons/tag_blue.png +0 -0
  64. data/app/assets/images/icons/user.png +0 -0
  65. data/app/assets/images/icons/user_add.png +0 -0
  66. data/app/assets/images/icons/user_edit.png +0 -0
  67. data/app/assets/images/icons/user_go.png +0 -0
  68. data/app/assets/images/icons/vote.png +0 -0
  69. data/app/assets/images/icons/world.png +0 -0
  70. data/app/assets/images/icons/wrench.png +0 -0
  71. data/app/assets/images/logo.gif +0 -0
  72. data/app/assets/images/reply_background.png +0 -0
  73. data/app/assets/images/search.gif +0 -0
  74. data/app/assets/images/spinner.gif +0 -0
  75. data/app/assets/images/spinner_black.gif +0 -0
  76. data/app/assets/images/spinner_bounce.gif +0 -0
  77. data/app/assets/images/swf/choose.png +0 -0
  78. data/app/assets/images/swf/line_grapher.swf +0 -0
  79. data/app/assets/images/swf/swfupload.swf +0 -0
  80. data/app/assets/images/thumb.gif +0 -0
  81. data/app/assets/javascripts/builder.js +136 -0
  82. data/app/assets/javascripts/calendarview.js +839 -0
  83. data/app/assets/javascripts/community_engine.js +20 -0
  84. data/app/assets/javascripts/cropper.css +182 -0
  85. data/app/assets/javascripts/cropper.js +566 -0
  86. data/app/assets/javascripts/forum.js +73 -0
  87. data/app/assets/javascripts/lightbox.js +151 -0
  88. data/app/assets/javascripts/prototip-min.js +27 -0
  89. data/app/assets/javascripts/rails.js +202 -0
  90. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/css/advimage.css +84 -0
  91. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/editor_plugin.js +52 -0
  92. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/editor_plugin_src.js +45 -0
  93. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/image.htm +180 -0
  94. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/img/sample.gif +0 -0
  95. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/js/functions.js +508 -0
  96. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/langs/en.js +3 -0
  97. data/app/assets/javascripts/tinymce/plugins/curblyadvimage/langs/en_dlg.js +43 -0
  98. data/app/assets/stylesheets/community_engine.css +6 -0
  99. data/app/assets/stylesheets/forum.css +605 -0
  100. data/app/assets/stylesheets/lightbox.css +38 -0
  101. data/app/assets/stylesheets/prototip.css +73 -0
  102. data/app/assets/stylesheets/reset-fonts-grids.css +8 -0
  103. data/app/assets/stylesheets/screen.css +977 -0
  104. data/app/controllers/activities_controller.rb +38 -0
  105. data/app/controllers/admin_controller.rb +80 -0
  106. data/app/controllers/ads_controller.rb +85 -0
  107. data/app/controllers/albums_controller.rb +106 -0
  108. data/app/controllers/authorizations_controller.rb +41 -0
  109. data/app/controllers/base_controller.rb +151 -0
  110. data/app/controllers/categories_controller.rb +118 -0
  111. data/app/controllers/clippings_controller.rb +192 -0
  112. data/app/controllers/comment_sweeper.rb +35 -0
  113. data/app/controllers/comments_controller.rb +179 -0
  114. data/app/controllers/event_sweeper.rb +24 -0
  115. data/app/controllers/events_controller.rb +173 -0
  116. data/app/controllers/favorite_sweeper.rb +29 -0
  117. data/app/controllers/favorites_controller.rb +36 -0
  118. data/app/controllers/forums_controller.rb +71 -0
  119. data/app/controllers/friendships_controller.rb +126 -0
  120. data/app/controllers/homepage_features_controller.rb +68 -0
  121. data/app/controllers/invitations_controller.rb +46 -0
  122. data/app/controllers/messages_controller.rb +95 -0
  123. data/app/controllers/metro_areas_controller.rb +68 -0
  124. data/app/controllers/moderators_controller.rb +26 -0
  125. data/app/controllers/monitorships_controller.rb +20 -0
  126. data/app/controllers/page_sweeper.rb +33 -0
  127. data/app/controllers/pages_controller.rb +70 -0
  128. data/app/controllers/password_resets_controller.rb +52 -0
  129. data/app/controllers/photo_manager_controller.rb +11 -0
  130. data/app/controllers/photos_controller.rb +189 -0
  131. data/app/controllers/post_sweeper.rb +36 -0
  132. data/app/controllers/posts_controller.rb +252 -0
  133. data/app/controllers/rsvps_controller.rb +77 -0
  134. data/app/controllers/sb_posts_controller.rb +149 -0
  135. data/app/controllers/sessions_controller.rb +34 -0
  136. data/app/controllers/sitemap_controller.rb +21 -0
  137. data/app/controllers/statistics_controller.rb +34 -0
  138. data/app/controllers/taggable_sweeper.rb +38 -0
  139. data/app/controllers/tags_controller.rb +104 -0
  140. data/app/controllers/theme_controller.rb +60 -0
  141. data/app/controllers/topics_controller.rb +122 -0
  142. data/app/controllers/users_controller.rb +426 -0
  143. data/app/controllers/vote_sweeper.rb +16 -0
  144. data/app/controllers/votes_controller.rb +24 -0
  145. data/app/helpers/base_helper.rb +290 -0
  146. data/app/helpers/forums_helper.rb +31 -0
  147. data/app/helpers/friendships_helper.rb +16 -0
  148. data/app/helpers/monitorships_helper.rb +2 -0
  149. data/app/helpers/posts_helper.rb +17 -0
  150. data/app/helpers/sitemap_helper.rb +7 -0
  151. data/app/helpers/users_helper.rb +6 -0
  152. data/app/models/ad.rb +43 -0
  153. data/app/models/album.rb +12 -0
  154. data/app/models/asset.rb +3 -0
  155. data/app/models/authorization.rb +60 -0
  156. data/app/models/category.rb +20 -0
  157. data/app/models/choice.rb +13 -0
  158. data/app/models/clipping.rb +78 -0
  159. data/app/models/clipping_image.rb +9 -0
  160. data/app/models/comment.rb +122 -0
  161. data/app/models/country.rb +24 -0
  162. data/app/models/event.rb +61 -0
  163. data/app/models/facebook_profile.rb +32 -0
  164. data/app/models/facebook_publisher.rb +45 -0
  165. data/app/models/favorite.rb +47 -0
  166. data/app/models/forum.rb +22 -0
  167. data/app/models/friendship.rb +64 -0
  168. data/app/models/friendship_status.rb +3 -0
  169. data/app/models/homepage_feature.rb +15 -0
  170. data/app/models/invitation.rb +36 -0
  171. data/app/models/message.rb +84 -0
  172. data/app/models/message_thread.rb +33 -0
  173. data/app/models/metro_area.rb +16 -0
  174. data/app/models/moderatorship.rb +8 -0
  175. data/app/models/monitorship.rb +6 -0
  176. data/app/models/page.rb +8 -0
  177. data/app/models/photo.rb +83 -0
  178. data/app/models/poll.rb +39 -0
  179. data/app/models/post.rb +201 -0
  180. data/app/models/role.rb +5 -0
  181. data/app/models/rsvp.rb +24 -0
  182. data/app/models/sb_post.rb +67 -0
  183. data/app/models/state.rb +4 -0
  184. data/app/models/topic.rb +72 -0
  185. data/app/models/twitter_profile.rb +20 -0
  186. data/app/models/user.rb +483 -0
  187. data/app/models/user_notifier.rb +140 -0
  188. data/app/models/user_session.rb +14 -0
  189. data/app/models/vote.rb +19 -0
  190. data/app/views/activities/_activity.html.haml +56 -0
  191. data/app/views/activities/_icon.html.haml +14 -0
  192. data/app/views/activities/_unhandled_item.html.haml +1 -0
  193. data/app/views/activities/destroy.js.rjs +1 -0
  194. data/app/views/activities/index.html.haml +16 -0
  195. data/app/views/activities/network.html.haml +14 -0
  196. data/app/views/admin/comments.html.haml +71 -0
  197. data/app/views/admin/events.html.haml +33 -0
  198. data/app/views/admin/messages.html.haml +4 -0
  199. data/app/views/admin/users.html.haml +69 -0
  200. data/app/views/ads/edit.html.haml +46 -0
  201. data/app/views/ads/index.html.haml +43 -0
  202. data/app/views/ads/new.html.haml +44 -0
  203. data/app/views/ads/show.html.haml +36 -0
  204. data/app/views/albums/_form.html.haml +14 -0
  205. data/app/views/albums/edit.html.haml +16 -0
  206. data/app/views/albums/new.html.haml +15 -0
  207. data/app/views/albums/show.html.haml +32 -0
  208. data/app/views/base/_homepage_banner_message.html.haml +19 -0
  209. data/app/views/base/advertise.html.haml +8 -0
  210. data/app/views/base/plaxo.html.haml +5 -0
  211. data/app/views/base/site_index.html.haml +35 -0
  212. data/app/views/categories/_tips.html.haml +11 -0
  213. data/app/views/categories/edit.html.haml +34 -0
  214. data/app/views/categories/index.html.haml +30 -0
  215. data/app/views/categories/new.html.haml +9 -0
  216. data/app/views/categories/show.html.haml +45 -0
  217. data/app/views/clippings/_clipping.html.haml +18 -0
  218. data/app/views/clippings/_images.html.haml +3 -0
  219. data/app/views/clippings/_meta.html.haml +26 -0
  220. data/app/views/clippings/edit.html.haml +26 -0
  221. data/app/views/clippings/index.html.haml +35 -0
  222. data/app/views/clippings/load_images_from_uri.js.rjs +1 -0
  223. data/app/views/clippings/new.html.haml +29 -0
  224. data/app/views/clippings/new_clipping.html.haml +91 -0
  225. data/app/views/clippings/show.html.haml +56 -0
  226. data/app/views/clippings/site_index.html.haml +34 -0
  227. data/app/views/comments/_comment.html.haml +42 -0
  228. data/app/views/comments/_comment_form.html.haml +50 -0
  229. data/app/views/comments/_edit_form.html.haml +29 -0
  230. data/app/views/comments/create.js.rjs +20 -0
  231. data/app/views/comments/edit.js.rjs +7 -0
  232. data/app/views/comments/index.html.haml +23 -0
  233. data/app/views/comments/update.js.rjs +9 -0
  234. data/app/views/events/_event.html.haml +32 -0
  235. data/app/views/events/_subscribe.html.haml +7 -0
  236. data/app/views/events/edit.html.haml +34 -0
  237. data/app/views/events/index.html.haml +22 -0
  238. data/app/views/events/new.html.haml +32 -0
  239. data/app/views/events/show.html.haml +29 -0
  240. data/app/views/facebook/_fb_require.html.haml +11 -0
  241. data/app/views/favorites/_favorite.html.haml +5 -0
  242. data/app/views/favorites/create.js.rjs +17 -0
  243. data/app/views/favorites/destroy.js.rjs +14 -0
  244. data/app/views/favorites/index.html.haml +10 -0
  245. data/app/views/favorites/show.html.haml +13 -0
  246. data/app/views/forums/_form.html.haml +21 -0
  247. data/app/views/forums/edit.html.haml +11 -0
  248. data/app/views/forums/index.html.haml +70 -0
  249. data/app/views/forums/new.html.haml +9 -0
  250. data/app/views/forums/show.html.haml +85 -0
  251. data/app/views/friendships/_friendship.html.haml +16 -0
  252. data/app/views/friendships/_friendships.html.erb +14 -0
  253. data/app/views/friendships/accepted.html.haml +13 -0
  254. data/app/views/friendships/denied.html.haml +8 -0
  255. data/app/views/friendships/index.html.erb +3 -0
  256. data/app/views/friendships/index.xml.builder +29 -0
  257. data/app/views/friendships/pending.html.haml +7 -0
  258. data/app/views/friendships/show.html.haml +12 -0
  259. data/app/views/homepage_features/edit.html.haml +31 -0
  260. data/app/views/homepage_features/index.html.haml +30 -0
  261. data/app/views/homepage_features/new.html.haml +30 -0
  262. data/app/views/homepage_features/show.html.haml +29 -0
  263. data/app/views/invitations/index.html.erb +16 -0
  264. data/app/views/invitations/new.html.haml +33 -0
  265. data/app/views/layouts/application.html.haml +59 -0
  266. data/app/views/messages/_form.html.haml +24 -0
  267. data/app/views/messages/_inbox.html.haml +41 -0
  268. data/app/views/messages/_sent.html.haml +34 -0
  269. data/app/views/messages/_sidebar_nav.html.haml +9 -0
  270. data/app/views/messages/index.html.haml +8 -0
  271. data/app/views/messages/new.html.haml +10 -0
  272. data/app/views/messages/show.html.haml +40 -0
  273. data/app/views/metro_areas/edit.html.haml +16 -0
  274. data/app/views/metro_areas/index.html.haml +28 -0
  275. data/app/views/metro_areas/new.html.haml +16 -0
  276. data/app/views/metro_areas/show.html.haml +22 -0
  277. data/app/views/moderators/_toggle.html.erb +14 -0
  278. data/app/views/moderators/create.js.rjs +5 -0
  279. data/app/views/moderators/destroy.js.rjs +1 -0
  280. data/app/views/monitorships/create.js.rjs +4 -0
  281. data/app/views/monitorships/destroy.js.rjs +4 -0
  282. data/app/views/pages/_form.html.haml +25 -0
  283. data/app/views/pages/edit.html.haml +16 -0
  284. data/app/views/pages/edit.html.haml~ +16 -0
  285. data/app/views/pages/index.html.haml +34 -0
  286. data/app/views/pages/index.html.haml~ +28 -0
  287. data/app/views/pages/new.html.haml +14 -0
  288. data/app/views/pages/show.html.haml +8 -0
  289. data/app/views/pages/show.html.haml~ +6 -0
  290. data/app/views/password_resets/edit.html.haml +16 -0
  291. data/app/views/password_resets/new.html.haml +13 -0
  292. data/app/views/photo_manager/index.html.haml +49 -0
  293. data/app/views/photos/_manage_photos.html.haml +14 -0
  294. data/app/views/photos/_show_image_list.html.haml +24 -0
  295. data/app/views/photos/edit.html.haml +39 -0
  296. data/app/views/photos/index.html.haml +28 -0
  297. data/app/views/photos/index.xml.builder +9 -0
  298. data/app/views/photos/manage_photos.js.rjs +5 -0
  299. data/app/views/photos/new.html.haml +51 -0
  300. data/app/views/photos/recent.html.haml +8 -0
  301. data/app/views/photos/show.html.haml +53 -0
  302. data/app/views/polls/_edit.html.haml +15 -0
  303. data/app/views/polls/_excerpt.html.haml +4 -0
  304. data/app/views/polls/_new.html.haml +10 -0
  305. data/app/views/polls/_poll_ui.html.haml +37 -0
  306. data/app/views/polls/_polls_sidebar.html.haml +8 -0
  307. data/app/views/posts/_author_profile.html.haml +21 -0
  308. data/app/views/posts/_favorited_post.html.haml +10 -0
  309. data/app/views/posts/_post.html.haml +29 -0
  310. data/app/views/posts/_send_to_friend.html.erb +29 -0
  311. data/app/views/posts/_sidebar_post.html.haml +1 -0
  312. data/app/views/posts/edit.html.haml +48 -0
  313. data/app/views/posts/featured.html.haml +19 -0
  314. data/app/views/posts/index.html.haml +23 -0
  315. data/app/views/posts/manage.html.haml +66 -0
  316. data/app/views/posts/new.html.haml +67 -0
  317. data/app/views/posts/popular.html.haml +35 -0
  318. data/app/views/posts/preview.html.haml +27 -0
  319. data/app/views/posts/recent.html.haml +29 -0
  320. data/app/views/posts/show.html.haml +85 -0
  321. data/app/views/rsvps/edit.html.haml +9 -0
  322. data/app/views/rsvps/new.html.haml +9 -0
  323. data/app/views/sb_posts/_dummy_forum_post.html.erb +13 -0
  324. data/app/views/sb_posts/_edit.html.erb +31 -0
  325. data/app/views/sb_posts/_post.xml.builder +10 -0
  326. data/app/views/sb_posts/_reply_form.html.haml +37 -0
  327. data/app/views/sb_posts/_sb_post.html.haml +34 -0
  328. data/app/views/sb_posts/create.js.rjs +16 -0
  329. data/app/views/sb_posts/edit.html.erb +13 -0
  330. data/app/views/sb_posts/edit.js.rjs +6 -0
  331. data/app/views/sb_posts/index.html.haml +55 -0
  332. data/app/views/sb_posts/index.xml.builder +20 -0
  333. data/app/views/sb_posts/monitored.html.erb +55 -0
  334. data/app/views/sb_posts/monitored.xml.builder +15 -0
  335. data/app/views/sb_posts/update.js.rjs +5 -0
  336. data/app/views/sessions/new.html.haml +27 -0
  337. data/app/views/shared/_admin_nav.html.haml +19 -0
  338. data/app/views/shared/_bio_help.html.haml +4 -0
  339. data/app/views/shared/_box.html.haml +3 -0
  340. data/app/views/shared/_contact.html.haml +5 -0
  341. data/app/views/shared/_explore.html.haml +9 -0
  342. data/app/views/shared/_footer_content.html.haml +13 -0
  343. data/app/views/shared/_header.html.haml +42 -0
  344. data/app/views/shared/_location_chooser.html.haml +21 -0
  345. data/app/views/shared/_login_sidebar.html.haml +14 -0
  346. data/app/views/shared/_messages.html.haml +8 -0
  347. data/app/views/shared/_scripts_and_styles.html.haml +12 -0
  348. data/app/views/shared/_user_menu.html.haml +21 -0
  349. data/app/views/sitemap/index.html.haml +21 -0
  350. data/app/views/sitemap/index.xml.builder +28 -0
  351. data/app/views/statistics/activities.xml.builder +33 -0
  352. data/app/views/statistics/index.html.haml +56 -0
  353. data/app/views/tags/edit.html.haml +19 -0
  354. data/app/views/tags/index.html.haml +25 -0
  355. data/app/views/tags/manage.html.haml +37 -0
  356. data/app/views/tags/show.html.haml +65 -0
  357. data/app/views/topics/_form.html.haml +28 -0
  358. data/app/views/topics/_recent_topics_sidebar.haml +22 -0
  359. data/app/views/topics/edit.html.haml +10 -0
  360. data/app/views/topics/new.html.haml +21 -0
  361. data/app/views/topics/show.html.haml +107 -0
  362. data/app/views/topics/show.xml.builder +15 -0
  363. data/app/views/user_notifier/activation.text.erb +11 -0
  364. data/app/views/user_notifier/comment_notice.text.erb +8 -0
  365. data/app/views/user_notifier/follow_up_comment_notice.text.erb +15 -0
  366. data/app/views/user_notifier/follow_up_comment_notice_anonymous.text.erb +18 -0
  367. data/app/views/user_notifier/forgot_username.text.erb +8 -0
  368. data/app/views/user_notifier/friendship_accepted.text.erb +8 -0
  369. data/app/views/user_notifier/friendship_request.text.erb +8 -0
  370. data/app/views/user_notifier/message_notification.text.erb +14 -0
  371. data/app/views/user_notifier/new_forum_post_notice.text.erb +14 -0
  372. data/app/views/user_notifier/password_reset_instructions.text.erb +10 -0
  373. data/app/views/user_notifier/post_recommendation.text.erb +32 -0
  374. data/app/views/user_notifier/signup_invitation.text.erb +14 -0
  375. data/app/views/user_notifier/signup_notification.text.erb +16 -0
  376. data/app/views/users/_dashboard_nav.html.haml +40 -0
  377. data/app/views/users/_omniauth_connect.html.haml +21 -0
  378. data/app/views/users/_profile_completeness.html.haml +21 -0
  379. data/app/views/users/_profile_user_info_sidebar.html.haml +50 -0
  380. data/app/views/users/_search_options.html.haml +10 -0
  381. data/app/views/users/_sidebar_user.html.haml +8 -0
  382. data/app/views/users/_user.html.haml +31 -0
  383. data/app/views/users/crop_profile_photo.html.haml +40 -0
  384. data/app/views/users/dashboard.html.haml +44 -0
  385. data/app/views/users/edit.html.haml +75 -0
  386. data/app/views/users/edit_account.html.haml +64 -0
  387. data/app/views/users/forgot_username.html.haml +13 -0
  388. data/app/views/users/index.html.haml +18 -0
  389. data/app/views/users/invite.html.haml +31 -0
  390. data/app/views/users/new.html.haml +54 -0
  391. data/app/views/users/resend_activation.html.haml +13 -0
  392. data/app/views/users/show.html.haml +103 -0
  393. data/app/views/users/signup_completed.html.haml +8 -0
  394. data/app/views/users/statistics.html.haml +28 -0
  395. data/app/views/users/upload_profile_photo.html.haml +15 -0
  396. data/app/views/users/welcome_about.html.haml +66 -0
  397. data/app/views/users/welcome_invite.html.haml +33 -0
  398. data/app/views/users/welcome_photo.html.haml +29 -0
  399. data/app/views/votes/create.js.rjs +6 -0
  400. data/community_engine.gemspec +55 -0
  401. data/config/application_config.rb +162 -0
  402. data/config/initializers/cropper.rb +19 -0
  403. data/config/initializers/mce_options.rb +40 -0
  404. data/config/initializers/recaptcha_constants.rb +6 -0
  405. data/config/initializers/white_list.rb +7 -0
  406. data/config/locales/de-DE.yml +1271 -0
  407. data/config/locales/en.yml +1658 -0
  408. data/config/locales/es-AR.yml +758 -0
  409. data/config/locales/es-ES.yml +340 -0
  410. data/config/locales/es-MX.yml +672 -0
  411. data/config/locales/fr-FR.yml +1509 -0
  412. data/config/locales/ja-JP.yml +1321 -0
  413. data/config/locales/ru-RU.yml +97 -0
  414. data/config/locales/sr-CP.yml +89 -0
  415. data/config/locales/sv-SE.yml +1320 -0
  416. data/config/routes.rb +242 -0
  417. data/db/migrate/001_create_users.rb +26 -0
  418. data/db/migrate/002_add_activation_code_to_user.rb +11 -0
  419. data/db/migrate/003_create_photos.rb +22 -0
  420. data/db/migrate/004_add_tag_support.rb +21 -0
  421. data/db/migrate/005_create_friendships.rb +14 -0
  422. data/db/migrate/006_add_comments_tables.rb +18 -0
  423. data/db/migrate/007_create_friendship_statuses.rb +13 -0
  424. data/db/migrate/008_add_friendship_statuses.rb +14 -0
  425. data/db/migrate/009_create_clippings.rb +16 -0
  426. data/db/migrate/010_create_invitations.rb +14 -0
  427. data/db/migrate/011_create_homepage_features.rb +22 -0
  428. data/db/migrate/012_create_posts.rb +19 -0
  429. data/db/migrate/013_create_states.rb +13 -0
  430. data/db/migrate/014_add_states.rb +11 -0
  431. data/db/migrate/015_create_metro_areas.rb +15 -0
  432. data/db/migrate/016_add_metro_areas.rb +295 -0
  433. data/db/migrate/017_add_sessions_table.rb +20 -0
  434. data/db/migrate/018_create_categories.rb +11 -0
  435. data/db/migrate/019_change_comment_to_text_field.rb +10 -0
  436. data/db/migrate/020_create_login_slug.rb +9 -0
  437. data/db/migrate/021_add_category_names.rb +8 -0
  438. data/db/migrate/023_add_denied_friendship_status.rb +13 -0
  439. data/db/migrate/024_add_notification_preferences.rb +13 -0
  440. data/db/migrate/025_create_countries.rb +11 -0
  441. data/db/migrate/026_add_countries.rb +230 -0
  442. data/db/migrate/027_add_us_to_existing_metro_areas.rb +9 -0
  443. data/db/migrate/028_add_country_id_to_users.rb +9 -0
  444. data/db/migrate/029_add_us_to_users_with_states.rb +14 -0
  445. data/db/migrate/030_add_users_counter_cache.rb +9 -0
  446. data/db/migrate/031_news_to_talk.rb +10 -0
  447. data/db/migrate/033_featured_users.rb +9 -0
  448. data/db/migrate/034_add_last_login.rb +9 -0
  449. data/db/migrate/035_track_emailed.rb +9 -0
  450. data/db/migrate/036_create_skills.rb +11 -0
  451. data/db/migrate/037_create_offerings.rb +12 -0
  452. data/db/migrate/038_add_zag_to_users.rb +13 -0
  453. data/db/migrate/039_create_activities_table.rb +17 -0
  454. data/db/migrate/040_add_category_tips.rb +9 -0
  455. data/db/migrate/041_create_events_table.rb +19 -0
  456. data/db/migrate/042_add_privacy_to_users.rb +10 -0
  457. data/db/migrate/043_sql_session_store_setup.rb +39 -0
  458. data/db/migrate/044_category_improvements.rb +11 -0
  459. data/db/migrate/045_adding_indexes.rb +39 -0
  460. data/db/migrate/046_adding_ads.rb +20 -0
  461. data/db/migrate/047_add_polls.rb +30 -0
  462. data/db/migrate/049_add_activities_count.rb +9 -0
  463. data/db/migrate/050_create_initial_schema.rb +73 -0
  464. data/db/migrate/051_add_audience_limitation_to_ads.rb +9 -0
  465. data/db/migrate/052_create_assets.rb +21 -0
  466. data/db/migrate/053_create_favoritables.rb +23 -0
  467. data/db/migrate/054_add_published_as_to_posts.rb +13 -0
  468. data/db/migrate/055_add_published_at_to_posts.rb +15 -0
  469. data/db/migrate/056_create_roles.rb +28 -0
  470. data/db/migrate/057_add_more_indexes.rb +19 -0
  471. data/db/migrate/058_add_anonymous_commenting_fields.rb +15 -0
  472. data/db/migrate/059_create_messages.rb +16 -0
  473. data/db/migrate/060_still_more_indexes.rb +19 -0
  474. data/db/migrate/061_postgres_compatibility_changes.rb +9 -0
  475. data/db/migrate/062_add_notify_to_comments.rb +11 -0
  476. data/db/migrate/063_create_albums.rb +15 -0
  477. data/db/migrate/064_add_album_id_to_photos.rb +9 -0
  478. data/db/migrate/065_add_view_count_to_albums.rb +9 -0
  479. data/db/migrate/066_add_view_count_to_photos.rb +9 -0
  480. data/db/migrate/067_create_static_pages.rb +22 -0
  481. data/db/migrate/068_create_rsvps.rb +13 -0
  482. data/db/migrate/069_create_pages.rb +29 -0
  483. data/db/migrate/070_add_pages.rb +11 -0
  484. data/db/migrate/071_authlogic_compatibility_changes.rb +43 -0
  485. data/db/migrate/072_add_allow_rsvp_to_events.rb +9 -0
  486. data/db/migrate/073_add_taggings_count_to_tags.rb +9 -0
  487. data/db/migrate/074_add_threading_to_messages.rb +19 -0
  488. data/db/migrate/075_add_anonymous_forum_posting.rb +16 -0
  489. data/db/migrate/076_add_comment_notification_toggle.rb +9 -0
  490. data/db/migrate/077_paperclip_changes.rb +36 -0
  491. data/db/migrate/078_create_authorizations.rb +20 -0
  492. data/db/migrate/079_create_slugs.rb +18 -0
  493. data/db/sample/users.rb +55 -0
  494. data/generators/ce_plugin/USAGE +7 -0
  495. data/generators/ce_plugin/ce_plugin_generator.rb +25 -0
  496. data/generators/ce_plugin/templates/README +13 -0
  497. data/generators/ce_plugin/templates/desert_routes.rb +3 -0
  498. data/generators/ce_plugin/templates/init.rb +8 -0
  499. data/generators/ce_plugin/templates/plugin.rb +1 -0
  500. data/generators/plugin_migration/plugin_migration_generator.rb +101 -0
  501. data/generators/plugin_migration/templates/plugin_migration.erb +13 -0
  502. data/lang/TRANSLATION.markdown +32 -0
  503. data/lib/community_engine/authenticated_system.rb +167 -0
  504. data/lib/community_engine/authenticated_test_helper.rb +113 -0
  505. data/lib/community_engine/community_engine_sha1_crypto_method.rb +12 -0
  506. data/lib/community_engine/engine.rb +39 -0
  507. data/lib/community_engine/engines_extensions.rb +7 -0
  508. data/lib/community_engine/i18n_extensions.rb +31 -0
  509. data/lib/community_engine/localized_application.rb +83 -0
  510. data/lib/community_engine/rails_asset_extensions.rb +131 -0
  511. data/lib/community_engine/url_upload.rb +15 -0
  512. data/lib/community_engine/version.rb +10 -0
  513. data/lib/community_engine/viewable.rb +12 -0
  514. data/lib/community_engine.rb +34 -0
  515. data/lib/tag_hacks.rb +24 -0
  516. data/lib/tasks/community_engine_tasks.rake +87 -0
  517. data/public/favicon.ico +0 -0
  518. data/sample_files/s3.yml +17 -0
  519. data/test/fixtures/ads.yml +13 -0
  520. data/test/fixtures/albums.yml +16 -0
  521. data/test/fixtures/categories.yml +16 -0
  522. data/test/fixtures/clippings.yml +15 -0
  523. data/test/fixtures/comments.yml +55 -0
  524. data/test/fixtures/countries.yml +13 -0
  525. data/test/fixtures/events.yml +61 -0
  526. data/test/fixtures/files/Granite.bmp +0 -0
  527. data/test/fixtures/files/library.jpg +0 -0
  528. data/test/fixtures/forums.yml +10 -0
  529. data/test/fixtures/friendship_statuses.yml +10 -0
  530. data/test/fixtures/friendships.yml +15 -0
  531. data/test/fixtures/homepage_features.yml +13 -0
  532. data/test/fixtures/invitations.yml +5 -0
  533. data/test/fixtures/messages.yml +24 -0
  534. data/test/fixtures/metro_areas.yml +24 -0
  535. data/test/fixtures/moderatorships.yml +4 -0
  536. data/test/fixtures/monitorships.yml +10 -0
  537. data/test/fixtures/pages.yml +26 -0
  538. data/test/fixtures/photos.yml +29 -0
  539. data/test/fixtures/posts.yml +49 -0
  540. data/test/fixtures/roles.yml +9 -0
  541. data/test/fixtures/rsvps.yml +7 -0
  542. data/test/fixtures/sb_posts.yml +90 -0
  543. data/test/fixtures/states.yml +7 -0
  544. data/test/fixtures/taggings.yml +15 -0
  545. data/test/fixtures/tags.yml +11 -0
  546. data/test/fixtures/topics.yml +63 -0
  547. data/test/fixtures/users.yml +222 -0
  548. data/test/functional/activities_controller_test.rb +62 -0
  549. data/test/functional/admin_controller_test.rb +60 -0
  550. data/test/functional/ads_controller_test.rb +51 -0
  551. data/test/functional/albums_controller_test.rb +120 -0
  552. data/test/functional/base_controller_test.rb +27 -0
  553. data/test/functional/categories_controller_test.rb +51 -0
  554. data/test/functional/clippings_controller_test.rb +123 -0
  555. data/test/functional/comments_controller_test.rb +215 -0
  556. data/test/functional/events_controller_test.rb +104 -0
  557. data/test/functional/favorites_controller_test.rb +53 -0
  558. data/test/functional/forums_controller_test.rb +95 -0
  559. data/test/functional/friendships_controller_test.rb +98 -0
  560. data/test/functional/homepage_features_controller_test.rb +69 -0
  561. data/test/functional/invitations_controller_test.rb +45 -0
  562. data/test/functional/messages_controller_test.rb +154 -0
  563. data/test/functional/metro_areas_controller_test.rb +63 -0
  564. data/test/functional/moderators_controller_test.rb +22 -0
  565. data/test/functional/monitorships_controller_test.rb +72 -0
  566. data/test/functional/pages_controller_test.rb +95 -0
  567. data/test/functional/password_reset_controller_test.rb +34 -0
  568. data/test/functional/photo_manager_controller_test.rb +21 -0
  569. data/test/functional/photos_controller_test.rb +203 -0
  570. data/test/functional/posts_controller_test.rb +224 -0
  571. data/test/functional/rsvps_controller_test.rb +92 -0
  572. data/test/functional/sb_posts_controller_test.rb +193 -0
  573. data/test/functional/sessions_controller_test.rb +55 -0
  574. data/test/functional/sitemap_controller_test.rb +9 -0
  575. data/test/functional/statistics_controller_test.rb +18 -0
  576. data/test/functional/tags_controller_test.rb +52 -0
  577. data/test/functional/theme_controller_test.rb +11 -0
  578. data/test/functional/topics_controller_test.rb +201 -0
  579. data/test/functional/users_controller_test.rb +460 -0
  580. data/test/functional/votes_controller_test.rb +27 -0
  581. data/test/test_helper.rb +103 -0
  582. data/test/testapp/.gitignore +4 -0
  583. data/test/testapp/README +256 -0
  584. data/test/testapp/Rakefile +7 -0
  585. data/test/testapp/app/controllers/application_controller.rb +3 -0
  586. data/test/testapp/app/helpers/application_helper.rb +2 -0
  587. data/test/testapp/config/application.rb +45 -0
  588. data/test/testapp/config/application_config.rb +1 -0
  589. data/test/testapp/config/boot.rb +10 -0
  590. data/test/testapp/config/database.yml +22 -0
  591. data/test/testapp/config/environment.rb +6 -0
  592. data/test/testapp/config/environments/development.rb +25 -0
  593. data/test/testapp/config/environments/production.rb +49 -0
  594. data/test/testapp/config/environments/test.rb +35 -0
  595. data/test/testapp/config/initializers/backtrace_silencers.rb +7 -0
  596. data/test/testapp/config/initializers/inflections.rb +10 -0
  597. data/test/testapp/config/initializers/mime_types.rb +5 -0
  598. data/test/testapp/config/initializers/secret_token.rb +7 -0
  599. data/test/testapp/config/initializers/session_store.rb +8 -0
  600. data/test/testapp/config/locales/en.yml +5 -0
  601. data/test/testapp/config/routes.rb +3 -0
  602. data/test/testapp/config.ru +4 -0
  603. data/test/testapp/db/schema.rb +456 -0
  604. data/test/testapp/db/seeds.rb +7 -0
  605. data/test/testapp/doc/README_FOR_APP +2 -0
  606. data/test/testapp/lib/tasks/.gitkeep +0 -0
  607. data/test/testapp/public/404.html +26 -0
  608. data/test/testapp/public/422.html +26 -0
  609. data/test/testapp/public/500.html +26 -0
  610. data/test/testapp/public/favicon.ico +0 -0
  611. data/test/testapp/public/images/rails.png +0 -0
  612. data/test/testapp/public/robots.txt +5 -0
  613. data/test/testapp/script/rails +6 -0
  614. data/test/testapp/test/performance/browsing_test.rb +9 -0
  615. data/test/testapp/test/test_helper.rb +13 -0
  616. data/test/testapp/vendor/plugins/.gitkeep +0 -0
  617. data/test/unit/ad_test.rb +34 -0
  618. data/test/unit/asset_test.rb +15 -0
  619. data/test/unit/authorization_test.rb +55 -0
  620. data/test/unit/category_test.rb +22 -0
  621. data/test/unit/choice_test.rb +9 -0
  622. data/test/unit/clipping_image_test.rb +17 -0
  623. data/test/unit/clipping_test.rb +52 -0
  624. data/test/unit/comment_test.rb +107 -0
  625. data/test/unit/country_test.rb +15 -0
  626. data/test/unit/event_test.rb +75 -0
  627. data/test/unit/favorite_test.rb +71 -0
  628. data/test/unit/forum_test.rb +23 -0
  629. data/test/unit/friendship_status_test.rb +10 -0
  630. data/test/unit/friendship_test.rb +38 -0
  631. data/test/unit/homepage_feature_test.rb +10 -0
  632. data/test/unit/invitation_test.rb +27 -0
  633. data/test/unit/message_test.rb +49 -0
  634. data/test/unit/message_thread_test.rb +80 -0
  635. data/test/unit/metro_area_test.rb +10 -0
  636. data/test/unit/moderatorship_test.rb +30 -0
  637. data/test/unit/monitorships_test.rb +38 -0
  638. data/test/unit/page_test.rb +25 -0
  639. data/test/unit/photo_test.rb +42 -0
  640. data/test/unit/poll_test.rb +25 -0
  641. data/test/unit/post_test.rb +212 -0
  642. data/test/unit/rsvp_test.rb +33 -0
  643. data/test/unit/sb_post_test.rb +152 -0
  644. data/test/unit/state_test.rb +10 -0
  645. data/test/unit/tag_test.rb +22 -0
  646. data/test/unit/topic_test.rb +111 -0
  647. data/test/unit/user_notifier_test.rb +108 -0
  648. data/test/unit/user_test.rb +259 -0
  649. data/test/unit/vote_test.rb +9 -0
  650. data/vendor/plugins/activity_tracker/README +4 -0
  651. data/vendor/plugins/activity_tracker/Rakefile +22 -0
  652. data/vendor/plugins/activity_tracker/generators/activity_migration/USAGE +13 -0
  653. data/vendor/plugins/activity_tracker/generators/activity_migration/activity_migration_generator.rb +11 -0
  654. data/vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb +17 -0
  655. data/vendor/plugins/activity_tracker/init.rb +1 -0
  656. data/vendor/plugins/activity_tracker/install.rb +1 -0
  657. data/vendor/plugins/activity_tracker/lib/activity.rb +40 -0
  658. data/vendor/plugins/activity_tracker/lib/activity_tracker.rb +80 -0
  659. data/vendor/plugins/activity_tracker/tasks/activity_tracker_tasks.rake +4 -0
  660. data/vendor/plugins/activity_tracker/test/abstract_unit.rb +47 -0
  661. data/vendor/plugins/activity_tracker/test/activity_tracker_test.rb +48 -0
  662. data/vendor/plugins/activity_tracker/test/database.yml +18 -0
  663. data/vendor/plugins/activity_tracker/test/debug.log +3329 -0
  664. data/vendor/plugins/activity_tracker/test/fixtures/test_post.rb +5 -0
  665. data/vendor/plugins/activity_tracker/test/fixtures/test_posts.yml +3 -0
  666. data/vendor/plugins/activity_tracker/test/fixtures/test_user.rb +4 -0
  667. data/vendor/plugins/activity_tracker/test/fixtures/test_users.yml +6 -0
  668. data/vendor/plugins/activity_tracker/test/schema.rb +21 -0
  669. data/vendor/plugins/activity_tracker/uninstall.rb +1 -0
  670. data/vendor/plugins/acts_as_list/README +23 -0
  671. data/vendor/plugins/acts_as_list/init.rb +3 -0
  672. data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
  673. data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
  674. data/vendor/plugins/acts_as_publishable/README +3 -0
  675. data/vendor/plugins/acts_as_publishable/Rakefile +22 -0
  676. data/vendor/plugins/acts_as_publishable/generators/publishing/publishing_generator.rb +34 -0
  677. data/vendor/plugins/acts_as_publishable/generators/publishing/templates/migration.rb +13 -0
  678. data/vendor/plugins/acts_as_publishable/init.rb +3 -0
  679. data/vendor/plugins/acts_as_publishable/install.rb +3 -0
  680. data/vendor/plugins/acts_as_publishable/lib/acts_as_publishable.rb +81 -0
  681. data/vendor/plugins/acts_as_publishable/test/acts_as_publishable_test.rb +8 -0
  682. data/vendor/plugins/acts_as_publishable/uninstall.rb +1 -0
  683. data/vendor/plugins/auto_complete/README +23 -0
  684. data/vendor/plugins/auto_complete/Rakefile +22 -0
  685. data/vendor/plugins/auto_complete/init.rb +2 -0
  686. data/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
  687. data/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
  688. data/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
  689. data/vendor/plugins/enumerations_mixin/LICENSE +20 -0
  690. data/vendor/plugins/enumerations_mixin/README_ENUMERATIONS +163 -0
  691. data/vendor/plugins/enumerations_mixin/init.rb +21 -0
  692. data/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb +177 -0
  693. data/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb +60 -0
  694. data/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb +68 -0
  695. data/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb +76 -0
  696. data/vendor/plugins/prototype_legacy_helper/README.markdown +13 -0
  697. data/vendor/plugins/prototype_legacy_helper/init.rb +1 -0
  698. data/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
  699. data/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
  700. data/vendor/plugins/resource_feeder/README +4 -0
  701. data/vendor/plugins/resource_feeder/Rakefile +22 -0
  702. data/vendor/plugins/resource_feeder/init.rb +2 -0
  703. data/vendor/plugins/resource_feeder/lib/resource_feeder/atom.rb +71 -0
  704. data/vendor/plugins/resource_feeder/lib/resource_feeder/rss.rb +71 -0
  705. data/vendor/plugins/resource_feeder/lib/resource_feeder.rb +2 -0
  706. data/vendor/plugins/resource_feeder/test/atom_feed_test.rb +85 -0
  707. data/vendor/plugins/resource_feeder/test/rss_feed_test.rb +61 -0
  708. data/vendor/plugins/resource_feeder/test/test_helper.rb +60 -0
  709. data/vendor/plugins/respond_to_parent/MIT-LICENSE +20 -0
  710. data/vendor/plugins/respond_to_parent/README +47 -0
  711. data/vendor/plugins/respond_to_parent/Rakefile +22 -0
  712. data/vendor/plugins/respond_to_parent/init.rb +1 -0
  713. data/vendor/plugins/respond_to_parent/install.rb +1 -0
  714. data/vendor/plugins/respond_to_parent/lib/responds_to_parent.rb +70 -0
  715. data/vendor/plugins/respond_to_parent/test/responds_to_parent_test.rb +10 -0
  716. data/vendor/plugins/respond_to_parent/test/test_helper.rb +6 -0
  717. data/vendor/plugins/respond_to_parent/uninstall.rb +1 -0
  718. data/vendor/plugins/tiny_mce/CHANGELOG_PLUGIN.rdoc +91 -0
  719. data/vendor/plugins/tiny_mce/CHANGELOG_TINYMCE +1226 -0
  720. data/vendor/plugins/tiny_mce/DEV_UPGRADE_NOTES.rdoc +12 -0
  721. data/vendor/plugins/tiny_mce/init.rb +2 -0
  722. data/vendor/plugins/tiny_mce/install.rb +18 -0
  723. data/vendor/plugins/tiny_mce/lib/tiny_mce/base.rb +33 -0
  724. data/vendor/plugins/tiny_mce/lib/tiny_mce/configuration.rb +114 -0
  725. data/vendor/plugins/tiny_mce/lib/tiny_mce/exceptions.rb +14 -0
  726. data/vendor/plugins/tiny_mce/lib/tiny_mce/helpers.rb +43 -0
  727. data/vendor/plugins/tiny_mce/lib/tiny_mce/railtie.rb +13 -0
  728. data/vendor/plugins/tiny_mce/lib/tiny_mce/spell_checker.rb +67 -0
  729. data/vendor/plugins/tiny_mce/lib/tiny_mce/valid_tinymce_langs.yml +25 -0
  730. data/vendor/plugins/tiny_mce/lib/tiny_mce/valid_tinymce_options.yml +167 -0
  731. data/vendor/plugins/tiny_mce/lib/tiny_mce.rb +24 -0
  732. data/vendor/plugins/white_list/README +35 -0
  733. data/vendor/plugins/white_list/Rakefile +22 -0
  734. data/vendor/plugins/white_list/init.rb +35 -0
  735. data/vendor/plugins/white_list/lib/white_list_helper.rb +61 -0
  736. data/vendor/plugins/white_list/test/white_list_test.rb +120 -0
  737. metadata +1073 -0
@@ -0,0 +1,3329 @@
1
+ # Logfile created on Thu Feb 01 08:01:15 CST 2007 by logger.rb/1.5.2.7
2
+ SQL (0.000000) SQLite3::SQLException: no such table: activities: DROP TABLE activities
3
+
4
+ SQL (0.322856) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10) DEFAULT 0 NOT NULL, "action" varchar(50), "item_id" integer(10), "points" integer(10), "created_at" datetime) 
5
+
6
+ SQL (0.230177) CREATE TABLE schema_info (version integer)
7
+
8
+ SQL (0.232625) INSERT INTO schema_info (version) VALUES(0)
9
+
10
+ SQL (0.000386) PRAGMA table_info(schema_info)
11
+
12
+ SQL (0.231457) UPDATE schema_info SET version = 0
13
+
14
+ SQL (0.317085) DROP TABLE activities
15
+
16
+ SQL (0.253781) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10) DEFAULT 0 NOT NULL, "action" varchar(50), "item_id" integer(10), "points" integer(10), "created_at" datetime) 
17
+
18
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
19
+
20
+ SQL (0.000369) PRAGMA table_info(schema_info)
21
+
22
+ SQL (0.234932) UPDATE schema_info SET version = 0
23
+
24
+ SQL (0.270900) DROP TABLE activities
25
+
26
+ SQL (0.221010) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10) DEFAULT 0 NOT NULL, "action" varchar(50), "item_id" integer(10), "points" integer(10), "created_at" datetime) 
27
+
28
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
29
+
30
+ SQL (0.000365) PRAGMA table_info(schema_info)
31
+
32
+ SQL (0.219052) UPDATE schema_info SET version = 0
33
+
34
+ SQL (0.415902) DROP TABLE activities
35
+
36
+ SQL (0.243153) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10) DEFAULT 0 NOT NULL, "action" varchar(50), "item_id" integer(10), "points" integer(10), "created_at" datetime) 
37
+
38
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
39
+
40
+ SQL (0.000385) PRAGMA table_info(schema_info)
41
+
42
+ SQL (0.241537) UPDATE schema_info SET version = 0
43
+
44
+ SQL (0.356802) DROP TABLE activities
45
+
46
+ SQL (0.254481) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10) DEFAULT 0 NOT NULL, "action" varchar(50), "item_id" integer(10), "points" integer(10), "created_at" datetime) 
47
+
48
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
49
+
50
+ SQL (0.000395) PRAGMA table_info(schema_info)
51
+
52
+ SQL (0.252629) UPDATE schema_info SET version = 0
53
+
54
+ SQL (0.366713) DROP TABLE activities
55
+
56
+ SQL (0.253159) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10) DEFAULT 0 NOT NULL, "action" varchar(50), "item_id" integer(10), "points" integer(10), "created_at" datetime) 
57
+
58
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
59
+
60
+ SQL (0.000376) PRAGMA table_info(schema_info)
61
+
62
+ SQL (0.252305) UPDATE schema_info SET version = 0
63
+
64
+ SQL (0.001020) PRAGMA table_info(activities)
65
+
66
+ SQL (0.000479) SELECT count(*) AS count_all FROM activities 
67
+
68
+ SQL (0.001025) INSERT INTO activities ("item_id", "points", "action", "user_id", "created_at") VALUES(NULL, NULL, NULL, 0, '2007-02-01 08:05:43')
69
+
70
+ SQL (0.000565) SELECT count(*) AS count_all FROM activities 
71
+
72
+ SQL (0.319978) DROP TABLE activities
73
+
74
+ SQL (0.232177) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
75
+
76
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
77
+
78
+ SQL (0.000386) PRAGMA table_info(schema_info)
79
+
80
+ SQL (0.230527) UPDATE schema_info SET version = 0
81
+
82
+ SQL (0.001799) PRAGMA table_info(activities)
83
+
84
+ SQL (0.000525) SELECT count(*) AS count_all FROM activities 
85
+
86
+ SQL (0.479882) DROP TABLE activities
87
+
88
+ SQL (0.443574) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
89
+
90
+ SQL (0.242931) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
91
+
92
+ SQL (0.256696) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
93
+
94
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
95
+
96
+ SQL (0.000381) PRAGMA table_info(schema_info)
97
+
98
+ SQL (0.227730) UPDATE schema_info SET version = 0
99
+
100
+ SQL (0.001138) PRAGMA table_info(activities)
101
+
102
+ SQL (0.000385) SELECT count(*) AS count_all FROM activities 
103
+
104
+ SQL (0.000517) PRAGMA table_info(users)
105
+ app/models/user.rb:72:in `find'
106
+ User Load (0.000322) SELECT * FROM users WHERE (users.id = 1) 
107
+ app/models/user.rb:72:in `find'
108
+ SQL (0.000529) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, NULL, 1, '2007-02-01 08:15:03', NULL)
109
+
110
+ SQL (0.000263) SELECT count(*) AS count_all FROM activities 
111
+
112
+ SQL (0.340610) DROP TABLE activities
113
+
114
+ SQL (0.243410) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
115
+
116
+ SQL (0.000000) SQLite3::SQLException: table users already exists: CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
117
+
118
+ SQL (0.337259) DROP TABLE activities
119
+
120
+ SQL (0.243390) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
121
+
122
+ SQL (0.000000) SQLite3::SQLException: table users already exists: CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
123
+
124
+ SQL (0.333756) DROP TABLE activities
125
+
126
+ SQL (0.243329) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
127
+
128
+ SQL (0.254594) DROP TABLE users
129
+
130
+ SQL (0.254852) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
131
+
132
+ SQL (0.242955) DROP TABLE posts
133
+
134
+ SQL (0.243575) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
135
+
136
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
137
+
138
+ SQL (0.000395) PRAGMA table_info(schema_info)
139
+
140
+ SQL (0.252502) UPDATE schema_info SET version = 0
141
+
142
+ SQL (0.001140) PRAGMA table_info(activities)
143
+
144
+ SQL (0.000421) SELECT count(*) AS count_all FROM activities 
145
+
146
+ SQL (0.000508) PRAGMA table_info(users)
147
+ app/models/user.rb:72:in `find'
148
+ User Load (0.000324) SELECT * FROM users WHERE (users.id = 1) 
149
+ app/models/user.rb:72:in `find'
150
+ SQL (0.000517) PRAGMA table_info(posts)
151
+
152
+ Post Load (0.000314) SELECT * FROM posts WHERE (posts.id = 1) 
153
+
154
+ SQL (0.000602) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(1, NULL, 1, '2007-02-01 08:16:25', 'Post')
155
+
156
+ SQL (0.000276) SELECT count(*) AS count_all FROM activities 
157
+
158
+ SQL (0.372728) DROP TABLE activities
159
+
160
+ SQL (0.220711) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
161
+
162
+ SQL (0.220929) DROP TABLE users
163
+
164
+ SQL (0.232459) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
165
+
166
+ SQL (0.254532) DROP TABLE posts
167
+
168
+ SQL (0.221467) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
169
+
170
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
171
+
172
+ SQL (0.000383) PRAGMA table_info(schema_info)
173
+
174
+ SQL (0.218880) UPDATE schema_info SET version = 0
175
+
176
+ SQL (0.001159) PRAGMA table_info(activities)
177
+
178
+ SQL (0.000521) SELECT count(*) AS count_all FROM activities 
179
+
180
+ SQL (0.000526) PRAGMA table_info(users)
181
+ app/models/user.rb:72:in `find'
182
+ User Load (0.000303) SELECT * FROM users WHERE (users.id = 1) 
183
+ app/models/user.rb:72:in `find'
184
+ SQL (0.000453) PRAGMA table_info(posts)
185
+
186
+ Post Load (0.000250) SELECT * FROM posts WHERE (posts.id = 1) 
187
+
188
+ SQL (0.347223) DROP TABLE activities
189
+
190
+ SQL (0.254443) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
191
+
192
+ SQL (0.232338) DROP TABLE users
193
+
194
+ SQL (0.221198) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
195
+
196
+ SQL (0.243601) DROP TABLE posts
197
+
198
+ SQL (0.243342) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
199
+
200
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
201
+
202
+ SQL (0.000409) PRAGMA table_info(schema_info)
203
+
204
+ SQL (0.241572) UPDATE schema_info SET version = 0
205
+
206
+ SQL (0.001246) PRAGMA table_info(activities)
207
+
208
+ SQL (0.000402) SELECT count(*) AS count_all FROM activities 
209
+
210
+ SQL (0.000508) PRAGMA table_info(users)
211
+ app/models/user.rb:72:in `find'
212
+ User Load (0.000307) SELECT * FROM users WHERE (users.id = 1) 
213
+ app/models/user.rb:72:in `find'
214
+ SQL (0.000772) PRAGMA table_info(posts)
215
+
216
+ Post Load (0.000351) SELECT * FROM posts WHERE (posts.id = 1) 
217
+
218
+ SQL (0.001030) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(1, NULL, 1, '2007-02-01 08:16:58', 'Post')
219
+
220
+ SQL (0.000345) SELECT count(*) AS count_all FROM activities 
221
+
222
+ SQL (0.353853) DROP TABLE activities
223
+
224
+ SQL (0.243421) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
225
+
226
+ SQL (0.243093) DROP TABLE users
227
+
228
+ SQL (0.243758) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
229
+
230
+ SQL (0.243517) DROP TABLE posts
231
+
232
+ SQL (0.254637) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
233
+
234
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
235
+
236
+ SQL (0.000421) PRAGMA table_info(schema_info)
237
+
238
+ SQL (0.263105) UPDATE schema_info SET version = 0
239
+
240
+ SQL (0.364106) DROP TABLE activities
241
+
242
+ SQL (0.254355) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
243
+
244
+ SQL (0.243354) DROP TABLE users
245
+
246
+ SQL (0.243649) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
247
+
248
+ SQL (0.254555) DROP TABLE posts
249
+
250
+ SQL (0.243409) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
251
+
252
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
253
+
254
+ SQL (0.000903) PRAGMA table_info(schema_info)
255
+
256
+ SQL (0.240532) UPDATE schema_info SET version = 0
257
+
258
+ SQL (0.001153) PRAGMA table_info(activities)
259
+
260
+ SQL (0.000503) SELECT count(*) AS count_all FROM activities 
261
+
262
+ SQL (0.000324) SELECT count(*) AS count_all FROM activities 
263
+
264
+ SQL (0.327426) DROP TABLE activities
265
+
266
+ SQL (0.221127) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
267
+
268
+ SQL (0.232379) DROP TABLE users
269
+
270
+ SQL (0.243613) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
271
+
272
+ SQL (0.254544) DROP TABLE posts
273
+
274
+ SQL (0.232495) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
275
+
276
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
277
+
278
+ SQL (0.000412) PRAGMA table_info(schema_info)
279
+
280
+ SQL (0.252399) UPDATE schema_info SET version = 0
281
+
282
+ SQL (0.307103) DROP TABLE activities
283
+
284
+ SQL (0.231878) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
285
+
286
+ SQL (0.243366) DROP TABLE users
287
+
288
+ SQL (0.221376) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
289
+
290
+ SQL (0.221252) DROP TABLE posts
291
+
292
+ SQL (0.232362) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
293
+
294
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
295
+
296
+ SQL (0.000498) PRAGMA table_info(schema_info)
297
+
298
+ SQL (0.252028) UPDATE schema_info SET version = 0
299
+
300
+ SQL (0.306780) DROP TABLE activities
301
+
302
+ SQL (0.221117) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
303
+
304
+ SQL (0.220988) DROP TABLE users
305
+
306
+ SQL (0.254774) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
307
+
308
+ SQL (0.243435) DROP TABLE posts
309
+
310
+ SQL (0.221548) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
311
+
312
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
313
+
314
+ SQL (0.000423) PRAGMA table_info(schema_info)
315
+
316
+ SQL (0.218686) UPDATE schema_info SET version = 0
317
+
318
+ SQL (0.001169) PRAGMA table_info(activities)
319
+
320
+ SQL (0.000400) SELECT count(*) AS count_all FROM activities 
321
+
322
+ SQL (0.000513) PRAGMA table_info(users)
323
+ app/models/user.rb:72:in `find'
324
+ User Load (0.000354) SELECT * FROM users WHERE (users.id = 1) 
325
+ app/models/user.rb:72:in `find'
326
+ SQL (0.000515) PRAGMA table_info(posts)
327
+
328
+ Post Load (0.000315) SELECT * FROM posts WHERE (posts.id = 1) 
329
+
330
+ SQL (0.000601) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(1, NULL, 1, '2007-02-01 10:31:44', 'Post')
331
+
332
+ SQL (0.000291) SELECT count(*) AS count_all FROM activities 
333
+
334
+ SQL (0.000534) SELECT count(*) AS count_all FROM activities 
335
+
336
+ SQL (0.000371) SELECT count(*) AS count_all FROM activities 
337
+
338
+ SQL (0.328659) DROP TABLE activities
339
+
340
+ SQL (0.232324) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
341
+
342
+ SQL (0.221218) DROP TABLE users
343
+
344
+ SQL (0.221270) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
345
+
346
+ SQL (0.254626) DROP TABLE posts
347
+
348
+ SQL (0.243534) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
349
+
350
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
351
+
352
+ SQL (0.000412) PRAGMA table_info(schema_info)
353
+
354
+ SQL (0.219175) UPDATE schema_info SET version = 0
355
+
356
+ SQL (0.322945) DROP TABLE activities
357
+
358
+ SQL (0.221013) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
359
+
360
+ SQL (0.254479) DROP TABLE users
361
+
362
+ SQL (0.221594) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
363
+
364
+ SQL (0.221004) DROP TABLE posts
365
+
366
+ SQL (0.221381) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
367
+
368
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
369
+
370
+ SQL (0.000411) PRAGMA table_info(schema_info)
371
+
372
+ SQL (0.241291) UPDATE schema_info SET version = 0
373
+
374
+ SQL (0.001156) PRAGMA table_info(activities)
375
+
376
+ SQL (0.000393) SELECT count(*) AS count_all FROM activities 
377
+
378
+ SQL (0.000538) PRAGMA table_info(users)
379
+ app/models/user.rb:72:in `find'
380
+ User Load (0.000311) SELECT * FROM users WHERE (users.id = 1) 
381
+ app/models/user.rb:72:in `find'
382
+ SQL (0.319292) DROP TABLE activities
383
+
384
+ SQL (0.221185) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
385
+
386
+ SQL (0.221130) DROP TABLE users
387
+
388
+ SQL (0.254714) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
389
+
390
+ SQL (0.232357) DROP TABLE posts
391
+
392
+ SQL (0.221252) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
393
+
394
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
395
+
396
+ SQL (0.000399) PRAGMA table_info(schema_info)
397
+
398
+ SQL (0.219174) UPDATE schema_info SET version = 0
399
+
400
+ SQL (0.001152) PRAGMA table_info(activities)
401
+
402
+ SQL (0.000394) SELECT count(*) AS count_all FROM activities 
403
+
404
+ SQL (0.000547) PRAGMA table_info(users)
405
+ app/models/user.rb:72:in `find'
406
+ User Load (0.000318) SELECT * FROM users WHERE (users.id = 1) 
407
+ app/models/user.rb:72:in `find'
408
+ SQL (0.343585) DROP TABLE activities
409
+
410
+ SQL (0.232304) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
411
+
412
+ SQL (0.220764) DROP TABLE users
413
+
414
+ SQL (0.221306) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
415
+
416
+ SQL (0.232095) DROP TABLE posts
417
+
418
+ SQL (0.232421) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
419
+
420
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
421
+
422
+ SQL (0.000399) PRAGMA table_info(schema_info)
423
+
424
+ SQL (0.219049) UPDATE schema_info SET version = 0
425
+
426
+ SQL (0.001142) PRAGMA table_info(activities)
427
+
428
+ SQL (0.000382) SELECT count(*) AS count_all FROM activities 
429
+
430
+ SQL (0.000529) PRAGMA table_info(users)
431
+ app/models/user.rb:72:in `find'
432
+ User Load (0.000348) SELECT * FROM users WHERE (users.id = 1) 
433
+ app/models/user.rb:72:in `find'
434
+ SQL (0.340271) DROP TABLE activities
435
+
436
+ SQL (0.221238) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
437
+
438
+ SQL (0.221134) DROP TABLE users
439
+
440
+ SQL (0.444104) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
441
+
442
+ SQL (0.343092) DROP TABLE posts
443
+
444
+ SQL (0.242817) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
445
+
446
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
447
+
448
+ SQL (0.000393) PRAGMA table_info(schema_info)
449
+
450
+ SQL (0.252579) UPDATE schema_info SET version = 0
451
+
452
+ SQL (0.001151) PRAGMA table_info(activities)
453
+
454
+ SQL (0.000394) SELECT count(*) AS count_all FROM activities 
455
+
456
+ SQL (0.000522) PRAGMA table_info(users)
457
+ app/models/user.rb:72:in `find'
458
+ User Load (0.000391) SELECT * FROM users WHERE (users.id = 1) 
459
+ app/models/user.rb:72:in `find'
460
+ SQL (0.329645) DROP TABLE activities
461
+
462
+ SQL (0.232299) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
463
+
464
+ SQL (0.243319) DROP TABLE users
465
+
466
+ SQL (0.221415) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
467
+
468
+ SQL (0.221035) DROP TABLE posts
469
+
470
+ SQL (0.232515) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
471
+
472
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
473
+
474
+ SQL (0.000408) PRAGMA table_info(schema_info)
475
+
476
+ SQL (0.241507) UPDATE schema_info SET version = 0
477
+
478
+ SQL (0.001137) PRAGMA table_info(activities)
479
+
480
+ SQL (0.000387) SELECT count(*) AS count_all FROM activities 
481
+
482
+ SQL (0.000524) PRAGMA table_info(users)
483
+ app/models/user.rb:72:in `find'
484
+ User Load (0.000320) SELECT * FROM users WHERE (users.id = 1) 
485
+ app/models/user.rb:72:in `find'
486
+ SQL (0.000450) PRAGMA table_info(posts)
487
+
488
+ Post Load (0.000260) SELECT * FROM posts WHERE (posts.id = 1) 
489
+
490
+ SQL (0.000538) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(1, NULL, 1, '2007-02-01 10:48:00', 'Post')
491
+
492
+ SQL (0.000254) SELECT count(*) AS count_all FROM activities 
493
+
494
+ SQL (0.000509) SELECT count(*) AS count_all FROM activities 
495
+
496
+ User Load (0.000435) SELECT * FROM users WHERE (users.id = 1) 
497
+ app/models/user.rb:72:in `find'
498
+ SQL (0.000599) SELECT count(*) AS count_all FROM activities 
499
+
500
+ SQL (0.000325) SELECT count(*) AS count_all FROM activities 
501
+
502
+ SQL (0.321402) DROP TABLE activities
503
+
504
+ SQL (0.232277) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
505
+
506
+ SQL (0.243362) DROP TABLE users
507
+
508
+ SQL (0.221392) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
509
+
510
+ SQL (0.221125) DROP TABLE posts
511
+
512
+ SQL (0.232498) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
513
+
514
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
515
+
516
+ SQL (0.000414) PRAGMA table_info(schema_info)
517
+
518
+ SQL (0.229925) UPDATE schema_info SET version = 0
519
+
520
+ SQL (0.000500) PRAGMA table_info(posts)
521
+
522
+ SQL (0.000389) SELECT count(*) AS count_all FROM posts 
523
+
524
+ SQL (0.001183) PRAGMA table_info(activities)
525
+
526
+ SQL (0.000291) SELECT count(*) AS count_all FROM activities 
527
+
528
+ SQL (0.000479) PRAGMA table_info(users)
529
+ app/models/user.rb:72:in `find'
530
+ User Load (0.000297) SELECT * FROM users WHERE (users.id = 1) 
531
+ app/models/user.rb:72:in `find'
532
+ User Load (0.000346) SELECT * FROM users WHERE (users.id = 1) 
533
+ app/models/user.rb:72:in `find'
534
+ SQL (0.000261) SELECT count(*) AS count_all FROM activities 
535
+
536
+ SQL (0.356747) DROP TABLE activities
537
+
538
+ SQL (0.254408) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
539
+
540
+ SQL (0.221156) DROP TABLE users
541
+
542
+ SQL (0.221419) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
543
+
544
+ SQL (0.221281) DROP TABLE posts
545
+
546
+ SQL (0.243443) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
547
+
548
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
549
+
550
+ SQL (0.000419) PRAGMA table_info(schema_info)
551
+
552
+ SQL (0.241317) UPDATE schema_info SET version = 0
553
+
554
+ SQL (0.000545) PRAGMA table_info(posts)
555
+
556
+ SQL (0.000419) SELECT count(*) AS count_all FROM posts 
557
+
558
+ SQL (0.000498) PRAGMA table_info(users)
559
+ app/models/user.rb:72:in `find'
560
+ User Load (0.000316) SELECT * FROM users WHERE (users.id = 1) 
561
+ app/models/user.rb:72:in `find'
562
+ User Load (0.000389) SELECT * FROM users WHERE (users.id = 1) 
563
+ app/models/user.rb:72:in `find'
564
+ SQL (0.000354) SELECT count(*) AS count_all FROM posts 
565
+
566
+ SQL (0.328396) DROP TABLE activities
567
+
568
+ SQL (0.243310) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
569
+
570
+ SQL (0.232002) DROP TABLE users
571
+
572
+ SQL (0.221339) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
573
+
574
+ SQL (0.221235) DROP TABLE posts
575
+
576
+ SQL (0.254531) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
577
+
578
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
579
+
580
+ SQL (0.000441) PRAGMA table_info(schema_info)
581
+
582
+ SQL (0.230084) UPDATE schema_info SET version = 0
583
+
584
+ SQL (0.000506) PRAGMA table_info(posts)
585
+
586
+ SQL (0.000392) SELECT count(*) AS count_all FROM posts 
587
+
588
+ SQL (0.000543) PRAGMA table_info(users)
589
+ app/models/user.rb:72:in `find'
590
+ User Load (0.000319) SELECT * FROM users WHERE (users.id = 1) 
591
+ app/models/user.rb:72:in `find'
592
+ SQL (0.350186) DROP TABLE activities
593
+
594
+ SQL (0.254395) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
595
+
596
+ SQL (0.254569) DROP TABLE users
597
+
598
+ SQL (0.243601) CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
599
+
600
+ SQL (0.243350) DROP TABLE posts
601
+
602
+ SQL (0.254893) CREATE TABLE posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
603
+
604
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
605
+
606
+ SQL (0.000408) PRAGMA table_info(schema_info)
607
+
608
+ SQL (0.252417) UPDATE schema_info SET version = 0
609
+
610
+ SQL (0.362979) DROP TABLE activities
611
+
612
+ SQL (0.221543) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
613
+
614
+ SQL (0.000000) SQLite3::SQLException: no such table: test_users: DROP TABLE test_users
615
+
616
+ SQL (0.241335) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
617
+
618
+ SQL (0.000000) SQLite3::SQLException: no such table: test_posts: DROP TABLE test_posts
619
+
620
+ SQL (0.253362) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
621
+
622
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
623
+
624
+ SQL (0.000414) PRAGMA table_info(schema_info)
625
+
626
+ SQL (0.252508) UPDATE schema_info SET version = 0
627
+
628
+ SQL (0.000543) PRAGMA table_info(posts)
629
+
630
+ SQL (0.000416) SELECT count(*) AS count_all FROM posts 
631
+
632
+ SQL (0.317948) DROP TABLE activities
633
+
634
+ SQL (0.243373) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
635
+
636
+ SQL (0.254574) DROP TABLE test_users
637
+
638
+ SQL (0.254619) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
639
+
640
+ SQL (0.243468) DROP TABLE test_posts
641
+
642
+ SQL (0.243515) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
643
+
644
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
645
+
646
+ SQL (0.000420) PRAGMA table_info(schema_info)
647
+
648
+ SQL (0.252465) UPDATE schema_info SET version = 0
649
+
650
+ SQL (0.000562) PRAGMA table_info(posts)
651
+
652
+ SQL (0.000410) SELECT count(*) AS count_all FROM posts 
653
+
654
+ SQL (0.000516) PRAGMA table_info(test_users)
655
+
656
+ TestUser Load (0.000310) SELECT * FROM test_users WHERE (test_users.id = 1) 
657
+
658
+ SQL (0.332476) DROP TABLE activities
659
+
660
+ SQL (0.243338) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
661
+
662
+ SQL (0.254489) DROP TABLE test_users
663
+
664
+ SQL (0.243609) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
665
+
666
+ SQL (0.243426) DROP TABLE test_posts
667
+
668
+ SQL (0.365722) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
669
+
670
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
671
+
672
+ SQL (0.000577) PRAGMA table_info(schema_info)
673
+
674
+ SQL (0.431977) UPDATE schema_info SET version = 0
675
+
676
+ SQL (0.000545) PRAGMA table_info(posts)
677
+
678
+ SQL (0.000411) SELECT count(*) AS count_all FROM posts 
679
+
680
+ SQL (0.000620) PRAGMA table_info(test_users)
681
+
682
+ TestUser Load (0.000335) SELECT * FROM test_users WHERE (test_users.id = 1) 
683
+
684
+ SQL (0.000515) PRAGMA table_info(test_posts)
685
+
686
+ SQL (0.000565) INSERT INTO test_posts ("title") VALUES('New Post')
687
+
688
+ SQL (0.337338) DROP TABLE activities
689
+
690
+ SQL (0.243318) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
691
+
692
+ SQL (0.243362) DROP TABLE test_users
693
+
694
+ SQL (0.254726) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
695
+
696
+ SQL (0.254493) DROP TABLE test_posts
697
+
698
+ SQL (0.254744) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
699
+
700
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
701
+
702
+ SQL (0.000412) PRAGMA table_info(schema_info)
703
+
704
+ SQL (0.241266) UPDATE schema_info SET version = 0
705
+
706
+ SQL (0.000497) PRAGMA table_info(posts)
707
+
708
+ SQL (0.000387) SELECT count(*) AS count_all FROM posts 
709
+
710
+ SQL (0.000425) PRAGMA table_info(test_users)
711
+
712
+ TestUser Load (0.000275) SELECT * FROM test_users WHERE (test_users.id = 1) 
713
+
714
+ SQL (0.000440) PRAGMA table_info(test_posts)
715
+
716
+ SQL (0.000513) INSERT INTO test_posts ("title") VALUES('New Post')
717
+
718
+ SQL (0.000978) PRAGMA table_info(activities)
719
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:23:in `create_activity_from_self'
720
+ SQL (0.330105) DROP TABLE activities
721
+
722
+ SQL (0.254715) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
723
+
724
+ SQL (0.243103) DROP TABLE test_users
725
+
726
+ SQL (0.243516) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
727
+
728
+ SQL (0.243505) DROP TABLE test_posts
729
+
730
+ SQL (0.254593) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
731
+
732
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
733
+
734
+ SQL (0.000410) PRAGMA table_info(schema_info)
735
+
736
+ SQL (0.241622) UPDATE schema_info SET version = 0
737
+
738
+ SQL (0.342465) DROP TABLE activities
739
+
740
+ SQL (0.254642) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
741
+
742
+ SQL (0.232108) DROP TABLE test_users
743
+
744
+ SQL (0.254699) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
745
+
746
+ SQL (0.254369) DROP TABLE test_posts
747
+
748
+ SQL (0.232402) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
749
+
750
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
751
+
752
+ SQL (0.000413) PRAGMA table_info(schema_info)
753
+
754
+ SQL (0.241462) UPDATE schema_info SET version = 0
755
+
756
+ SQL (0.333396) DROP TABLE activities
757
+
758
+ SQL (0.254493) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
759
+
760
+ SQL (0.254335) DROP TABLE test_users
761
+
762
+ SQL (0.232601) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
763
+
764
+ SQL (0.243112) DROP TABLE test_posts
765
+
766
+ SQL (0.243668) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
767
+
768
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
769
+
770
+ SQL (0.000416) PRAGMA table_info(schema_info)
771
+
772
+ SQL (0.252503) UPDATE schema_info SET version = 0
773
+
774
+ SQL (0.000473) PRAGMA table_info(posts)
775
+
776
+ SQL (0.000369) SELECT count(*) AS count_all FROM posts 
777
+
778
+ SQL (0.000426) PRAGMA table_info(test_users)
779
+
780
+ TestUser Load (0.000272) SELECT * FROM test_users WHERE (test_users.id = 1) 
781
+
782
+ SQL (0.000438) PRAGMA table_info(test_posts)
783
+
784
+ SQL (0.000505) INSERT INTO test_posts ("title") VALUES('New Post')
785
+
786
+ SQL (0.000984) PRAGMA table_info(activities)
787
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:24:in `create_activity_from_self'
788
+ SQL (0.238947) DROP TABLE activities
789
+
790
+ SQL (0.243311) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
791
+
792
+ SQL (0.243531) DROP TABLE test_users
793
+
794
+ SQL (0.232400) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
795
+
796
+ SQL (0.232313) DROP TABLE test_posts
797
+
798
+ SQL (0.243530) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
799
+
800
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
801
+
802
+ SQL (0.000822) PRAGMA table_info(schema_info)
803
+
804
+ SQL (0.240824) UPDATE schema_info SET version = 0
805
+
806
+ SQL (0.000460) PRAGMA table_info(posts)
807
+
808
+ SQL (0.000386) SELECT count(*) AS count_all FROM posts 
809
+
810
+ SQL (0.000567) PRAGMA table_info(test_users)
811
+
812
+ TestUser Load (0.000286) SELECT * FROM test_users WHERE (test_users.id = 1) 
813
+
814
+ SQL (0.000429) PRAGMA table_info(test_posts)
815
+
816
+ SQL (0.000506) INSERT INTO test_posts ("title") VALUES('New Post')
817
+
818
+ SQL (0.000991) PRAGMA table_info(activities)
819
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:24:in `create_activity_from_self'
820
+ SQL (0.330627) DROP TABLE activities
821
+
822
+ SQL (0.232046) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
823
+
824
+ SQL (0.221146) DROP TABLE test_users
825
+
826
+ SQL (0.232788) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
827
+
828
+ SQL (0.242968) DROP TABLE test_posts
829
+
830
+ SQL (0.254745) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
831
+
832
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
833
+
834
+ SQL (0.000410) PRAGMA table_info(schema_info)
835
+
836
+ SQL (0.219142) UPDATE schema_info SET version = 0
837
+
838
+ SQL (0.340655) DROP TABLE activities
839
+
840
+ SQL (0.232158) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
841
+
842
+ SQL (0.243414) DROP TABLE test_users
843
+
844
+ SQL (0.243584) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
845
+
846
+ SQL (0.232366) DROP TABLE test_posts
847
+
848
+ SQL (0.232425) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
849
+
850
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
851
+
852
+ SQL (0.000418) PRAGMA table_info(schema_info)
853
+
854
+ SQL (0.241389) UPDATE schema_info SET version = 0
855
+
856
+ SQL (0.000545) PRAGMA table_info(posts)
857
+
858
+ SQL (0.000400) SELECT count(*) AS count_all FROM posts 
859
+
860
+ SQL (0.000522) PRAGMA table_info(test_users)
861
+
862
+ TestUser Load (0.000363) SELECT * FROM test_users WHERE (test_users.id = 1) 
863
+
864
+ SQL (0.000513) PRAGMA table_info(test_posts)
865
+
866
+ SQL (0.000584) INSERT INTO test_posts ("title") VALUES('New Post')
867
+
868
+ SQL (0.001183) PRAGMA table_info(activities)
869
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
870
+ SQL (0.312932) DROP TABLE activities
871
+
872
+ SQL (0.243319) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
873
+
874
+ SQL (0.243314) DROP TABLE test_users
875
+
876
+ SQL (0.254613) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
877
+
878
+ SQL (0.254473) DROP TABLE test_posts
879
+
880
+ SQL (0.243723) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
881
+
882
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
883
+
884
+ SQL (0.000441) PRAGMA table_info(schema_info)
885
+
886
+ SQL (0.240979) UPDATE schema_info SET version = 0
887
+
888
+ SQL (0.000547) PRAGMA table_info(posts)
889
+
890
+ SQL (0.000400) SELECT count(*) AS count_all FROM posts 
891
+
892
+ SQL (0.000520) PRAGMA table_info(test_users)
893
+
894
+ TestUser Load (0.000320) SELECT * FROM test_users WHERE (test_users.id = 1) 
895
+
896
+ SQL (0.000507) PRAGMA table_info(test_posts)
897
+
898
+ SQL (0.000554) INSERT INTO test_posts ("title") VALUES('New Post')
899
+
900
+ SQL (0.000979) PRAGMA table_info(activities)
901
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
902
+ SQL (0.242163) DROP TABLE activities
903
+
904
+ SQL (0.254465) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
905
+
906
+ SQL (0.243425) DROP TABLE test_users
907
+
908
+ SQL (0.243341) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
909
+
910
+ SQL (0.243164) DROP TABLE test_posts
911
+
912
+ SQL (0.254675) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
913
+
914
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
915
+
916
+ SQL (0.000400) PRAGMA table_info(schema_info)
917
+
918
+ SQL (0.252490) UPDATE schema_info SET version = 0
919
+
920
+ SQL (0.000469) PRAGMA table_info(posts)
921
+
922
+ SQL (0.000339) SELECT count(*) AS count_all FROM posts 
923
+
924
+ SQL (0.000427) PRAGMA table_info(test_users)
925
+
926
+ TestUser Load (0.000267) SELECT * FROM test_users WHERE (test_users.id = 1) 
927
+
928
+ SQL (0.000420) PRAGMA table_info(test_posts)
929
+
930
+ SQL (0.000516) INSERT INTO test_posts ("title") VALUES('New Post')
931
+
932
+ SQL (0.001071) PRAGMA table_info(activities)
933
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
934
+ SQL (0.348584) DROP TABLE activities
935
+
936
+ SQL (0.232214) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
937
+
938
+ SQL (0.243382) DROP TABLE test_users
939
+
940
+ SQL (0.243681) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
941
+
942
+ SQL (0.254507) DROP TABLE test_posts
943
+
944
+ SQL (0.232202) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
945
+
946
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
947
+
948
+ SQL (0.000397) PRAGMA table_info(schema_info)
949
+
950
+ SQL (0.241497) UPDATE schema_info SET version = 0
951
+
952
+ SQL (0.000571) PRAGMA table_info(posts)
953
+
954
+ SQL (0.000407) SELECT count(*) AS count_all FROM posts 
955
+
956
+ SQL (0.000526) PRAGMA table_info(test_users)
957
+
958
+ TestUser Load (0.000327) SELECT * FROM test_users WHERE (test_users.id = 1) 
959
+
960
+ SQL (0.000416) PRAGMA table_info(test_posts)
961
+
962
+ SQL (0.000516) INSERT INTO test_posts ("title") VALUES('New Post')
963
+
964
+ SQL (0.000985) PRAGMA table_info(activities)
965
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
966
+ SQL (0.344917) DROP TABLE activities
967
+
968
+ SQL (0.243409) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
969
+
970
+ SQL (0.254632) DROP TABLE test_users
971
+
972
+ SQL (0.243363) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
973
+
974
+ SQL (0.254765) DROP TABLE test_posts
975
+
976
+ SQL (0.243415) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
977
+
978
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
979
+
980
+ SQL (0.000397) PRAGMA table_info(schema_info)
981
+
982
+ SQL (0.252480) UPDATE schema_info SET version = 0
983
+
984
+ SQL (0.000491) PRAGMA table_info(posts)
985
+
986
+ SQL (0.000341) SELECT count(*) AS count_all FROM posts 
987
+
988
+ SQL (0.000435) PRAGMA table_info(test_users)
989
+
990
+ TestUser Load (0.000265) SELECT * FROM test_users WHERE (test_users.id = 1) 
991
+
992
+ SQL (0.000417) PRAGMA table_info(test_posts)
993
+
994
+ SQL (0.000507) INSERT INTO test_posts ("title") VALUES('New Post')
995
+
996
+ SQL (0.000961) PRAGMA table_info(activities)
997
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
998
+ SQL (0.343879) DROP TABLE activities
999
+
1000
+ SQL (0.243338) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1001
+
1002
+ SQL (0.253680) DROP TABLE test_users
1003
+
1004
+ SQL (0.232460) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1005
+
1006
+ SQL (0.254603) DROP TABLE test_posts
1007
+
1008
+ SQL (0.243471) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
1009
+
1010
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1011
+
1012
+ SQL (0.000417) PRAGMA table_info(schema_info)
1013
+
1014
+ SQL (0.241424) UPDATE schema_info SET version = 0
1015
+
1016
+ SQL (0.000476) PRAGMA table_info(posts)
1017
+
1018
+ SQL (0.000354) SELECT count(*) AS count_all FROM posts 
1019
+
1020
+ SQL (0.000429) PRAGMA table_info(test_users)
1021
+
1022
+ TestUser Load (0.000290) SELECT * FROM test_users WHERE (test_users.id = 1) 
1023
+
1024
+ SQL (0.000443) PRAGMA table_info(test_posts)
1025
+
1026
+ SQL (0.000530) INSERT INTO test_posts ("title") VALUES('New Post')
1027
+
1028
+ SQL (0.000989) PRAGMA table_info(activities)
1029
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
1030
+ SQL (0.352806) DROP TABLE activities
1031
+
1032
+ SQL (0.231951) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1033
+
1034
+ SQL (0.243425) DROP TABLE test_users
1035
+
1036
+ SQL (0.243548) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1037
+
1038
+ SQL (0.243319) DROP TABLE test_posts
1039
+
1040
+ SQL (0.221526) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
1041
+
1042
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1043
+
1044
+ SQL (0.000425) PRAGMA table_info(schema_info)
1045
+
1046
+ SQL (0.241191) UPDATE schema_info SET version = 0
1047
+
1048
+ SQL (0.000585) PRAGMA table_info(posts)
1049
+
1050
+ SQL (0.000472) SELECT count(*) AS count_all FROM posts 
1051
+
1052
+ SQL (0.000528) PRAGMA table_info(test_users)
1053
+
1054
+ TestUser Load (0.000308) SELECT * FROM test_users WHERE (test_users.id = 1) 
1055
+
1056
+ SQL (0.000512) PRAGMA table_info(test_posts)
1057
+
1058
+ SQL (0.000581) INSERT INTO test_posts ("title") VALUES('New Post')
1059
+
1060
+ SQL (0.001168) PRAGMA table_info(activities)
1061
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
1062
+ SQL (0.339542) DROP TABLE activities
1063
+
1064
+ SQL (0.243393) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1065
+
1066
+ SQL (0.243389) DROP TABLE test_users
1067
+
1068
+ SQL (0.243552) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1069
+
1070
+ SQL (0.232492) DROP TABLE test_posts
1071
+
1072
+ SQL (0.232347) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
1073
+
1074
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1075
+
1076
+ SQL (0.000416) PRAGMA table_info(schema_info)
1077
+
1078
+ SQL (0.241403) UPDATE schema_info SET version = 0
1079
+
1080
+ SQL (0.000507) PRAGMA table_info(posts)
1081
+
1082
+ SQL (0.000353) SELECT count(*) AS count_all FROM posts 
1083
+
1084
+ SQL (0.000424) PRAGMA table_info(test_users)
1085
+
1086
+ TestUser Load (0.000255) SELECT * FROM test_users WHERE (test_users.id = 1) 
1087
+
1088
+ SQL (0.000423) PRAGMA table_info(test_posts)
1089
+
1090
+ SQL (0.000514) INSERT INTO test_posts ("title") VALUES('New Post')
1091
+
1092
+ SQL (0.001076) PRAGMA table_info(activities)
1093
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
1094
+ SQL (0.000272) SELECT count(*) AS count_all FROM posts 
1095
+
1096
+ SQL (0.329837) DROP TABLE activities
1097
+
1098
+ SQL (0.232194) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1099
+
1100
+ SQL (0.243593) DROP TABLE test_users
1101
+
1102
+ SQL (0.254556) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1103
+
1104
+ SQL (0.232231) DROP TABLE test_posts
1105
+
1106
+ SQL (0.243529) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
1107
+
1108
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1109
+
1110
+ SQL (0.000399) PRAGMA table_info(schema_info)
1111
+
1112
+ SQL (0.241512) UPDATE schema_info SET version = 0
1113
+
1114
+ SQL (0.000605) PRAGMA table_info(posts)
1115
+
1116
+ SQL (0.000417) SELECT count(*) AS count_all FROM posts 
1117
+
1118
+ SQL (0.000493) PRAGMA table_info(test_users)
1119
+
1120
+ TestUser Load (0.000319) SELECT * FROM test_users WHERE (test_users.id = 1) 
1121
+
1122
+ SQL (0.000507) PRAGMA table_info(test_posts)
1123
+
1124
+ SQL (0.000578) INSERT INTO test_posts ("title") VALUES('New Post')
1125
+
1126
+ SQL (0.001200) PRAGMA table_info(activities)
1127
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
1128
+ SQL (0.000292) SELECT count(*) AS count_all FROM posts 
1129
+
1130
+ SQL (0.375004) DROP TABLE activities
1131
+
1132
+ SQL (0.232217) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1133
+
1134
+ SQL (0.232308) DROP TABLE test_users
1135
+
1136
+ SQL (0.254589) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1137
+
1138
+ SQL (0.254616) DROP TABLE test_posts
1139
+
1140
+ SQL (0.232382) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255)) 
1141
+
1142
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1143
+
1144
+ SQL (0.000400) PRAGMA table_info(schema_info)
1145
+
1146
+ SQL (0.230155) UPDATE schema_info SET version = 0
1147
+
1148
+ SQL (0.000457) PRAGMA table_info(posts)
1149
+
1150
+ SQL (0.000352) SELECT count(*) AS count_all FROM posts 
1151
+
1152
+ SQL (0.000405) PRAGMA table_info(test_users)
1153
+
1154
+ TestUser Load (0.000256) SELECT * FROM test_users WHERE (test_users.id = 1) 
1155
+
1156
+ SQL (0.000412) PRAGMA table_info(test_posts)
1157
+
1158
+ SQL (0.000523) INSERT INTO test_posts ("title") VALUES('New Post')
1159
+
1160
+ SQL (0.000243) SELECT count(*) AS count_all FROM posts 
1161
+
1162
+ SQL (0.404478) DROP TABLE activities
1163
+
1164
+ SQL (0.221061) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1165
+
1166
+ SQL (0.232284) DROP TABLE test_users
1167
+
1168
+ SQL (0.221311) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1169
+
1170
+ SQL (0.335680) DROP TABLE activities
1171
+
1172
+ SQL (0.254292) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1173
+
1174
+ SQL (0.221368) DROP TABLE test_users
1175
+
1176
+ SQL (0.243521) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1177
+
1178
+ SQL (0.221250) DROP TABLE test_posts
1179
+
1180
+ SQL (0.232274) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1181
+
1182
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1183
+
1184
+ SQL (0.001192) PRAGMA table_info(schema_info)
1185
+
1186
+ SQL (0.240024) UPDATE schema_info SET version = 0
1187
+
1188
+ SQL (0.000486) PRAGMA table_info(posts)
1189
+
1190
+ SQL (0.000351) SELECT count(*) AS count_all FROM posts 
1191
+
1192
+ SQL (0.000410) PRAGMA table_info(test_users)
1193
+
1194
+ TestUser Load (0.000258) SELECT * FROM test_users WHERE (test_users.id = 1) 
1195
+
1196
+ SQL (0.000560) PRAGMA table_info(test_posts)
1197
+
1198
+ SQL (0.000524) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', NULL)
1199
+
1200
+ SQL (0.000234) SELECT count(*) AS count_all FROM posts 
1201
+
1202
+ SQL (0.452614) DROP TABLE activities
1203
+
1204
+ SQL (0.221105) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1205
+
1206
+ SQL (0.232263) DROP TABLE test_users
1207
+
1208
+ SQL (0.299347) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1209
+
1210
+ SQL (0.478175) DROP TABLE test_posts
1211
+
1212
+ SQL (0.252535) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1213
+
1214
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1215
+
1216
+ SQL (0.000418) PRAGMA table_info(schema_info)
1217
+
1218
+ SQL (0.219145) UPDATE schema_info SET version = 0
1219
+
1220
+ SQL (0.000497) PRAGMA table_info(posts)
1221
+
1222
+ SQL (0.000338) SELECT count(*) AS count_all FROM posts 
1223
+
1224
+ SQL (0.000535) PRAGMA table_info(test_posts)
1225
+
1226
+ SQL (0.000516) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', NULL)
1227
+
1228
+ SQL (0.000228) SELECT count(*) AS count_all FROM posts 
1229
+
1230
+ SQL (0.310449) DROP TABLE activities
1231
+
1232
+ SQL (0.232265) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1233
+
1234
+ SQL (0.243183) DROP TABLE test_users
1235
+
1236
+ SQL (0.254739) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1237
+
1238
+ SQL (0.220735) DROP TABLE test_posts
1239
+
1240
+ SQL (0.221382) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1241
+
1242
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1243
+
1244
+ SQL (0.000448) PRAGMA table_info(schema_info)
1245
+
1246
+ SQL (0.240472) UPDATE schema_info SET version = 0
1247
+
1248
+ SQL (0.000663) PRAGMA table_info(test_posts)
1249
+
1250
+ SQL (0.000422) SELECT count(*) AS count_all FROM test_posts 
1251
+
1252
+ SQL (0.315431) DROP TABLE activities
1253
+
1254
+ SQL (0.221379) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1255
+
1256
+ SQL (0.220963) DROP TABLE test_users
1257
+
1258
+ SQL (0.254626) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1259
+
1260
+ SQL (0.243343) DROP TABLE test_posts
1261
+
1262
+ SQL (0.221229) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1263
+
1264
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1265
+
1266
+ SQL (0.000417) PRAGMA table_info(schema_info)
1267
+
1268
+ SQL (0.219171) UPDATE schema_info SET version = 0
1269
+
1270
+ SQL (0.000668) PRAGMA table_info(test_posts)
1271
+
1272
+ SQL (0.000420) SELECT count(*) AS count_all FROM test_posts 
1273
+
1274
+ SQL (0.000502) PRAGMA table_info(test_users)
1275
+
1276
+ TestUser Load (0.000309) SELECT * FROM test_users WHERE (test_users.id = 1) 
1277
+
1278
+ SQL (0.000621) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1279
+
1280
+ SQL (0.000305) SELECT count(*) AS count_all FROM test_posts 
1281
+
1282
+ SQL (0.368337) DROP TABLE activities
1283
+
1284
+ SQL (0.243206) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1285
+
1286
+ SQL (0.255827) DROP TABLE test_users
1287
+
1288
+ SQL (0.253390) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1289
+
1290
+ SQL (0.287711) DROP TABLE test_posts
1291
+
1292
+ SQL (0.332315) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1293
+
1294
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1295
+
1296
+ SQL (0.000410) PRAGMA table_info(schema_info)
1297
+
1298
+ SQL (0.230490) UPDATE schema_info SET version = 0
1299
+
1300
+ SQL (0.000679) PRAGMA table_info(test_posts)
1301
+
1302
+ SQL (0.000398) SELECT count(*) AS count_all FROM test_posts 
1303
+
1304
+ SQL (0.001167) PRAGMA table_info(activities)
1305
+
1306
+ SQL (0.000295) SELECT count(*) AS count_all FROM activities 
1307
+
1308
+ SQL (0.000522) PRAGMA table_info(test_users)
1309
+
1310
+ TestUser Load (0.000319) SELECT * FROM test_users WHERE (test_users.id = 1) 
1311
+
1312
+ SQL (0.000576) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1313
+
1314
+ SQL (0.000274) SELECT count(*) AS count_all FROM activities 
1315
+
1316
+ SQL (0.343582) DROP TABLE activities
1317
+
1318
+ SQL (0.232139) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1319
+
1320
+ SQL (0.243499) DROP TABLE test_users
1321
+
1322
+ SQL (0.254711) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1323
+
1324
+ SQL (0.243338) DROP TABLE test_posts
1325
+
1326
+ SQL (0.232403) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1327
+
1328
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1329
+
1330
+ SQL (0.000409) PRAGMA table_info(schema_info)
1331
+
1332
+ SQL (0.241363) UPDATE schema_info SET version = 0
1333
+
1334
+ SQL (0.000671) PRAGMA table_info(test_posts)
1335
+
1336
+ SQL (0.000416) SELECT count(*) AS count_all FROM test_posts 
1337
+
1338
+ SQL (0.001196) PRAGMA table_info(activities)
1339
+
1340
+ SQL (0.000297) SELECT count(*) AS count_all FROM activities 
1341
+
1342
+ SQL (0.000477) PRAGMA table_info(test_users)
1343
+
1344
+ TestUser Load (0.000264) SELECT * FROM test_users WHERE (test_users.id = 1) 
1345
+
1346
+ SQL (0.000508) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1347
+
1348
+ SQL (0.365953) DROP TABLE activities
1349
+
1350
+ SQL (0.243138) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1351
+
1352
+ SQL (0.232298) DROP TABLE test_users
1353
+
1354
+ SQL (0.221438) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1355
+
1356
+ SQL (0.254479) DROP TABLE test_posts
1357
+
1358
+ SQL (0.243542) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1359
+
1360
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1361
+
1362
+ SQL (0.000410) PRAGMA table_info(schema_info)
1363
+
1364
+ SQL (0.219158) UPDATE schema_info SET version = 0
1365
+
1366
+ SQL (0.000670) PRAGMA table_info(test_posts)
1367
+
1368
+ SQL (0.000405) SELECT count(*) AS count_all FROM test_posts 
1369
+
1370
+ SQL (0.001280) PRAGMA table_info(activities)
1371
+
1372
+ SQL (0.000303) SELECT count(*) AS count_all FROM activities 
1373
+
1374
+ SQL (0.000523) PRAGMA table_info(test_users)
1375
+
1376
+ TestUser Load (0.000337) SELECT * FROM test_users WHERE (test_users.id = 1) 
1377
+
1378
+ SQL (0.000609) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1379
+
1380
+ SQL (0.000564) PRAGMA table_info(users)
1381
+ app/models/user.rb:72:in `find'
1382
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:33:in `create_activity_from_self'
1383
+ User Load (0.000228) SELECT * FROM users WHERE (users.id = 1) 
1384
+ app/models/user.rb:72:in `find'
1385
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:33:in `create_activity_from_self'
1386
+ SQL (0.000277) SELECT count(*) AS count_all FROM activities 
1387
+
1388
+ SQL (0.332787) DROP TABLE activities
1389
+
1390
+ SQL (0.221176) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1391
+
1392
+ SQL (0.243458) DROP TABLE test_users
1393
+
1394
+ SQL (0.243554) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1395
+
1396
+ SQL (0.254497) DROP TABLE test_posts
1397
+
1398
+ SQL (0.221498) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1399
+
1400
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1401
+
1402
+ SQL (0.000451) PRAGMA table_info(schema_info)
1403
+
1404
+ SQL (0.240931) UPDATE schema_info SET version = 0
1405
+
1406
+ SQL (0.000667) PRAGMA table_info(test_posts)
1407
+
1408
+ SQL (0.000399) SELECT count(*) AS count_all FROM test_posts 
1409
+
1410
+ SQL (0.001176) PRAGMA table_info(activities)
1411
+
1412
+ SQL (0.000311) SELECT count(*) AS count_all FROM activities 
1413
+
1414
+ SQL (0.000475) PRAGMA table_info(test_users)
1415
+
1416
+ TestUser Load (0.000265) SELECT * FROM test_users WHERE (test_users.id = 1) 
1417
+
1418
+ SQL (0.000511) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1419
+
1420
+ SQL (0.000494) PRAGMA table_info(users)
1421
+ app/models/user.rb:72:in `find'
1422
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1423
+ User Load (0.000167) SELECT * FROM users WHERE (users.id = 1) 
1424
+ app/models/user.rb:72:in `find'
1425
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1426
+ SQL (0.000219) SELECT count(*) AS count_all FROM activities 
1427
+
1428
+ SQL (0.375637) DROP TABLE activities
1429
+
1430
+ SQL (0.232258) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1431
+
1432
+ SQL (0.221074) DROP TABLE test_users
1433
+
1434
+ SQL (0.232695) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1435
+
1436
+ SQL (0.253672) DROP TABLE test_posts
1437
+
1438
+ SQL (0.232324) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1439
+
1440
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1441
+
1442
+ SQL (0.000413) PRAGMA table_info(schema_info)
1443
+
1444
+ SQL (0.219267) UPDATE schema_info SET version = 0
1445
+
1446
+ SQL (0.000669) PRAGMA table_info(test_posts)
1447
+
1448
+ SQL (0.000396) SELECT count(*) AS count_all FROM test_posts 
1449
+
1450
+ SQL (0.001176) PRAGMA table_info(activities)
1451
+
1452
+ SQL (0.000297) SELECT count(*) AS count_all FROM activities 
1453
+
1454
+ SQL (0.000473) PRAGMA table_info(test_users)
1455
+
1456
+ TestUser Load (0.000280) SELECT * FROM test_users WHERE (test_users.id = 1) 
1457
+
1458
+ SQL (0.000496) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1459
+
1460
+ SQL (0.000492) PRAGMA table_info(users)
1461
+ app/models/user.rb:72:in `find'
1462
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1463
+ User Load (0.000170) SELECT * FROM users WHERE (users.id = 1) 
1464
+ app/models/user.rb:72:in `find'
1465
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1466
+ SQL (0.365424) DROP TABLE activities
1467
+
1468
+ SQL (0.231973) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1469
+
1470
+ SQL (0.254565) DROP TABLE test_users
1471
+
1472
+ SQL (0.232445) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1473
+
1474
+ SQL (0.221179) DROP TABLE test_posts
1475
+
1476
+ SQL (0.232400) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1477
+
1478
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1479
+
1480
+ SQL (0.000706) PRAGMA table_info(schema_info)
1481
+
1482
+ SQL (0.252129) UPDATE schema_info SET version = 0
1483
+
1484
+ SQL (0.000672) PRAGMA table_info(test_posts)
1485
+
1486
+ SQL (0.000401) SELECT count(*) AS count_all FROM test_posts 
1487
+
1488
+ SQL (0.001161) PRAGMA table_info(activities)
1489
+
1490
+ SQL (0.000311) SELECT count(*) AS count_all FROM activities 
1491
+
1492
+ SQL (0.000473) PRAGMA table_info(test_users)
1493
+
1494
+ TestUser Load (0.000304) SELECT * FROM test_users WHERE (test_users.id = 1) 
1495
+
1496
+ SQL (0.000552) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1497
+
1498
+ SQL (0.000175) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:23:05', 'TestPost')
1499
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1500
+ SQL (0.000186) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:23:05', 'TestPost')
1501
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1502
+ SQL (0.000246) SELECT count(*) AS count_all FROM activities 
1503
+
1504
+ SQL (0.368836) DROP TABLE activities
1505
+
1506
+ SQL (0.215022) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1507
+
1508
+ SQL (0.254521) DROP TABLE test_users
1509
+
1510
+ SQL (0.221401) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1511
+
1512
+ SQL (0.220840) DROP TABLE test_posts
1513
+
1514
+ SQL (0.243486) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1515
+
1516
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1517
+
1518
+ SQL (0.000462) PRAGMA table_info(schema_info)
1519
+
1520
+ SQL (0.252001) UPDATE schema_info SET version = 0
1521
+
1522
+ SQL (0.000657) PRAGMA table_info(test_posts)
1523
+
1524
+ SQL (0.000387) SELECT count(*) AS count_all FROM test_posts 
1525
+
1526
+ SQL (0.001153) PRAGMA table_info(activities)
1527
+
1528
+ SQL (0.000295) SELECT count(*) AS count_all FROM activities 
1529
+
1530
+ SQL (0.000467) PRAGMA table_info(test_users)
1531
+
1532
+ TestUser Load (0.000298) SELECT * FROM test_users WHERE (test_users.id = 1) 
1533
+
1534
+ SQL (0.000501) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1535
+
1536
+ SQL (0.000168) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:23:45', 'TestPost')
1537
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1538
+ SQL (0.000133) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:23:45', 'TestPost')
1539
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1540
+ SQL (0.000250) SELECT count(*) AS count_all FROM activities 
1541
+
1542
+ SQL (0.359625) DROP TABLE activities
1543
+
1544
+ SQL (0.221170) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1545
+
1546
+ SQL (0.243389) DROP TABLE test_users
1547
+
1548
+ SQL (0.243579) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1549
+
1550
+ SQL (0.221214) DROP TABLE test_posts
1551
+
1552
+ SQL (0.232479) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1553
+
1554
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1555
+
1556
+ SQL (0.000408) PRAGMA table_info(schema_info)
1557
+
1558
+ SQL (0.241381) UPDATE schema_info SET version = 0
1559
+
1560
+ SQL (0.000674) PRAGMA table_info(test_posts)
1561
+
1562
+ SQL (0.000393) SELECT count(*) AS count_all FROM test_posts 
1563
+
1564
+ SQL (0.000508) PRAGMA table_info(test_users)
1565
+
1566
+ TestUser Load (0.000317) SELECT * FROM test_users WHERE (test_users.id = 1) 
1567
+
1568
+ SQL (0.000569) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1569
+
1570
+ SQL (0.001182) PRAGMA table_info(activities)
1571
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
1572
+ SQL (0.000239) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:24:07', 'TestPost')
1573
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1574
+ SQL (0.000137) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:24:07', 'TestPost')
1575
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
1576
+ SQL (0.000241) SELECT count(*) AS count_all FROM test_posts 
1577
+
1578
+ SQL (0.452796) DROP TABLE activities
1579
+
1580
+ SQL (0.232222) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1581
+
1582
+ SQL (0.221456) DROP TABLE test_users
1583
+
1584
+ SQL (0.254458) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1585
+
1586
+ SQL (0.243349) DROP TABLE test_posts
1587
+
1588
+ SQL (0.243663) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1589
+
1590
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1591
+
1592
+ SQL (0.000505) PRAGMA table_info(schema_info)
1593
+
1594
+ SQL (0.218403) UPDATE schema_info SET version = 0
1595
+
1596
+ SQL (0.000664) PRAGMA table_info(test_posts)
1597
+
1598
+ SQL (0.000532) SELECT count(*) AS count_all FROM test_posts 
1599
+
1600
+ SQL (0.001160) PRAGMA table_info(activities)
1601
+
1602
+ SQL (0.000290) SELECT count(*) AS count_all FROM activities 
1603
+
1604
+ SQL (0.000525) PRAGMA table_info(test_users)
1605
+
1606
+ TestUser Load (0.000275) SELECT * FROM test_users WHERE (test_users.id = 1) 
1607
+
1608
+ SQL (0.000546) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1609
+
1610
+ SQL (0.000298) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:24:30', 'TestPost')
1611
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1612
+ SQL (0.000190) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:24:30', 'TestPost')
1613
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1614
+ SQL (0.000309) SELECT count(*) AS count_all FROM activities 
1615
+
1616
+ SQL (0.330254) DROP TABLE activities
1617
+
1618
+ SQL (0.254567) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1619
+
1620
+ SQL (0.243392) DROP TABLE test_users
1621
+
1622
+ SQL (0.221441) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1623
+
1624
+ SQL (0.220998) DROP TABLE test_posts
1625
+
1626
+ SQL (0.243589) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1627
+
1628
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1629
+
1630
+ SQL (0.000408) PRAGMA table_info(schema_info)
1631
+
1632
+ SQL (0.241497) UPDATE schema_info SET version = 0
1633
+
1634
+ SQL (0.000659) PRAGMA table_info(test_posts)
1635
+
1636
+ SQL (0.000401) SELECT count(*) AS count_all FROM test_posts 
1637
+
1638
+ SQL (0.001158) PRAGMA table_info(activities)
1639
+
1640
+ SQL (0.000318) SELECT count(*) AS count_all FROM activities 
1641
+
1642
+ SQL (0.000527) PRAGMA table_info(test_users)
1643
+
1644
+ TestUser Load (0.000307) SELECT * FROM test_users WHERE (test_users.id = 1) 
1645
+
1646
+ SQL (0.000622) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1647
+
1648
+ SQL (0.000329) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:24:40', 'TestPost')
1649
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1650
+ SQL (0.000241) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:24:40', 'TestPost')
1651
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1652
+ SQL (0.000384) SELECT count(*) AS count_all FROM activities 
1653
+
1654
+ SQL (0.313593) DROP TABLE activities
1655
+
1656
+ SQL (0.221100) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1657
+
1658
+ SQL (0.221173) DROP TABLE test_users
1659
+
1660
+ SQL (0.243520) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1661
+
1662
+ SQL (0.254530) DROP TABLE test_posts
1663
+
1664
+ SQL (0.221306) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1665
+
1666
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1667
+
1668
+ SQL (0.000414) PRAGMA table_info(schema_info)
1669
+
1670
+ SQL (0.219153) UPDATE schema_info SET version = 0
1671
+
1672
+ SQL (0.000733) PRAGMA table_info(test_posts)
1673
+
1674
+ SQL (0.000409) SELECT count(*) AS count_all FROM test_posts 
1675
+
1676
+ SQL (0.001273) PRAGMA table_info(activities)
1677
+
1678
+ SQL (0.000293) SELECT count(*) AS count_all FROM activities 
1679
+
1680
+ SQL (0.000524) PRAGMA table_info(test_users)
1681
+
1682
+ TestUser Load (0.000349) SELECT * FROM test_users WHERE (test_users.id = 1) 
1683
+
1684
+ SQL (0.000577) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1685
+
1686
+ SQL (0.377995) DROP TABLE activities
1687
+
1688
+ SQL (0.221197) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1689
+
1690
+ SQL (0.231603) DROP TABLE test_users
1691
+
1692
+ SQL (0.243622) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1693
+
1694
+ SQL (0.254279) DROP TABLE test_posts
1695
+
1696
+ SQL (0.221474) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1697
+
1698
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1699
+
1700
+ SQL (0.000410) PRAGMA table_info(schema_info)
1701
+
1702
+ SQL (0.219017) UPDATE schema_info SET version = 0
1703
+
1704
+ SQL (0.000663) PRAGMA table_info(test_posts)
1705
+
1706
+ SQL (0.000402) SELECT count(*) AS count_all FROM test_posts 
1707
+
1708
+ SQL (0.001158) PRAGMA table_info(activities)
1709
+
1710
+ SQL (0.000287) SELECT count(*) AS count_all FROM activities 
1711
+
1712
+ SQL (0.000525) PRAGMA table_info(test_users)
1713
+
1714
+ TestUser Load (0.000354) SELECT * FROM test_users WHERE (test_users.id = 1) 
1715
+
1716
+ SQL (0.000594) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1717
+
1718
+ SQL (0.000398) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:25:23', 'TestPost')
1719
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1720
+ SQL (0.000391) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:25:23', 'TestPost')
1721
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1722
+ SQL (0.000388) SELECT count(*) AS count_all FROM activities 
1723
+
1724
+ SQL (0.344658) DROP TABLE activities
1725
+
1726
+ SQL (0.221276) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1727
+
1728
+ SQL (0.232315) DROP TABLE test_users
1729
+
1730
+ SQL (0.254755) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1731
+
1732
+ SQL (0.243333) DROP TABLE test_posts
1733
+
1734
+ SQL (0.221318) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1735
+
1736
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1737
+
1738
+ SQL (0.000510) PRAGMA table_info(schema_info)
1739
+
1740
+ SQL (0.218839) UPDATE schema_info SET version = 0
1741
+
1742
+ SQL (0.000666) PRAGMA table_info(test_posts)
1743
+
1744
+ SQL (0.000405) SELECT count(*) AS count_all FROM test_posts 
1745
+
1746
+ SQL (0.001165) PRAGMA table_info(activities)
1747
+
1748
+ SQL (0.000312) SELECT count(*) AS count_all FROM activities 
1749
+
1750
+ SQL (0.000538) PRAGMA table_info(test_users)
1751
+
1752
+ TestUser Load (0.000313) SELECT * FROM test_users WHERE (test_users.id = 1) 
1753
+
1754
+ SQL (0.000574) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1755
+
1756
+ SQL (0.000310) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:26:04', 'TestPost')
1757
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1758
+ SQL (0.000237) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:26:04', 'TestPost')
1759
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1760
+ SQL (0.000364) SELECT count(*) AS count_all FROM activities 
1761
+
1762
+ SQL (0.367369) DROP TABLE activities
1763
+
1764
+ SQL (0.221074) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1765
+
1766
+ SQL (0.221455) DROP TABLE test_users
1767
+
1768
+ SQL (0.232095) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1769
+
1770
+ SQL (0.254610) DROP TABLE test_posts
1771
+
1772
+ SQL (0.232420) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1773
+
1774
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1775
+
1776
+ SQL (0.000409) PRAGMA table_info(schema_info)
1777
+
1778
+ SQL (0.219230) UPDATE schema_info SET version = 0
1779
+
1780
+ SQL (0.001142) PRAGMA table_info(activities)
1781
+
1782
+ SQL (0.000379) SELECT count(*) AS count_all FROM activities 
1783
+
1784
+ SQL (0.000659) PRAGMA table_info(test_posts)
1785
+
1786
+ SQL (0.000497) PRAGMA table_info(test_users)
1787
+
1788
+ TestUser Load (0.000304) SELECT * FROM test_users WHERE (test_users.id = 1) 
1789
+
1790
+ SQL (0.000509) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1791
+
1792
+ SQL (0.000288) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:26:24', 'TestPost')
1793
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1794
+ SQL (0.000219) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:26:24', 'TestPost')
1795
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
1796
+ SQL (0.000287) SELECT count(*) AS count_all FROM activities 
1797
+
1798
+ SQL (0.344626) DROP TABLE activities
1799
+
1800
+ SQL (0.221222) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1801
+
1802
+ SQL (0.243636) DROP TABLE test_users
1803
+
1804
+ SQL (0.243336) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1805
+
1806
+ SQL (0.254168) DROP TABLE test_posts
1807
+
1808
+ SQL (0.221320) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1809
+
1810
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1811
+
1812
+ SQL (0.000411) PRAGMA table_info(schema_info)
1813
+
1814
+ SQL (0.230142) UPDATE schema_info SET version = 0
1815
+
1816
+ SQL (0.001174) PRAGMA table_info(activities)
1817
+
1818
+ SQL (0.000396) SELECT count(*) AS count_all FROM activities 
1819
+
1820
+ SQL (0.000695) PRAGMA table_info(test_posts)
1821
+
1822
+ SQL (0.000533) PRAGMA table_info(test_users)
1823
+
1824
+ TestUser Load (0.000345) SELECT * FROM test_users WHERE (test_users.id = 1) 
1825
+
1826
+ SQL (0.000580) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1827
+
1828
+ SQL (0.000290) SELECT count(*) AS count_all FROM activities 
1829
+
1830
+ SQL (0.313895) DROP TABLE activities
1831
+
1832
+ SQL (0.221129) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1833
+
1834
+ SQL (0.254554) DROP TABLE test_users
1835
+
1836
+ SQL (0.221322) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1837
+
1838
+ SQL (0.221166) DROP TABLE test_posts
1839
+
1840
+ SQL (0.221206) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1841
+
1842
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1843
+
1844
+ SQL (0.000403) PRAGMA table_info(schema_info)
1845
+
1846
+ SQL (0.252562) UPDATE schema_info SET version = 0
1847
+
1848
+ SQL (0.001166) PRAGMA table_info(activities)
1849
+
1850
+ SQL (0.000396) SELECT count(*) AS count_all FROM activities 
1851
+
1852
+ SQL (0.000654) PRAGMA table_info(test_posts)
1853
+
1854
+ SQL (0.000578) PRAGMA table_info(test_users)
1855
+
1856
+ TestUser Load (0.000347) SELECT * FROM test_users WHERE (test_users.id = 1) 
1857
+
1858
+ SQL (0.000606) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1859
+
1860
+ SQL (0.000363) SELECT count(*) AS count_all FROM activities 
1861
+
1862
+ SQL (0.387288) DROP TABLE activities
1863
+
1864
+ SQL (0.221011) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1865
+
1866
+ SQL (0.254433) DROP TABLE test_users
1867
+
1868
+ SQL (0.243870) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1869
+
1870
+ SQL (0.220912) DROP TABLE test_posts
1871
+
1872
+ SQL (0.221409) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1873
+
1874
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1875
+
1876
+ SQL (0.000412) PRAGMA table_info(schema_info)
1877
+
1878
+ SQL (0.241447) UPDATE schema_info SET version = 0
1879
+
1880
+ SQL (0.001246) PRAGMA table_info(activities)
1881
+
1882
+ SQL (0.000394) SELECT count(*) AS count_all FROM activities 
1883
+
1884
+ SQL (0.000652) PRAGMA table_info(test_posts)
1885
+
1886
+ SQL (0.000507) PRAGMA table_info(test_users)
1887
+
1888
+ TestUser Load (0.000323) SELECT * FROM test_users WHERE (test_users.id = 1) 
1889
+
1890
+ SQL (0.000581) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1891
+
1892
+ SQL (0.000291) SELECT count(*) AS count_all FROM activities 
1893
+
1894
+ SQL (0.411480) DROP TABLE activities
1895
+
1896
+ SQL (0.243126) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1897
+
1898
+ SQL (0.232309) DROP TABLE test_users
1899
+
1900
+ SQL (0.232363) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1901
+
1902
+ SQL (0.220920) DROP TABLE test_posts
1903
+
1904
+ SQL (0.221392) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1905
+
1906
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1907
+
1908
+ SQL (0.000383) PRAGMA table_info(schema_info)
1909
+
1910
+ SQL (0.218929) UPDATE schema_info SET version = 0
1911
+
1912
+ SQL (0.001237) PRAGMA table_info(activities)
1913
+
1914
+ SQL (0.000387) SELECT count(*) AS count_all FROM activities 
1915
+
1916
+ SQL (0.000659) PRAGMA table_info(test_posts)
1917
+
1918
+ SQL (0.000495) PRAGMA table_info(test_users)
1919
+
1920
+ TestUser Load (0.000309) SELECT * FROM test_users WHERE (test_users.id = 1) 
1921
+
1922
+ SQL (0.144706) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1923
+
1924
+ SQL (0.000256) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:30:25', 'TestPost')
1925
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:36:in `create_activity_from_self'
1926
+ SQL (0.000222) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:31:41', 'TestPost')
1927
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:36:in `create_activity_from_self'
1928
+ SQL (0.000281) SELECT count(*) AS count_all FROM activities 
1929
+
1930
+ SQL (0.000601) SELECT count(*) AS count_all FROM activities 
1931
+
1932
+ TestUser Load (0.000309) SELECT * FROM test_users WHERE (test_users.id = 1) 
1933
+
1934
+ SQL (0.000607) SELECT count(*) AS count_all FROM activities 
1935
+
1936
+ SQL (0.000260) SELECT count(*) AS count_all FROM activities 
1937
+
1938
+ SQL (0.326487) DROP TABLE activities
1939
+
1940
+ SQL (0.232162) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1941
+
1942
+ SQL (0.221216) DROP TABLE test_users
1943
+
1944
+ SQL (0.221016) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1945
+
1946
+ SQL (0.254214) DROP TABLE test_posts
1947
+
1948
+ SQL (0.232454) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1949
+
1950
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1951
+
1952
+ SQL (0.000382) PRAGMA table_info(schema_info)
1953
+
1954
+ SQL (0.219126) UPDATE schema_info SET version = 0
1955
+
1956
+ SQL (0.001210) PRAGMA table_info(activities)
1957
+
1958
+ SQL (0.000387) SELECT count(*) AS count_all FROM activities 
1959
+
1960
+ SQL (0.000660) PRAGMA table_info(test_posts)
1961
+
1962
+ SQL (0.000498) PRAGMA table_info(test_users)
1963
+
1964
+ TestUser Load (0.000306) SELECT * FROM test_users WHERE (test_users.id = 1) 
1965
+
1966
+ SQL (0.000557) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
1967
+
1968
+ SQL (0.000308) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'post', 1, '2007-02-01 11:33:16', 'TestPost')
1969
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:29:in `create_activity_from_self'
1970
+ SQL (0.000226) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:33:36', 'TestPost')
1971
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:36:in `create_activity_from_self'
1972
+ SQL (0.000222) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:33:40', 'TestPost')
1973
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:36:in `create_activity_from_self'
1974
+ SQL (0.000289) SELECT count(*) AS count_all FROM activities 
1975
+
1976
+ SQL (0.000620) SELECT count(*) AS count_all FROM activities 
1977
+
1978
+ TestUser Load (0.000342) SELECT * FROM test_users WHERE (test_users.id = 1) 
1979
+
1980
+ SQL (0.000514) SELECT count(*) AS count_all FROM activities 
1981
+
1982
+ SQL (0.000230) SELECT count(*) AS count_all FROM activities 
1983
+
1984
+ SQL (0.295657) DROP TABLE activities
1985
+
1986
+ SQL (0.221069) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
1987
+
1988
+ SQL (0.221113) DROP TABLE test_users
1989
+
1990
+ SQL (0.254505) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
1991
+
1992
+ SQL (0.232214) DROP TABLE test_posts
1993
+
1994
+ SQL (0.221193) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
1995
+
1996
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
1997
+
1998
+ SQL (0.000386) PRAGMA table_info(schema_info)
1999
+
2000
+ SQL (0.219029) UPDATE schema_info SET version = 0
2001
+
2002
+ SQL (0.001152) PRAGMA table_info(activities)
2003
+
2004
+ SQL (0.000430) SELECT count(*) AS count_all FROM activities 
2005
+
2006
+ SQL (0.000667) PRAGMA table_info(test_posts)
2007
+
2008
+ SQL (0.000508) PRAGMA table_info(test_users)
2009
+
2010
+ TestUser Load (0.000333) SELECT * FROM test_users WHERE (test_users.id = 1) 
2011
+
2012
+ SQL (0.000624) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2013
+
2014
+ SQL (0.000252) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:34:08', 'TestPost')
2015
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:36:in `create_activity_from_self'
2016
+ SQL (0.000185) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:34:08', 'TestPost')
2017
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:36:in `create_activity_from_self'
2018
+ SQL (0.000292) SELECT count(*) AS count_all FROM activities 
2019
+
2020
+ SQL (0.000639) SELECT count(*) AS count_all FROM activities 
2021
+
2022
+ TestUser Load (0.000380) SELECT * FROM test_users WHERE (test_users.id = 1) 
2023
+
2024
+ SQL (0.000595) SELECT count(*) AS count_all FROM activities 
2025
+
2026
+ SQL (0.000275) SELECT count(*) AS count_all FROM activities 
2027
+
2028
+ SQL (0.325662) DROP TABLE activities
2029
+
2030
+ SQL (0.232101) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2031
+
2032
+ SQL (0.221111) DROP TABLE test_users
2033
+
2034
+ SQL (0.221368) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2035
+
2036
+ SQL (0.243266) DROP TABLE test_posts
2037
+
2038
+ SQL (0.232351) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2039
+
2040
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2041
+
2042
+ SQL (0.000369) PRAGMA table_info(schema_info)
2043
+
2044
+ SQL (0.219008) UPDATE schema_info SET version = 0
2045
+
2046
+ SQL (0.001148) PRAGMA table_info(activities)
2047
+
2048
+ SQL (0.000384) SELECT count(*) AS count_all FROM activities 
2049
+
2050
+ SQL (0.000661) PRAGMA table_info(test_posts)
2051
+
2052
+ SQL (0.000500) PRAGMA table_info(test_users)
2053
+
2054
+ TestUser Load (0.000391) SELECT * FROM test_users WHERE (test_users.id = 1) 
2055
+
2056
+ SQL (0.000588) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2057
+
2058
+ SQL (0.000209) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:34:52', 'TestPost')
2059
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
2060
+ SQL (0.000205) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:34:52', 'TestPost')
2061
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:35:in `create_activity_from_self'
2062
+ SQL (0.000316) SELECT count(*) AS count_all FROM activities 
2063
+
2064
+ SQL (0.000570) SELECT count(*) AS count_all FROM activities 
2065
+
2066
+ TestUser Load (0.000307) SELECT * FROM test_users WHERE (test_users.id = 1) 
2067
+
2068
+ SQL (0.000546) SELECT count(*) AS count_all FROM activities 
2069
+
2070
+ SQL (0.000257) SELECT count(*) AS count_all FROM activities 
2071
+
2072
+ SQL (0.278265) DROP TABLE activities
2073
+
2074
+ SQL (0.232375) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2075
+
2076
+ SQL (0.220947) DROP TABLE test_users
2077
+
2078
+ SQL (0.232528) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2079
+
2080
+ SQL (0.221104) DROP TABLE test_posts
2081
+
2082
+ SQL (0.254644) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2083
+
2084
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2085
+
2086
+ SQL (0.000411) PRAGMA table_info(schema_info)
2087
+
2088
+ SQL (0.218979) UPDATE schema_info SET version = 0
2089
+
2090
+ SQL (0.001164) PRAGMA table_info(activities)
2091
+
2092
+ SQL (0.000371) SELECT count(*) AS count_all FROM activities 
2093
+
2094
+ SQL (0.000683) PRAGMA table_info(test_posts)
2095
+
2096
+ SQL (0.000498) PRAGMA table_info(test_users)
2097
+
2098
+ TestUser Load (0.000286) SELECT * FROM test_users WHERE (test_users.id = 1) 
2099
+
2100
+ SQL (0.000564) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2101
+
2102
+ SQL (0.000275) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:35:33', 'TestPost')
2103
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
2104
+ SQL (0.000338) SELECT count(*) AS count_all FROM activities 
2105
+
2106
+ SQL (0.353169) DROP TABLE activities
2107
+
2108
+ SQL (0.221148) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2109
+
2110
+ SQL (0.221090) DROP TABLE test_users
2111
+
2112
+ SQL (0.254814) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2113
+
2114
+ SQL (0.232133) DROP TABLE test_posts
2115
+
2116
+ SQL (0.232379) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2117
+
2118
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2119
+
2120
+ SQL (0.000408) PRAGMA table_info(schema_info)
2121
+
2122
+ SQL (0.219298) UPDATE schema_info SET version = 0
2123
+
2124
+ SQL (0.000673) PRAGMA table_info(test_posts)
2125
+
2126
+ SQL (0.000418) SELECT count(*) AS count_all FROM test_posts 
2127
+
2128
+ SQL (0.001157) PRAGMA table_info(activities)
2129
+
2130
+ SQL (0.000298) SELECT count(*) AS count_all FROM activities 
2131
+
2132
+ SQL (0.000528) PRAGMA table_info(test_users)
2133
+
2134
+ TestUser Load (0.000314) SELECT * FROM test_users WHERE (test_users.id = 1) 
2135
+
2136
+ SQL (0.000539) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2137
+
2138
+ SQL (0.000177) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:35:50', 'TestPost')
2139
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:33:in `create_activity_from_self'
2140
+ SQL (0.000234) SELECT count(*) AS count_all FROM activities 
2141
+
2142
+ SQL (0.000218) SELECT count(*) AS count_all FROM test_posts 
2143
+
2144
+ SQL (0.327126) DROP TABLE activities
2145
+
2146
+ SQL (0.221471) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2147
+
2148
+ SQL (0.243131) DROP TABLE test_users
2149
+
2150
+ SQL (0.232476) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2151
+
2152
+ SQL (0.221200) DROP TABLE test_posts
2153
+
2154
+ SQL (0.221070) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2155
+
2156
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2157
+
2158
+ SQL (0.000404) PRAGMA table_info(schema_info)
2159
+
2160
+ SQL (0.253031) UPDATE schema_info SET version = 0
2161
+
2162
+ SQL (0.000674) PRAGMA table_info(test_posts)
2163
+
2164
+ SQL (0.000393) SELECT count(*) AS count_all FROM test_posts 
2165
+
2166
+ SQL (0.001141) PRAGMA table_info(activities)
2167
+
2168
+ SQL (0.000293) SELECT count(*) AS count_all FROM activities 
2169
+
2170
+ SQL (0.000523) PRAGMA table_info(test_users)
2171
+
2172
+ TestUser Load (0.000308) SELECT * FROM test_users WHERE (test_users.id = 1) 
2173
+
2174
+ SQL (0.000562) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', NULL)
2175
+
2176
+ SQL (0.335637) DROP TABLE activities
2177
+
2178
+ SQL (0.221176) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2179
+
2180
+ SQL (0.243266) DROP TABLE test_users
2181
+
2182
+ SQL (0.232354) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2183
+
2184
+ SQL (0.232380) DROP TABLE test_posts
2185
+
2186
+ SQL (0.221301) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2187
+
2188
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2189
+
2190
+ SQL (0.000416) PRAGMA table_info(schema_info)
2191
+
2192
+ SQL (0.241263) UPDATE schema_info SET version = 0
2193
+
2194
+ SQL (0.000662) PRAGMA table_info(test_posts)
2195
+
2196
+ SQL (0.000394) SELECT count(*) AS count_all FROM test_posts 
2197
+
2198
+ SQL (0.001187) PRAGMA table_info(activities)
2199
+
2200
+ SQL (0.000294) SELECT count(*) AS count_all FROM activities 
2201
+
2202
+ SQL (0.000508) PRAGMA table_info(test_users)
2203
+
2204
+ TestUser Load (0.000316) SELECT * FROM test_users WHERE (test_users.id = 1) 
2205
+
2206
+ SQL (0.000565) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2207
+
2208
+ SQL (0.000227) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:36:42', 'TestPost')
2209
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:33:in `create_activity_from_self'
2210
+ SQL (0.000275) SELECT count(*) AS count_all FROM activities 
2211
+
2212
+ SQL (0.000269) SELECT count(*) AS count_all FROM test_posts 
2213
+
2214
+ SQL (0.000618) SELECT count(*) AS count_all FROM activities 
2215
+
2216
+ TestUser Load (0.000874) SELECT * FROM test_users WHERE (test_users.id = 1) 
2217
+
2218
+ SQL (0.000576) SELECT count(*) AS count_all FROM activities 
2219
+
2220
+ SQL (0.000295) SELECT count(*) AS count_all FROM activities 
2221
+
2222
+ SQL (0.292282) DROP TABLE activities
2223
+
2224
+ SQL (0.243728) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2225
+
2226
+ SQL (0.220803) DROP TABLE test_users
2227
+
2228
+ SQL (0.221379) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2229
+
2230
+ SQL (0.221173) DROP TABLE test_posts
2231
+
2232
+ SQL (0.254509) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2233
+
2234
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2235
+
2236
+ SQL (0.000492) PRAGMA table_info(schema_info)
2237
+
2238
+ SQL (0.218471) UPDATE schema_info SET version = 0
2239
+
2240
+ SQL (0.000669) PRAGMA table_info(test_posts)
2241
+
2242
+ SQL (0.000409) SELECT count(*) AS count_all FROM test_posts 
2243
+
2244
+ SQL (0.001233) PRAGMA table_info(activities)
2245
+
2246
+ SQL (0.000319) SELECT count(*) AS count_all FROM activities 
2247
+
2248
+ SQL (0.000467) PRAGMA table_info(test_users)
2249
+
2250
+ TestUser Load (0.000294) SELECT * FROM test_users WHERE (test_users.id = 1) 
2251
+
2252
+ SQL (0.000502) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2253
+
2254
+ SQL (0.000186) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-01 11:36:51', 'TestPost')
2255
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:33:in `create_activity_from_self'
2256
+ SQL (0.000237) SELECT count(*) AS count_all FROM activities 
2257
+
2258
+ SQL (0.000206) SELECT count(*) AS count_all FROM test_posts 
2259
+
2260
+ SQL (0.405525) DROP TABLE activities
2261
+
2262
+ SQL (0.221067) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2263
+
2264
+ SQL (0.221090) DROP TABLE test_users
2265
+
2266
+ SQL (0.254755) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2267
+
2268
+ SQL (0.232390) DROP TABLE test_posts
2269
+
2270
+ SQL (0.221344) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2271
+
2272
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2273
+
2274
+ SQL (0.000405) PRAGMA table_info(schema_info)
2275
+
2276
+ SQL (0.218868) UPDATE schema_info SET version = 0
2277
+
2278
+ SQL (0.001140) PRAGMA table_info(activities)
2279
+
2280
+ SQL (0.000379) SELECT count(*) AS count_all FROM activities 
2281
+
2282
+ SQL (0.000666) PRAGMA table_info(test_posts)
2283
+
2284
+ SQL (0.000566) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2285
+
2286
+ SQL (0.314293) DROP TABLE activities
2287
+
2288
+ SQL (0.221147) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2289
+
2290
+ SQL (0.232315) DROP TABLE test_users
2291
+
2292
+ SQL (0.232491) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2293
+
2294
+ SQL (0.221151) DROP TABLE test_posts
2295
+
2296
+ SQL (0.221390) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2297
+
2298
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2299
+
2300
+ SQL (0.000449) PRAGMA table_info(schema_info)
2301
+
2302
+ SQL (0.219017) UPDATE schema_info SET version = 0
2303
+
2304
+ SQL (0.001142) PRAGMA table_info(activities)
2305
+
2306
+ SQL (0.000382) SELECT count(*) AS count_all FROM activities 
2307
+
2308
+ SQL (0.000659) PRAGMA table_info(test_posts)
2309
+
2310
+ SQL (0.000594) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2311
+
2312
+ SQL (0.000415) SELECT count(*) AS count_all FROM activities 
2313
+
2314
+ SQL (0.349819) DROP TABLE activities
2315
+
2316
+ SQL (0.221068) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2317
+
2318
+ SQL (0.220972) DROP TABLE test_users
2319
+
2320
+ SQL (0.232425) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2321
+
2322
+ SQL (0.254399) DROP TABLE test_posts
2323
+
2324
+ SQL (0.232320) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2325
+
2326
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2327
+
2328
+ SQL (0.000409) PRAGMA table_info(schema_info)
2329
+
2330
+ SQL (0.219205) UPDATE schema_info SET version = 0
2331
+
2332
+ SQL (0.000663) PRAGMA table_info(test_posts)
2333
+
2334
+ SQL (0.000450) SELECT count(*) AS count_all FROM test_posts 
2335
+
2336
+ SQL (0.001137) PRAGMA table_info(activities)
2337
+
2338
+ SQL (0.000297) SELECT count(*) AS count_all FROM activities 
2339
+
2340
+ SQL (0.000565) PRAGMA table_info(test_users)
2341
+
2342
+ TestUser Load (0.000337) SELECT * FROM test_users WHERE (test_users.id = 1) 
2343
+
2344
+ SQL (0.000581) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2345
+
2346
+ SQL (0.000235) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 06:56:45', 'TestPost')
2347
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:33:in `create_activity_from_self'
2348
+ SQL (0.000269) SELECT count(*) AS count_all FROM activities 
2349
+
2350
+ SQL (0.000277) SELECT count(*) AS count_all FROM test_posts 
2351
+
2352
+ SQL (0.000628) SELECT count(*) AS count_all FROM activities 
2353
+
2354
+ TestUser Load (0.000452) SELECT * FROM test_users WHERE (test_users.id = 1) 
2355
+
2356
+ SQL (0.001682) SELECT count(*) AS count_all FROM activities 
2357
+
2358
+ SQL (0.000596) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2359
+
2360
+ SQL (0.000410) SELECT count(*) AS count_all FROM activities 
2361
+
2362
+ SQL (0.346005) DROP TABLE activities
2363
+
2364
+ SQL (0.232185) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2365
+
2366
+ SQL (0.221161) DROP TABLE test_users
2367
+
2368
+ SQL (0.221318) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2369
+
2370
+ SQL (0.254616) DROP TABLE test_posts
2371
+
2372
+ SQL (0.232454) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2373
+
2374
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2375
+
2376
+ SQL (0.000404) PRAGMA table_info(schema_info)
2377
+
2378
+ SQL (0.219089) UPDATE schema_info SET version = 0
2379
+
2380
+ SQL (0.000741) PRAGMA table_info(test_posts)
2381
+
2382
+ SQL (0.000458) SELECT count(*) AS count_all FROM test_posts 
2383
+
2384
+ SQL (0.001257) PRAGMA table_info(activities)
2385
+
2386
+ SQL (0.000345) SELECT count(*) AS count_all FROM activities 
2387
+
2388
+ SQL (0.000531) PRAGMA table_info(test_users)
2389
+
2390
+ TestUser Load (0.000326) SELECT * FROM test_users WHERE (test_users.id = 1) 
2391
+
2392
+ SQL (0.000550) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2393
+
2394
+ SQL (0.000228) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 07:00:54', 'TestPost')
2395
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:34:in `create_activity_from_self'
2396
+ SQL (0.000237) SELECT count(*) AS count_all FROM activities 
2397
+
2398
+ SQL (0.000240) SELECT count(*) AS count_all FROM test_posts 
2399
+
2400
+ SQL (0.001055) SELECT count(*) AS count_all FROM activities 
2401
+
2402
+ TestUser Load (0.000455) SELECT * FROM test_users WHERE (test_users.id = 1) 
2403
+
2404
+ SQL (0.000597) SELECT count(*) AS count_all FROM activities 
2405
+
2406
+ SQL (0.001162) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2407
+
2408
+ SQL (0.000276) SELECT count(*) AS count_all FROM activities 
2409
+
2410
+ SQL (0.276377) DROP TABLE activities
2411
+
2412
+ SQL (0.221120) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2413
+
2414
+ SQL (0.254425) DROP TABLE test_users
2415
+
2416
+ SQL (0.232441) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2417
+
2418
+ SQL (0.221035) DROP TABLE test_posts
2419
+
2420
+ SQL (0.221224) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2421
+
2422
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2423
+
2424
+ SQL (0.000408) PRAGMA table_info(schema_info)
2425
+
2426
+ SQL (0.252576) UPDATE schema_info SET version = 0
2427
+
2428
+ SQL (0.000662) PRAGMA table_info(test_posts)
2429
+
2430
+ SQL (0.000394) SELECT count(*) AS count_all FROM test_posts 
2431
+
2432
+ SQL (0.001136) PRAGMA table_info(activities)
2433
+
2434
+ SQL (0.000277) SELECT count(*) AS count_all FROM activities 
2435
+
2436
+ SQL (0.000511) PRAGMA table_info(test_users)
2437
+
2438
+ TestUser Load (0.000315) SELECT * FROM test_users WHERE (test_users.id = 1) 
2439
+
2440
+ SQL (0.000571) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2441
+
2442
+ SQL (0.000213) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 07:01:59', 'TestPost')
2443
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:40:in `create_activity_from_self'
2444
+ SQL (0.000271) SELECT count(*) AS count_all FROM activities 
2445
+
2446
+ SQL (0.000278) SELECT count(*) AS count_all FROM test_posts 
2447
+
2448
+ SQL (0.000620) SELECT count(*) AS count_all FROM activities 
2449
+
2450
+ TestUser Load (0.000469) SELECT * FROM test_users WHERE (test_users.id = 1) 
2451
+
2452
+ SQL (0.001263) SELECT count(*) AS count_all FROM activities 
2453
+
2454
+ SQL (0.000583) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2455
+
2456
+ SQL (0.000355) SELECT count(*) AS count_all FROM activities 
2457
+
2458
+ SQL (0.321781) DROP TABLE activities
2459
+
2460
+ SQL (0.221228) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2461
+
2462
+ SQL (0.265476) DROP TABLE test_users
2463
+
2464
+ SQL (0.232512) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2465
+
2466
+ SQL (0.221043) DROP TABLE test_posts
2467
+
2468
+ SQL (0.221433) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2469
+
2470
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2471
+
2472
+ SQL (0.000417) PRAGMA table_info(schema_info)
2473
+
2474
+ SQL (0.241396) UPDATE schema_info SET version = 0
2475
+
2476
+ SQL (0.001139) PRAGMA table_info(activities)
2477
+
2478
+ SQL (0.000390) SELECT count(*) AS count_all FROM activities 
2479
+
2480
+ SQL (0.000493) PRAGMA table_info(test_users)
2481
+
2482
+ TestUser Load (0.000330) SELECT * FROM test_users WHERE (test_users.id = 1) 
2483
+
2484
+ SQL (0.340542) DROP TABLE activities
2485
+
2486
+ SQL (0.243338) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2487
+
2488
+ SQL (0.221326) DROP TABLE test_users
2489
+
2490
+ SQL (0.221258) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2491
+
2492
+ SQL (0.232290) DROP TABLE test_posts
2493
+
2494
+ SQL (0.354466) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2495
+
2496
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2497
+
2498
+ SQL (0.000395) PRAGMA table_info(schema_info)
2499
+
2500
+ SQL (0.385747) UPDATE schema_info SET version = 0
2501
+
2502
+ SQL (0.001160) PRAGMA table_info(activities)
2503
+
2504
+ SQL (0.000391) SELECT count(*) AS count_all FROM activities 
2505
+
2506
+ SQL (0.000491) PRAGMA table_info(test_users)
2507
+
2508
+ TestUser Load (0.000308) SELECT * FROM test_users WHERE (test_users.id = 1) 
2509
+
2510
+ SQL (0.351763) DROP TABLE activities
2511
+
2512
+ SQL (0.243416) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2513
+
2514
+ SQL (0.243430) DROP TABLE test_users
2515
+
2516
+ SQL (0.254735) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2517
+
2518
+ SQL (0.243314) DROP TABLE test_posts
2519
+
2520
+ SQL (0.243555) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2521
+
2522
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2523
+
2524
+ SQL (0.000393) PRAGMA table_info(schema_info)
2525
+
2526
+ SQL (0.241303) UPDATE schema_info SET version = 0
2527
+
2528
+ SQL (0.339300) DROP TABLE activities
2529
+
2530
+ SQL (0.243321) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2531
+
2532
+ SQL (0.254455) DROP TABLE test_users
2533
+
2534
+ SQL (0.243638) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2535
+
2536
+ SQL (0.243407) DROP TABLE test_posts
2537
+
2538
+ SQL (0.254878) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2539
+
2540
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2541
+
2542
+ SQL (0.000397) PRAGMA table_info(schema_info)
2543
+
2544
+ SQL (0.263148) UPDATE schema_info SET version = 0
2545
+
2546
+ SQL (0.344393) DROP TABLE activities
2547
+
2548
+ SQL (0.243289) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2549
+
2550
+ SQL (0.254546) DROP TABLE test_users
2551
+
2552
+ SQL (0.231992) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2553
+
2554
+ SQL (0.243375) DROP TABLE test_posts
2555
+
2556
+ SQL (0.243564) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2557
+
2558
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2559
+
2560
+ SQL (0.000395) PRAGMA table_info(schema_info)
2561
+
2562
+ SQL (0.252461) UPDATE schema_info SET version = 0
2563
+
2564
+ SQL (0.001153) PRAGMA table_info(activities)
2565
+
2566
+ SQL (0.000392) SELECT count(*) AS count_all FROM activities 
2567
+
2568
+ SQL (0.000493) PRAGMA table_info(test_users)
2569
+
2570
+ TestUser Load (0.000326) SELECT * FROM test_users WHERE (test_users.id = 1) 
2571
+
2572
+ SQL (0.000555) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 07:09:16', NULL)
2573
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:49:in `track_activity'
2574
+ SQL (0.000267) SELECT count(*) AS count_all FROM activities 
2575
+
2576
+ SQL (0.364593) DROP TABLE activities
2577
+
2578
+ SQL (0.232205) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2579
+
2580
+ SQL (0.243365) DROP TABLE test_users
2581
+
2582
+ SQL (0.243465) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2583
+
2584
+ SQL (0.254663) DROP TABLE test_posts
2585
+
2586
+ SQL (0.232208) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2587
+
2588
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2589
+
2590
+ SQL (0.000396) PRAGMA table_info(schema_info)
2591
+
2592
+ SQL (0.241487) UPDATE schema_info SET version = 0
2593
+
2594
+ SQL (0.001200) PRAGMA table_info(activities)
2595
+
2596
+ SQL (0.000397) SELECT count(*) AS count_all FROM activities 
2597
+
2598
+ SQL (0.000507) PRAGMA table_info(test_users)
2599
+
2600
+ TestUser Load (0.000325) SELECT * FROM test_users WHERE (test_users.id = 1) 
2601
+
2602
+ SQL (0.344148) DROP TABLE activities
2603
+
2604
+ SQL (0.243276) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2605
+
2606
+ SQL (0.243251) DROP TABLE test_users
2607
+
2608
+ SQL (0.254703) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2609
+
2610
+ SQL (0.243336) DROP TABLE test_posts
2611
+
2612
+ SQL (0.254761) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2613
+
2614
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2615
+
2616
+ SQL (0.000400) PRAGMA table_info(schema_info)
2617
+
2618
+ SQL (0.252660) UPDATE schema_info SET version = 0
2619
+
2620
+ SQL (0.001147) PRAGMA table_info(activities)
2621
+
2622
+ SQL (0.000384) SELECT count(*) AS count_all FROM activities 
2623
+
2624
+ SQL (0.000557) PRAGMA table_info(test_users)
2625
+
2626
+ TestUser Load (0.000330) SELECT * FROM test_users WHERE (test_users.id = 1) 
2627
+
2628
+ SQL (0.322935) DROP TABLE activities
2629
+
2630
+ SQL (0.232129) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2631
+
2632
+ SQL (0.243379) DROP TABLE test_users
2633
+
2634
+ SQL (0.254682) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2635
+
2636
+ SQL (0.265650) DROP TABLE test_posts
2637
+
2638
+ SQL (0.232398) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2639
+
2640
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2641
+
2642
+ SQL (0.000424) PRAGMA table_info(schema_info)
2643
+
2644
+ SQL (0.230028) UPDATE schema_info SET version = 0
2645
+
2646
+ SQL (0.001165) PRAGMA table_info(activities)
2647
+
2648
+ SQL (0.000384) SELECT count(*) AS count_all FROM activities 
2649
+
2650
+ SQL (0.000502) PRAGMA table_info(test_users)
2651
+
2652
+ TestUser Load (0.000322) SELECT * FROM test_users WHERE (test_users.id = 1) 
2653
+
2654
+ SQL (0.357382) DROP TABLE activities
2655
+
2656
+ SQL (0.254369) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2657
+
2658
+ SQL (0.243426) DROP TABLE test_users
2659
+
2660
+ SQL (0.232419) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2661
+
2662
+ SQL (0.243207) DROP TABLE test_posts
2663
+
2664
+ SQL (0.243660) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2665
+
2666
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2667
+
2668
+ SQL (0.000398) PRAGMA table_info(schema_info)
2669
+
2670
+ SQL (0.253691) UPDATE schema_info SET version = 0
2671
+
2672
+ SQL (0.000527) PRAGMA table_info(test_users)
2673
+
2674
+ TestUser Load (0.000442) SELECT * FROM test_users WHERE (test_users.id = 1) 
2675
+
2676
+ SQL (0.368719) DROP TABLE activities
2677
+
2678
+ SQL (0.221119) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2679
+
2680
+ SQL (0.232180) DROP TABLE test_users
2681
+
2682
+ SQL (0.243714) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2683
+
2684
+ SQL (0.254457) DROP TABLE test_posts
2685
+
2686
+ SQL (0.221307) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2687
+
2688
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2689
+
2690
+ SQL (0.000394) PRAGMA table_info(schema_info)
2691
+
2692
+ SQL (0.219007) UPDATE schema_info SET version = 0
2693
+
2694
+ SQL (0.000551) PRAGMA table_info(test_users)
2695
+
2696
+ TestUser Load (0.000437) SELECT * FROM test_users WHERE (test_users.id = 1) 
2697
+
2698
+ SQL (0.353873) DROP TABLE activities
2699
+
2700
+ SQL (0.220972) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2701
+
2702
+ SQL (0.232246) DROP TABLE test_users
2703
+
2704
+ SQL (0.254903) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2705
+
2706
+ SQL (0.243216) DROP TABLE test_posts
2707
+
2708
+ SQL (0.221276) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2709
+
2710
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2711
+
2712
+ SQL (0.000479) PRAGMA table_info(schema_info)
2713
+
2714
+ SQL (0.218525) UPDATE schema_info SET version = 0
2715
+
2716
+ SQL (0.000598) PRAGMA table_info(test_users)
2717
+
2718
+ TestUser Load (0.000439) SELECT * FROM test_users WHERE (test_users.id = 1) 
2719
+
2720
+ SQL (0.374877) DROP TABLE activities
2721
+
2722
+ SQL (0.243333) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2723
+
2724
+ SQL (0.243397) DROP TABLE test_users
2725
+
2726
+ SQL (0.243610) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2727
+
2728
+ SQL (0.231931) DROP TABLE test_posts
2729
+
2730
+ SQL (0.243547) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2731
+
2732
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2733
+
2734
+ SQL (0.000394) PRAGMA table_info(schema_info)
2735
+
2736
+ SQL (0.241360) UPDATE schema_info SET version = 0
2737
+
2738
+ SQL (0.000660) PRAGMA table_info(test_posts)
2739
+
2740
+ SQL (0.000394) SELECT count(*) AS count_all FROM test_posts 
2741
+
2742
+ SQL (0.001158) PRAGMA table_info(activities)
2743
+
2744
+ SQL (0.000317) SELECT count(*) AS count_all FROM activities 
2745
+
2746
+ SQL (0.000509) PRAGMA table_info(test_users)
2747
+
2748
+ TestUser Load (0.000332) SELECT * FROM test_users WHERE (test_users.id = 1) 
2749
+
2750
+ SQL (0.000534) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2751
+
2752
+ SQL (0.000181) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 07:22:09', 'TestPost')
2753
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:50:in `create_activity_from_self'
2754
+ SQL (0.000226) SELECT count(*) AS count_all FROM activities 
2755
+
2756
+ SQL (0.000229) SELECT count(*) AS count_all FROM test_posts 
2757
+
2758
+ SQL (0.000544) SELECT count(*) AS count_all FROM activities 
2759
+
2760
+ TestUser Load (0.000437) SELECT * FROM test_users WHERE (test_users.id = 1) 
2761
+
2762
+ SQL (0.001008) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 07:22:09', NULL)
2763
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:58:in `track_activity'
2764
+ SQL (0.000336) SELECT count(*) AS count_all FROM activities 
2765
+
2766
+ TestUser Load (0.000606) SELECT * FROM test_users WHERE (test_users.id = 1) 
2767
+
2768
+ SQL (0.000623) SELECT count(*) AS count_all FROM activities 
2769
+
2770
+ SQL (0.000615) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2771
+
2772
+ SQL (0.000282) SELECT count(*) AS count_all FROM activities 
2773
+
2774
+ SQL (0.336023) DROP TABLE activities
2775
+
2776
+ SQL (0.245225) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2777
+
2778
+ SQL (0.229773) DROP TABLE test_users
2779
+
2780
+ SQL (0.245966) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2781
+
2782
+ SQL (0.251751) DROP TABLE test_posts
2783
+
2784
+ SQL (0.243602) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2785
+
2786
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2787
+
2788
+ SQL (0.000702) PRAGMA table_info(schema_info)
2789
+
2790
+ SQL (0.224240) UPDATE schema_info SET version = 0
2791
+
2792
+ SQL (0.000735) PRAGMA table_info(test_posts)
2793
+
2794
+ SQL (0.000496) SELECT count(*) AS count_all FROM test_posts 
2795
+
2796
+ SQL (0.001337) PRAGMA table_info(activities)
2797
+
2798
+ SQL (0.000355) SELECT count(*) AS count_all FROM activities 
2799
+
2800
+ SQL (0.000540) PRAGMA table_info(test_users)
2801
+
2802
+ TestUser Load (0.000367) SELECT * FROM test_users WHERE (test_users.id = 2) 
2803
+
2804
+ SQL (0.000651) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
2805
+
2806
+ SQL (0.000533) SELECT count(*) AS count_all FROM activities 
2807
+
2808
+ SQL (0.364080) DROP TABLE activities
2809
+
2810
+ SQL (0.230932) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2811
+
2812
+ SQL (0.222144) DROP TABLE test_users
2813
+
2814
+ SQL (0.254627) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2815
+
2816
+ SQL (0.257247) DROP TABLE test_posts
2817
+
2818
+ SQL (0.218448) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2819
+
2820
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2821
+
2822
+ SQL (0.000462) PRAGMA table_info(schema_info)
2823
+
2824
+ SQL (0.229805) UPDATE schema_info SET version = 0
2825
+
2826
+ SQL (0.000696) PRAGMA table_info(test_posts)
2827
+
2828
+ SQL (0.000413) SELECT count(*) AS count_all FROM test_posts 
2829
+
2830
+ SQL (0.001169) PRAGMA table_info(activities)
2831
+
2832
+ SQL (0.000288) SELECT count(*) AS count_all FROM activities 
2833
+
2834
+ SQL (0.000457) PRAGMA table_info(test_users)
2835
+
2836
+ TestUser Load (0.000301) SELECT * FROM test_users WHERE (test_users.id = 2) 
2837
+
2838
+ SQL (0.000483) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
2839
+
2840
+ SQL (0.000256) SELECT count(*) AS count_all FROM activities 
2841
+
2842
+ SQL (0.000228) SELECT count(*) AS count_all FROM test_posts 
2843
+
2844
+ SQL (0.292938) DROP TABLE activities
2845
+
2846
+ SQL (0.301191) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2847
+
2848
+ SQL (0.218253) DROP TABLE test_users
2849
+
2850
+ SQL (0.225503) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2851
+
2852
+ SQL (0.272497) DROP TABLE test_posts
2853
+
2854
+ SQL (0.244170) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2855
+
2856
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2857
+
2858
+ SQL (0.000399) PRAGMA table_info(schema_info)
2859
+
2860
+ SQL (0.218290) UPDATE schema_info SET version = 0
2861
+
2862
+ SQL (0.000700) PRAGMA table_info(test_posts)
2863
+
2864
+ SQL (0.000453) SELECT count(*) AS count_all FROM test_posts 
2865
+
2866
+ SQL (0.001098) PRAGMA table_info(activities)
2867
+
2868
+ SQL (0.000304) SELECT count(*) AS count_all FROM activities 
2869
+
2870
+ SQL (0.000457) PRAGMA table_info(test_users)
2871
+
2872
+ TestUser Load (0.000310) SELECT * FROM test_users WHERE (test_users.id = 1) 
2873
+
2874
+ SQL (0.000593) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2875
+
2876
+ SQL (0.000252) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 22:36:42', 'TestPost')
2877
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:60:in `create_activity_from_self'
2878
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:25:in `acts_as_activity'
2879
+ SQL (0.000317) SELECT count(*) AS count_all FROM activities 
2880
+
2881
+ SQL (0.000225) SELECT count(*) AS count_all FROM test_posts 
2882
+
2883
+ SQL (0.000593) SELECT count(*) AS count_all FROM activities 
2884
+
2885
+ TestUser Load (0.000478) SELECT * FROM test_users WHERE (test_users.id = 1) 
2886
+
2887
+ SQL (0.000592) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:36:42', NULL)
2888
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
2889
+ SQL (0.000317) SELECT count(*) AS count_all FROM activities 
2890
+
2891
+ TestUser Load (0.000568) SELECT * FROM test_users WHERE (test_users.id = 1) 
2892
+
2893
+ SQL (0.000532) SELECT count(*) AS count_all FROM activities 
2894
+
2895
+ SQL (0.000667) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2896
+
2897
+ SQL (0.000695) SELECT count(*) AS count_all FROM test_posts 
2898
+
2899
+ SQL (0.000311) SELECT count(*) AS count_all FROM activities 
2900
+
2901
+ TestUser Load (0.000352) SELECT * FROM test_users WHERE (test_users.id = 2) 
2902
+
2903
+ SQL (0.000558) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
2904
+
2905
+ SQL (0.000286) SELECT count(*) AS count_all FROM activities 
2906
+
2907
+ SQL (0.000423) SELECT count(*) AS count_all FROM test_posts 
2908
+
2909
+ SQL (0.312259) DROP TABLE activities
2910
+
2911
+ SQL (0.233906) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2912
+
2913
+ SQL (0.218998) DROP TABLE test_users
2914
+
2915
+ SQL (0.234133) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2916
+
2917
+ SQL (0.241665) DROP TABLE test_posts
2918
+
2919
+ SQL (0.243591) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2920
+
2921
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2922
+
2923
+ SQL (0.000404) PRAGMA table_info(schema_info)
2924
+
2925
+ SQL (0.230373) UPDATE schema_info SET version = 0
2926
+
2927
+ SQL (0.000648) PRAGMA table_info(test_posts)
2928
+
2929
+ SQL (0.000382) SELECT count(*) AS count_all FROM test_posts 
2930
+
2931
+ SQL (0.001142) PRAGMA table_info(activities)
2932
+
2933
+ SQL (0.000283) SELECT count(*) AS count_all FROM activities 
2934
+
2935
+ SQL (0.000460) PRAGMA table_info(test_users)
2936
+
2937
+ TestUser Load (0.000282) SELECT * FROM test_users WHERE (test_users.id = 1) 
2938
+
2939
+ SQL (0.000466) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
2940
+
2941
+ SQL (0.000182) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 22:37:34', 'TestPost')
2942
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:60:in `create_activity_from_self'
2943
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:25:in `acts_as_activity'
2944
+ SQL (0.000244) SELECT count(*) AS count_all FROM activities 
2945
+
2946
+ SQL (0.000217) SELECT count(*) AS count_all FROM test_posts 
2947
+
2948
+ SQL (0.000550) SELECT count(*) AS count_all FROM activities 
2949
+
2950
+ TestUser Load (0.000453) SELECT * FROM test_users WHERE (test_users.id = 1) 
2951
+
2952
+ SQL (0.000619) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:37:34', NULL)
2953
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
2954
+ SQL (0.000361) SELECT count(*) AS count_all FROM activities 
2955
+
2956
+ TestUser Load (0.000600) SELECT * FROM test_users WHERE (test_users.id = 1) 
2957
+
2958
+ SQL (0.000558) SELECT count(*) AS count_all FROM activities 
2959
+
2960
+ SQL (0.000629) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
2961
+
2962
+ SQL (0.000724) SELECT count(*) AS count_all FROM test_posts 
2963
+
2964
+ SQL (0.000272) SELECT count(*) AS count_all FROM activities 
2965
+
2966
+ TestUser Load (0.000269) SELECT * FROM test_users WHERE (test_users.id = 2) 
2967
+
2968
+ SQL (0.000456) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
2969
+
2970
+ SQL (0.000224) SELECT count(*) AS count_all FROM activities 
2971
+
2972
+ SQL (0.000205) SELECT count(*) AS count_all FROM test_posts 
2973
+
2974
+ SQL (0.280525) DROP TABLE activities
2975
+
2976
+ SQL (0.256109) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
2977
+
2978
+ SQL (0.229929) DROP TABLE test_users
2979
+
2980
+ SQL (0.221320) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
2981
+
2982
+ SQL (0.232082) DROP TABLE test_posts
2983
+
2984
+ SQL (0.254784) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
2985
+
2986
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
2987
+
2988
+ SQL (0.000383) PRAGMA table_info(schema_info)
2989
+
2990
+ SQL (0.241288) UPDATE schema_info SET version = 0
2991
+
2992
+ SQL (0.000672) PRAGMA table_info(test_posts)
2993
+
2994
+ SQL (0.000402) SELECT count(*) AS count_all FROM test_posts 
2995
+
2996
+ SQL (0.001152) PRAGMA table_info(activities)
2997
+
2998
+ SQL (0.000275) SELECT count(*) AS count_all FROM activities 
2999
+
3000
+ SQL (0.000450) PRAGMA table_info(test_users)
3001
+
3002
+ TestUser Load (0.000280) SELECT * FROM test_users WHERE (test_users.id = 1) 
3003
+
3004
+ SQL (0.000465) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
3005
+
3006
+ SQL (0.000168) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 22:39:01', 'TestPost')
3007
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:60:in `create_activity_from_self'
3008
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:25:in `acts_as_activity'
3009
+ SQL (0.000229) SELECT count(*) AS count_all FROM activities 
3010
+
3011
+ SQL (0.000209) SELECT count(*) AS count_all FROM test_posts 
3012
+
3013
+ SQL (0.000492) SELECT count(*) AS count_all FROM activities 
3014
+
3015
+ TestUser Load (0.000257) SELECT * FROM test_users WHERE (test_users.id = 1) 
3016
+
3017
+ SQL (0.000622) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:39:01', NULL)
3018
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
3019
+ SQL (0.000318) SELECT count(*) AS count_all FROM activities 
3020
+
3021
+ TestUser Load (0.000651) SELECT * FROM test_users WHERE (test_users.id = 1) 
3022
+
3023
+ SQL (0.000487) SELECT count(*) AS count_all FROM activities 
3024
+
3025
+ SQL (0.000462) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
3026
+
3027
+ SQL (0.000552) SELECT count(*) AS count_all FROM test_posts 
3028
+
3029
+ SQL (0.000270) SELECT count(*) AS count_all FROM activities 
3030
+
3031
+ TestUser Load (0.000259) SELECT * FROM test_users WHERE (test_users.id = 2) 
3032
+
3033
+ SQL (0.003828) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
3034
+
3035
+ TestPost Update (0.000895) UPDATE test_posts SET "title" = 'New Post', "test_user_id" = 2 WHERE id = 2
3036
+
3037
+ SQL (0.000297) SELECT count(*) AS count_all FROM activities 
3038
+
3039
+ SQL (0.000263) SELECT count(*) AS count_all FROM test_posts 
3040
+
3041
+ SQL (0.283995) DROP TABLE activities
3042
+
3043
+ SQL (0.244770) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
3044
+
3045
+ SQL (0.229855) DROP TABLE test_users
3046
+
3047
+ SQL (0.256946) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
3048
+
3049
+ SQL (0.229606) DROP TABLE test_posts
3050
+
3051
+ SQL (0.221275) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
3052
+
3053
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
3054
+
3055
+ SQL (0.000390) PRAGMA table_info(schema_info)
3056
+
3057
+ SQL (0.230320) UPDATE schema_info SET version = 0
3058
+
3059
+ SQL (0.000694) PRAGMA table_info(test_posts)
3060
+
3061
+ SQL (0.000477) SELECT count(*) AS count_all FROM test_posts 
3062
+
3063
+ SQL (0.001166) PRAGMA table_info(activities)
3064
+
3065
+ SQL (0.000272) SELECT count(*) AS count_all FROM activities 
3066
+
3067
+ SQL (0.000429) PRAGMA table_info(test_users)
3068
+
3069
+ TestUser Load (0.000264) SELECT * FROM test_users WHERE (test_users.id = 1) 
3070
+
3071
+ SQL (0.000463) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
3072
+
3073
+ SQL (0.000408) SELECT count(*) AS count_all FROM activities 
3074
+
3075
+ SQL (0.000561) SELECT count(*) AS count_all FROM activities 
3076
+
3077
+ TestUser Load (0.000376) SELECT * FROM test_users WHERE (test_users.id = 1) 
3078
+
3079
+ SQL (0.000606) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:40:08', NULL)
3080
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
3081
+ SQL (0.000304) SELECT count(*) AS count_all FROM activities 
3082
+
3083
+ TestUser Load (0.000571) SELECT * FROM test_users WHERE (test_users.id = 1) 
3084
+
3085
+ SQL (0.000477) SELECT count(*) AS count_all FROM activities 
3086
+
3087
+ SQL (0.000457) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
3088
+
3089
+ SQL (0.000409) SELECT count(*) AS count_all FROM activities 
3090
+
3091
+ SQL (0.000581) SELECT count(*) AS count_all FROM test_posts 
3092
+
3093
+ SQL (0.001616) SELECT count(*) AS count_all FROM activities 
3094
+
3095
+ TestUser Load (0.000397) SELECT * FROM test_users WHERE (test_users.id = 2) 
3096
+
3097
+ SQL (0.000561) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
3098
+
3099
+ SQL (0.000391) SELECT count(*) AS count_all FROM activities 
3100
+
3101
+ SQL (0.000257) SELECT count(*) AS count_all FROM test_posts 
3102
+
3103
+ SQL (0.298140) DROP TABLE activities
3104
+
3105
+ SQL (0.333611) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
3106
+
3107
+ SQL (0.218818) DROP TABLE test_users
3108
+
3109
+ SQL (0.221378) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
3110
+
3111
+ SQL (0.243286) DROP TABLE test_posts
3112
+
3113
+ SQL (0.254648) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
3114
+
3115
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
3116
+
3117
+ SQL (0.000392) PRAGMA table_info(schema_info)
3118
+
3119
+ SQL (0.241463) UPDATE schema_info SET version = 0
3120
+
3121
+ SQL (0.000690) PRAGMA table_info(test_posts)
3122
+
3123
+ SQL (0.000481) SELECT count(*) AS count_all FROM test_posts 
3124
+
3125
+ SQL (0.001148) PRAGMA table_info(activities)
3126
+
3127
+ SQL (0.000327) SELECT count(*) AS count_all FROM activities 
3128
+
3129
+ SQL (0.000472) PRAGMA table_info(test_users)
3130
+
3131
+ TestUser Load (0.000271) SELECT * FROM test_users WHERE (test_users.id = 1) 
3132
+
3133
+ SQL (0.000472) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
3134
+
3135
+ SQL (0.000390) SELECT count(*) AS count_all FROM activities 
3136
+
3137
+ SQL (0.000776) SELECT count(*) AS count_all FROM activities 
3138
+
3139
+ TestUser Load (0.000396) SELECT * FROM test_users WHERE (test_users.id = 1) 
3140
+
3141
+ SQL (0.000576) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:40:21', NULL)
3142
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
3143
+ SQL (0.000263) SELECT count(*) AS count_all FROM activities 
3144
+
3145
+ TestUser Load (0.000563) SELECT * FROM test_users WHERE (test_users.id = 1) 
3146
+
3147
+ SQL (0.000555) SELECT count(*) AS count_all FROM activities 
3148
+
3149
+ SQL (0.000488) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
3150
+
3151
+ SQL (0.000408) SELECT count(*) AS count_all FROM activities 
3152
+
3153
+ SQL (0.000588) SELECT count(*) AS count_all FROM test_posts 
3154
+
3155
+ SQL (0.001530) SELECT count(*) AS count_all FROM activities 
3156
+
3157
+ TestUser Load (0.000421) SELECT * FROM test_users WHERE (test_users.id = 2) 
3158
+
3159
+ SQL (0.000573) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
3160
+
3161
+ SQL (0.000411) SELECT count(*) AS count_all FROM activities 
3162
+
3163
+ SQL (0.000270) SELECT count(*) AS count_all FROM test_posts 
3164
+
3165
+ SQL (0.308855) DROP TABLE activities
3166
+
3167
+ SQL (0.244656) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
3168
+
3169
+ SQL (0.218721) DROP TABLE test_users
3170
+
3171
+ SQL (0.234321) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
3172
+
3173
+ SQL (0.251945) DROP TABLE test_posts
3174
+
3175
+ SQL (0.245095) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
3176
+
3177
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
3178
+
3179
+ SQL (0.000429) PRAGMA table_info(schema_info)
3180
+
3181
+ SQL (0.216368) UPDATE schema_info SET version = 0
3182
+
3183
+ SQL (0.000677) PRAGMA table_info(test_posts)
3184
+
3185
+ SQL (0.000400) SELECT count(*) AS count_all FROM test_posts 
3186
+
3187
+ SQL (0.001155) PRAGMA table_info(activities)
3188
+
3189
+ SQL (0.000297) SELECT count(*) AS count_all FROM activities 
3190
+
3191
+ SQL (0.000497) PRAGMA table_info(test_users)
3192
+
3193
+ TestUser Load (0.000317) SELECT * FROM test_users WHERE (test_users.id = 1) 
3194
+
3195
+ SQL (0.000524) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
3196
+
3197
+ SQL (0.000411) SELECT count(*) AS count_all FROM activities 
3198
+
3199
+ SQL (0.000564) SELECT count(*) AS count_all FROM activities 
3200
+
3201
+ TestUser Load (0.000385) SELECT * FROM test_users WHERE (test_users.id = 1) 
3202
+
3203
+ SQL (0.000618) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:40:39', NULL)
3204
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
3205
+ SQL (0.000272) SELECT count(*) AS count_all FROM activities 
3206
+
3207
+ TestUser Load (0.000574) SELECT * FROM test_users WHERE (test_users.id = 1) 
3208
+
3209
+ SQL (0.000457) SELECT count(*) AS count_all FROM activities 
3210
+
3211
+ SQL (0.000458) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
3212
+
3213
+ SQL (0.000392) SELECT count(*) AS count_all FROM activities 
3214
+
3215
+ SQL (0.000566) SELECT count(*) AS count_all FROM test_posts 
3216
+
3217
+ SQL (0.000336) SELECT count(*) AS count_all FROM activities 
3218
+
3219
+ TestUser Load (0.000411) SELECT * FROM test_users WHERE (test_users.id = 2) 
3220
+
3221
+ SQL (0.000573) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
3222
+
3223
+ SQL (0.000403) SELECT count(*) AS count_all FROM activities 
3224
+
3225
+ SQL (0.000261) SELECT count(*) AS count_all FROM test_posts 
3226
+
3227
+ SQL (0.396397) DROP TABLE activities
3228
+
3229
+ SQL (0.257219) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
3230
+
3231
+ SQL (0.251369) DROP TABLE test_users
3232
+
3233
+ SQL (0.232576) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
3234
+
3235
+ SQL (0.221185) DROP TABLE test_posts
3236
+
3237
+ SQL (0.234869) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
3238
+
3239
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
3240
+
3241
+ SQL (0.000411) PRAGMA table_info(schema_info)
3242
+
3243
+ SQL (0.250021) UPDATE schema_info SET version = 0
3244
+
3245
+ SQL (0.000666) PRAGMA table_info(test_posts)
3246
+
3247
+ SQL (0.000398) SELECT count(*) AS count_all FROM test_posts 
3248
+
3249
+ SQL (0.001163) PRAGMA table_info(activities)
3250
+
3251
+ SQL (0.000288) SELECT count(*) AS count_all FROM activities 
3252
+
3253
+ SQL (0.000458) PRAGMA table_info(test_users)
3254
+
3255
+ TestUser Load (0.000284) SELECT * FROM test_users WHERE (test_users.id = 1) 
3256
+
3257
+ SQL (0.000471) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 1)
3258
+
3259
+ SQL (0.000184) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(2, 'test_post', 1, '2007-02-02 22:41:55', 'TestPost')
3260
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:60:in `create_activity_from_self'
3261
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:25:in `acts_as_activity'
3262
+ SQL (0.000230) SELECT count(*) AS count_all FROM activities 
3263
+
3264
+ SQL (0.000237) SELECT count(*) AS count_all FROM test_posts 
3265
+
3266
+ SQL (0.000556) SELECT count(*) AS count_all FROM activities 
3267
+
3268
+ TestUser Load (0.000440) SELECT * FROM test_users WHERE (test_users.id = 1) 
3269
+
3270
+ SQL (0.000621) INSERT INTO activities ("item_id", "action", "user_id", "created_at", "item_type") VALUES(NULL, 'logged_in', 1, '2007-02-02 22:41:55', NULL)
3271
+ vendor/plugins/activity_tracker/lib/activity_tracker.rb:68:in `track_activity'
3272
+ SQL (0.000275) SELECT count(*) AS count_all FROM activities 
3273
+
3274
+ TestUser Load (0.000691) SELECT * FROM test_users WHERE (test_users.id = 1) 
3275
+
3276
+ SQL (0.000547) SELECT count(*) AS count_all FROM activities 
3277
+
3278
+ SQL (0.000724) INSERT INTO test_posts ("title", "test_user_id") VALUES(NULL, NULL)
3279
+
3280
+ SQL (0.000273) SELECT count(*) AS count_all FROM activities 
3281
+
3282
+ SQL (0.000582) SELECT count(*) AS count_all FROM test_posts 
3283
+
3284
+ SQL (0.000324) SELECT count(*) AS count_all FROM activities 
3285
+
3286
+ TestUser Load (0.000288) SELECT * FROM test_users WHERE (test_users.id = 2) 
3287
+
3288
+ SQL (0.000472) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
3289
+
3290
+ SQL (0.000239) SELECT count(*) AS count_all FROM activities 
3291
+
3292
+ SQL (0.000217) SELECT count(*) AS count_all FROM test_posts 
3293
+
3294
+ SQL (0.284864) DROP TABLE activities
3295
+
3296
+ SQL (0.310938) CREATE TABLE activities ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer(10), "action" varchar(50), "item_id" integer(10), "item_type" varchar(255), "created_at" datetime) 
3297
+
3298
+ SQL (0.242039) DROP TABLE test_users
3299
+
3300
+ SQL (0.243451) CREATE TABLE test_users ("id" INTEGER PRIMARY KEY NOT NULL, "login" varchar(255)) 
3301
+
3302
+ SQL (0.221146) DROP TABLE test_posts
3303
+
3304
+ SQL (0.221410) CREATE TABLE test_posts ("id" INTEGER PRIMARY KEY NOT NULL, "title" varchar(255), "test_user_id" integer) 
3305
+
3306
+ SQL (0.000000) SQLite3::SQLException: table schema_info already exists: CREATE TABLE schema_info (version integer)
3307
+
3308
+ SQL (0.000495) PRAGMA table_info(schema_info)
3309
+
3310
+ SQL (0.242816) UPDATE schema_info SET version = 0
3311
+
3312
+ SQL (0.000669) PRAGMA table_info(test_posts)
3313
+
3314
+ SQL (0.000396) SELECT count(*) AS count_all FROM test_posts 
3315
+
3316
+ SQL (0.001173) PRAGMA table_info(activities)
3317
+
3318
+ SQL (0.000279) SELECT count(*) AS count_all FROM activities 
3319
+
3320
+ SQL (0.000494) PRAGMA table_info(test_users)
3321
+
3322
+ TestUser Load (0.000314) SELECT * FROM test_users WHERE (test_users.id = 2) 
3323
+
3324
+ SQL (0.000531) INSERT INTO test_posts ("title", "test_user_id") VALUES('New Post', 2)
3325
+
3326
+ SQL (0.000399) SELECT count(*) AS count_all FROM activities 
3327
+
3328
+ SQL (0.000268) SELECT count(*) AS count_all FROM test_posts 
3329
+