tb_blog 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +6 -14
  2. data/Readme.markdown +3 -2
  3. data/app/assets/javascripts/admin/blog/application.js +1 -0
  4. data/app/assets/javascripts/{spud/admin → admin/blog}/post_categories.js +0 -3
  5. data/app/assets/javascripts/{spud/admin → admin/blog}/posts.js +0 -6
  6. data/app/controllers/{spud/admin → admin}/news_posts_controller.rb +13 -11
  7. data/app/controllers/{spud/admin → admin}/post_categories_controller.rb +9 -7
  8. data/app/controllers/{spud/admin → admin}/post_comments_controller.rb +6 -7
  9. data/app/controllers/{spud/admin → admin}/posts_controller.rb +14 -11
  10. data/app/controllers/blog/sitemaps_controller.rb +10 -0
  11. data/app/controllers/blog_controller.rb +25 -34
  12. data/app/controllers/news_controller.rb +5 -21
  13. data/app/helpers/admin/news_posts_helper.rb +2 -0
  14. data/app/helpers/admin/post_categories_helper.rb +2 -0
  15. data/app/helpers/admin/post_comments_helper.rb +3 -0
  16. data/app/helpers/{spud/admin → admin}/posts_helper.rb +1 -1
  17. data/app/helpers/blog/sitemaps_helper.rb +2 -0
  18. data/app/helpers/blog_helper.rb +0 -1
  19. data/app/models/spud_post.rb +30 -21
  20. data/app/models/spud_post_categories_post.rb +2 -3
  21. data/app/models/spud_post_category.rb +9 -2
  22. data/app/models/spud_post_comment.rb +1 -3
  23. data/app/models/spud_post_site.rb +0 -1
  24. data/app/views/admin/news_posts/edit.html.erb +3 -0
  25. data/app/views/admin/news_posts/index.html.erb +42 -0
  26. data/app/views/admin/news_posts/new.html.erb +3 -0
  27. data/app/views/{spud/admin → admin}/post_categories/_category.html.erb +2 -2
  28. data/app/views/{spud/admin → admin}/post_categories/_form.html.erb +1 -1
  29. data/app/views/{spud/admin → admin}/post_categories/index.html.erb +1 -1
  30. data/app/views/admin/post_categories/new.html.erb +1 -0
  31. data/app/views/{spud/admin → admin}/post_comments/index.html.erb +3 -3
  32. data/app/views/{spud/admin → admin}/posts/_category.html.erb +1 -1
  33. data/app/views/{spud/admin → admin}/posts/_form.html.erb +3 -3
  34. data/app/views/admin/posts/edit.html.erb +3 -0
  35. data/app/views/admin/posts/index.html.erb +48 -0
  36. data/app/views/admin/posts/new.html.erb +3 -0
  37. data/app/views/blog/_comment.html.erb +6 -4
  38. data/app/views/blog/_comment_form.html.erb +0 -2
  39. data/app/views/blog/index.html.erb +30 -28
  40. data/app/views/blog/show.html.erb +35 -31
  41. data/app/views/news/index.html.erb +26 -24
  42. data/app/views/news/show.html.erb +25 -21
  43. data/config/routes.rb +14 -15
  44. data/lib/spud_blog/configuration.rb +1 -2
  45. data/lib/spud_blog/engine.rb +13 -10
  46. data/lib/spud_blog/version.rb +1 -1
  47. data/lib/tb_blog.rb +1 -1
  48. data/spec/controllers/admin/posts_controller_spec.rb +5 -0
  49. data/spec/dummy/config/application.rb +5 -2
  50. data/spec/dummy/config/environments/production.rb +1 -1
  51. data/spec/dummy/config/environments/test.rb +5 -6
  52. data/spec/dummy/config/initializers/secret_token.rb +1 -0
  53. data/spec/dummy/db/migrate/20140110180411_create_spud_roles.tb_core.rb +11 -0
  54. data/spec/dummy/db/migrate/20140110180412_create_spud_permissions.tb_core.rb +11 -0
  55. data/spec/dummy/db/migrate/20140110180413_create_spud_role_permissions.tb_core.rb +12 -0
  56. data/spec/dummy/db/migrate/20140110180414_drop_spud_admin_permissions.tb_core.rb +16 -0
  57. data/spec/dummy/db/migrate/20140110180415_create_spud_permalinks.tb_permalinks.rb +12 -0
  58. data/spec/dummy/db/migrate/20140110180416_add_site_id_to_spud_permalinks.tb_permalinks.rb +7 -0
  59. data/spec/dummy/db/migrate/20140110180417_modify_site_id_for_spud_permalinks.tb_permalinks.rb +12 -0
  60. data/spec/dummy/db/migrate/20140110180418_create_spud_posts.tb_blog.rb +16 -0
  61. data/spec/dummy/db/migrate/20140110180419_create_spud_post_categories.tb_blog.rb +14 -0
  62. data/spec/dummy/db/migrate/20140110180420_create_spud_post_comments.tb_blog.rb +14 -0
  63. data/spec/dummy/db/migrate/20140110180421_add_url_to_spud_posts.tb_blog.rb +7 -0
  64. data/spec/dummy/db/migrate/20140110180422_add_url_to_spud_post_categories.tb_blog.rb +9 -0
  65. data/spec/dummy/db/migrate/20140110180423_add_is_news_to_spud_posts.tb_blog.rb +7 -0
  66. data/spec/dummy/db/migrate/20140110180424_add_meta_to_posts.tb_blog.rb +7 -0
  67. data/spec/dummy/db/migrate/20140110180425_add_comments_counter_to_spud_posts.tb_blog.rb +13 -0
  68. data/spec/dummy/db/migrate/20140110180426_create_spud_post_sites.tb_blog.rb +12 -0
  69. data/spec/dummy/db/migrate/20140110180427_add_spam_fields_to_spud_post_comments.tb_blog.rb +9 -0
  70. data/spec/dummy/db/migrate/20140110180428_add_permalink_to_spud_post_comments.tb_blog.rb +6 -0
  71. data/spec/dummy/db/migrate/20140110180429_add_nested_set_to_post_categories.tb_blog.rb +22 -0
  72. data/spec/dummy/db/migrate/20140110180430_add_content_format_to_spud_posts.tb_blog.rb +6 -0
  73. data/spec/dummy/db/migrate/20140110180431_add_content_processed_to_spud_post.tb_blog.rb +6 -0
  74. data/spec/dummy/db/migrate/20140113162805_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +13 -0
  75. data/spec/dummy/db/schema.rb +100 -59
  76. metadata +123 -104
  77. data/app/assets/javascripts/spud/blog/sitemaps.js +0 -2
  78. data/app/assets/javascripts/spud/blog.js +0 -41
  79. data/app/assets/stylesheets/news.css +0 -4
  80. data/app/assets/stylesheets/spud/blog/sitemaps.css +0 -4
  81. data/app/assets/stylesheets/spud/blog/validity.css +0 -3
  82. data/app/controllers/spud/blog/sitemaps_controller.rb +0 -9
  83. data/app/helpers/spud/admin/news_posts_helper.rb +0 -2
  84. data/app/helpers/spud/admin/post_categories_helper.rb +0 -2
  85. data/app/helpers/spud/admin/post_comments_helper.rb +0 -3
  86. data/app/helpers/spud/blog/sitemaps_helper.rb +0 -2
  87. data/app/models/spud_post_category_sweeper.rb +0 -41
  88. data/app/models/spud_post_comment_sweeper.rb +0 -33
  89. data/app/models/spud_post_sweeper.rb +0 -47
  90. data/app/views/spud/admin/news_posts/edit.html.erb +0 -3
  91. data/app/views/spud/admin/news_posts/index.html.erb +0 -44
  92. data/app/views/spud/admin/news_posts/new.html.erb +0 -3
  93. data/app/views/spud/admin/post_categories/new.html.erb +0 -1
  94. data/app/views/spud/admin/posts/edit.html.erb +0 -3
  95. data/app/views/spud/admin/posts/index.html.erb +0 -49
  96. data/app/views/spud/admin/posts/new.html.erb +0 -3
  97. data/spec/controllers/spud/admin/posts_controller_spec.rb +0 -5
  98. data/spec/dummy/log/development.log +0 -263
  99. data/spec/dummy/log/test.log +0 -3339
  100. /data/app/assets/javascripts/{spud/admin → admin/blog}/post_comments.js +0 -0
  101. /data/app/assets/stylesheets/{spud/admin/posts.css.scss → admin/blog/application.css.scss} +0 -0
  102. /data/app/views/{spud/admin → admin}/post_categories/edit.html.erb +0 -0
  103. /data/app/views/{spud/blog → blog}/sitemaps/show.xml.builder +0 -0
@@ -1,3339 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
3
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
4
-  (1.1ms) SELECT DATABASE() as db
5
-  (0.8ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
6
-  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;
7
-  (1.2ms) TRUNCATE TABLE `spud_post_categories`;
8
-  (1.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
9
-  (2.6ms) TRUNCATE TABLE `spud_post_comments`;
10
-  (1.2ms) TRUNCATE TABLE `spud_post_sites`;
11
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
12
-  (0.5ms) TRUNCATE TABLE `spud_user_settings`;
13
-  (1.0ms) TRUNCATE TABLE `spud_users`;
14
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
15
-  (0.0ms) BEGIN
16
-  (0.0ms) BEGIN
17
-  (0.2ms) ROLLBACK
18
-  (0.1ms) ROLLBACK
19
-  (0.1ms) BEGIN
20
-  (0.1ms) BEGIN
21
-  (0.1ms) ROLLBACK
22
-  (0.1ms) ROLLBACK
23
-  (0.0ms) BEGIN
24
-  (0.0ms) BEGIN
25
-  (0.0ms) SAVEPOINT active_record_2
26
- SpudPostCategory Exists (1.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
27
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
28
- SpudPostCategory Load (0.6ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
29
- SQL (0.4ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:36:27', NULL, 1, 'Test', 0, 2, '2012-12-22 20:36:27', 'test')
30
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
31
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
32
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
33
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
34
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
35
-  (0.9ms) ROLLBACK TO SAVEPOINT active_record_2
36
-  (0.0ms) ROLLBACK
37
-  (0.1ms) ROLLBACK
38
-  (0.1ms) BEGIN
39
-  (0.1ms) BEGIN
40
- SpudPostCategory Exists (0.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
41
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
42
-  (0.1ms) ROLLBACK
43
-  (0.0ms) ROLLBACK
44
- Connecting to database specified by database.yml
45
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
46
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
47
-  (0.1ms) SELECT DATABASE() as db
48
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
49
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
50
-  (1.1ms) TRUNCATE TABLE `spud_post_categories`;
51
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
52
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
53
-  (0.9ms) TRUNCATE TABLE `spud_post_sites`;
54
-  (1.4ms) TRUNCATE TABLE `spud_posts`;
55
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
56
-  (1.6ms) TRUNCATE TABLE `spud_users`;
57
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
58
-  (0.0ms) BEGIN
59
-  (0.0ms) BEGIN
60
-  (0.2ms) ROLLBACK
61
-  (0.1ms) ROLLBACK
62
-  (0.0ms) BEGIN
63
-  (0.0ms) BEGIN
64
-  (0.1ms) ROLLBACK
65
-  (0.1ms) ROLLBACK
66
-  (0.0ms) BEGIN
67
-  (0.0ms) BEGIN
68
-  (0.0ms) SAVEPOINT active_record_2
69
- SpudPostCategory Exists (1.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
70
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
71
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
72
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:37:59', NULL, 1, 'Test', 0, 2, '2012-12-22 20:37:59', 'test')
73
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
74
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
75
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
76
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
77
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
78
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
79
-  (0.1ms) RELEASE SAVEPOINT active_record_2
80
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
81
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
82
-  (0.5ms) ROLLBACK
83
-  (0.1ms) ROLLBACK
84
-  (0.0ms) BEGIN
85
-  (0.0ms) BEGIN
86
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
87
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
88
-  (0.1ms) ROLLBACK
89
-  (0.0ms) ROLLBACK
90
- Connecting to database specified by database.yml
91
-  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
92
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
93
-  (0.2ms) SELECT DATABASE() as db
94
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
95
-  (1.5ms) TRUNCATE TABLE `spud_admin_permissions`;
96
-  (1.1ms) TRUNCATE TABLE `spud_post_categories`;
97
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
98
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
99
-  (1.2ms) TRUNCATE TABLE `spud_post_sites`;
100
-  (1.3ms) TRUNCATE TABLE `spud_posts`;
101
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
102
-  (3.9ms) TRUNCATE TABLE `spud_users`;
103
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
104
-  (0.1ms) BEGIN
105
-  (0.1ms) BEGIN
106
-  (0.1ms) ROLLBACK
107
-  (0.1ms) ROLLBACK
108
-  (0.0ms) BEGIN
109
-  (0.0ms) BEGIN
110
- SpudPostCategory Exists (1.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
111
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
112
-  (0.1ms) ROLLBACK
113
-  (0.0ms) ROLLBACK
114
-  (0.0ms) BEGIN
115
-  (0.0ms) BEGIN
116
-  (0.0ms) SAVEPOINT active_record_2
117
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
118
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
119
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
120
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:38:30', NULL, 1, 'Test', 0, 2, '2012-12-22 20:38:30', 'test')
121
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
122
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
123
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
124
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
125
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
126
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
127
-  (0.1ms) RELEASE SAVEPOINT active_record_2
128
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
129
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
130
-  (0.5ms) ROLLBACK
131
-  (0.0ms) ROLLBACK
132
-  (0.0ms) BEGIN
133
-  (0.0ms) BEGIN
134
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
135
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
136
-  (0.1ms) ROLLBACK
137
-  (0.0ms) ROLLBACK
138
- Connecting to database specified by database.yml
139
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
140
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
141
-  (0.2ms) SELECT DATABASE() as db
142
-  (0.8ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
143
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
144
-  (0.7ms) TRUNCATE TABLE `spud_post_categories`;
145
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
146
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
147
-  (0.6ms) TRUNCATE TABLE `spud_post_sites`;
148
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
149
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
150
-  (1.1ms) TRUNCATE TABLE `spud_users`;
151
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
152
-  (0.0ms) BEGIN
153
-  (0.0ms) BEGIN
154
-  (0.1ms) ROLLBACK
155
-  (0.0ms) ROLLBACK
156
-  (0.0ms) BEGIN
157
-  (0.0ms) BEGIN
158
- SpudPostCategory Exists (30.6ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
159
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
160
-  (0.1ms) ROLLBACK
161
-  (0.0ms) ROLLBACK
162
-  (0.0ms) BEGIN
163
-  (0.0ms) BEGIN
164
-  (0.0ms) SAVEPOINT active_record_2
165
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
166
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
167
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
168
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:39:47', NULL, 1, 'Test', 0, 2, '2012-12-22 20:39:47', 'test')
169
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
170
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
171
- SQL (0.9ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
172
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
173
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
174
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
175
-  (0.2ms) RELEASE SAVEPOINT active_record_2
176
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
177
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
178
-  (0.8ms) ROLLBACK
179
-  (0.0ms) ROLLBACK
180
-  (0.1ms) BEGIN
181
-  (0.1ms) BEGIN
182
- SpudPostCategory Exists (0.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
183
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
184
-  (0.2ms) ROLLBACK
185
-  (0.1ms) ROLLBACK
186
-  (0.1ms) BEGIN
187
-  (0.1ms) BEGIN
188
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
189
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
190
-  (0.1ms) ROLLBACK
191
-  (0.0ms) ROLLBACK
192
- Connecting to database specified by database.yml
193
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
194
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
195
-  (0.1ms) SELECT DATABASE() as db
196
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
197
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
198
-  (1.9ms) TRUNCATE TABLE `spud_post_categories`;
199
-  (0.5ms) TRUNCATE TABLE `spud_post_categories_posts`;
200
-  (1.2ms) TRUNCATE TABLE `spud_post_comments`;
201
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
202
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
203
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
204
-  (1.1ms) TRUNCATE TABLE `spud_users`;
205
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
206
-  (0.0ms) BEGIN
207
-  (0.0ms) BEGIN
208
-  (0.1ms) ROLLBACK
209
-  (0.1ms) ROLLBACK
210
-  (0.1ms) BEGIN
211
-  (0.0ms) BEGIN
212
- SpudPostCategory Exists (1.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
213
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
214
-  (0.1ms) ROLLBACK
215
-  (0.1ms) ROLLBACK
216
-  (0.0ms) BEGIN
217
-  (0.0ms) BEGIN
218
-  (0.0ms) SAVEPOINT active_record_2
219
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
220
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
221
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
222
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:47:18', NULL, 1, 'Test', 0, 2, '2012-12-22 20:47:18', 'test')
223
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
224
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
225
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
226
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
227
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
228
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
229
-  (0.2ms) RELEASE SAVEPOINT active_record_2
230
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
231
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
232
-  (0.4ms) ROLLBACK
233
-  (0.0ms) ROLLBACK
234
-  (0.0ms) BEGIN
235
-  (0.0ms) BEGIN
236
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
237
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
238
-  (0.1ms) ROLLBACK
239
-  (0.0ms) ROLLBACK
240
-  (0.0ms) BEGIN
241
-  (0.0ms) BEGIN
242
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
243
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
244
-  (0.1ms) ROLLBACK
245
-  (0.1ms) ROLLBACK
246
-  (0.0ms) BEGIN
247
-  (0.0ms) BEGIN
248
-  (0.0ms) SAVEPOINT active_record_2
249
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
250
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
251
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
252
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:47:18', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:47:18', 'post-category-3')
253
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
254
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
255
- SQL (0.6ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
256
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
257
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
258
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
259
-  (0.1ms) RELEASE SAVEPOINT active_record_2
260
-  (0.1ms) SAVEPOINT active_record_2
261
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
262
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
263
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
264
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:47:18', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:47:18', 'post-category-4')
265
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
266
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
267
- SQL (0.7ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
268
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
269
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
270
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
271
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
272
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
273
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
274
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
275
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
276
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
277
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
278
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
279
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
280
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
281
-  (0.1ms) RELEASE SAVEPOINT active_record_2
282
-  (0.8ms) ROLLBACK
283
-  (0.0ms) ROLLBACK
284
- Connecting to database specified by database.yml
285
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
286
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287
-  (0.1ms) SELECT DATABASE() as db
288
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
289
-  (1.5ms) TRUNCATE TABLE `spud_admin_permissions`;
290
-  (1.6ms) TRUNCATE TABLE `spud_post_categories`;
291
-  (1.1ms) TRUNCATE TABLE `spud_post_categories_posts`;
292
-  (1.4ms) TRUNCATE TABLE `spud_post_comments`;
293
-  (0.6ms) TRUNCATE TABLE `spud_post_sites`;
294
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
295
-  (1.0ms) TRUNCATE TABLE `spud_user_settings`;
296
-  (1.1ms) TRUNCATE TABLE `spud_users`;
297
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
298
-  (0.0ms) BEGIN
299
-  (0.0ms) BEGIN
300
-  (0.1ms) ROLLBACK
301
-  (0.1ms) ROLLBACK
302
-  (0.1ms) BEGIN
303
-  (0.0ms) BEGIN
304
- SpudPostCategory Exists (1.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
305
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
306
-  (0.1ms) ROLLBACK
307
-  (0.0ms) ROLLBACK
308
-  (0.0ms) BEGIN
309
-  (0.0ms) BEGIN
310
-  (0.0ms) SAVEPOINT active_record_2
311
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
312
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
313
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
314
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:47:42', NULL, 1, 'Test', 0, 2, '2012-12-22 20:47:42', 'test')
315
- SpudPostCategory Load (0.4ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
316
-  (0.5ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
317
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
318
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
319
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
320
- SpudPost Load (0.5ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
321
-  (0.2ms) RELEASE SAVEPOINT active_record_2
322
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
323
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
324
-  (0.3ms) ROLLBACK
325
-  (0.0ms) ROLLBACK
326
-  (0.1ms) BEGIN
327
-  (0.1ms) BEGIN
328
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
329
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
330
-  (0.1ms) ROLLBACK
331
-  (0.1ms) ROLLBACK
332
-  (0.0ms) BEGIN
333
-  (0.0ms) BEGIN
334
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
335
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
336
-  (0.1ms) ROLLBACK
337
-  (0.1ms) ROLLBACK
338
-  (0.1ms) BEGIN
339
-  (0.0ms) BEGIN
340
-  (0.0ms) SAVEPOINT active_record_2
341
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
342
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
343
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
344
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:47:42', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:47:42', 'post-category-3')
345
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
346
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
347
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
348
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
349
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
350
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
351
-  (0.1ms) RELEASE SAVEPOINT active_record_2
352
-  (0.1ms) SAVEPOINT active_record_2
353
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
354
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
355
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
356
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:47:42', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:47:42', 'post-category-4')
357
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
358
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
359
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
360
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
361
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
362
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
363
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
364
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
365
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
366
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
367
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
368
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
369
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
370
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
371
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
372
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
373
-  (0.1ms) RELEASE SAVEPOINT active_record_2
374
-  (0.2ms) SAVEPOINT active_record_2
375
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
376
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:47:42', 0, NULL, NULL, '2012-12-21 20:47:42', 1, 'Post 1', '2012-12-22 20:47:42', '2012-12-21-post-1', 1)
377
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
378
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
379
-  (0.6ms) ROLLBACK
380
-  (0.0ms) ROLLBACK
381
- Connecting to database specified by database.yml
382
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
383
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
384
-  (0.1ms) SELECT DATABASE() as db
385
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
386
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
387
-  (1.1ms) TRUNCATE TABLE `spud_post_categories`;
388
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
389
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
390
-  (1.2ms) TRUNCATE TABLE `spud_post_sites`;
391
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
392
-  (0.5ms) TRUNCATE TABLE `spud_user_settings`;
393
-  (1.2ms) TRUNCATE TABLE `spud_users`;
394
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
395
-  (0.0ms) BEGIN
396
-  (0.0ms) BEGIN
397
-  (0.1ms) ROLLBACK
398
-  (0.1ms) ROLLBACK
399
-  (0.1ms) BEGIN
400
-  (0.0ms) BEGIN
401
- SpudPostCategory Exists (1.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
402
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
403
-  (0.2ms) ROLLBACK
404
-  (0.1ms) ROLLBACK
405
-  (0.0ms) BEGIN
406
-  (0.1ms) BEGIN
407
-  (0.1ms) SAVEPOINT active_record_2
408
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
409
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
410
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
411
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:48:33', NULL, 1, 'Test', 0, 2, '2012-12-22 20:48:33', 'test')
412
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
413
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
414
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
415
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
416
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
417
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
418
-  (0.1ms) RELEASE SAVEPOINT active_record_2
419
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
420
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
421
-  (0.4ms) ROLLBACK
422
-  (0.0ms) ROLLBACK
423
-  (0.0ms) BEGIN
424
-  (0.0ms) BEGIN
425
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
426
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
427
-  (0.0ms) ROLLBACK
428
-  (0.0ms) ROLLBACK
429
-  (0.0ms) BEGIN
430
-  (0.0ms) BEGIN
431
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
432
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
433
-  (0.1ms) ROLLBACK
434
-  (0.0ms) ROLLBACK
435
-  (0.0ms) BEGIN
436
-  (0.0ms) BEGIN
437
-  (0.0ms) SAVEPOINT active_record_2
438
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
439
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
440
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
441
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:48:33', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:48:33', 'post-category-3')
442
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
443
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
444
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
445
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
446
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
447
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
448
-  (0.1ms) RELEASE SAVEPOINT active_record_2
449
-  (0.1ms) SAVEPOINT active_record_2
450
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
451
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
452
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
453
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:48:33', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:48:33', 'post-category-4')
454
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
455
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
456
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
457
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
458
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
459
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
460
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
461
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
462
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
463
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
464
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
465
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
466
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
467
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
468
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
469
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
470
-  (0.1ms) RELEASE SAVEPOINT active_record_2
471
-  (0.3ms) SAVEPOINT active_record_2
472
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
473
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:48:33', 0, NULL, NULL, '2012-12-21 20:48:32', 1, 'Post 1', '2012-12-22 20:48:33', '2012-12-21-post-1', 1)
474
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
475
-  (0.2ms) RELEASE SAVEPOINT active_record_2
476
-  (0.1ms) SAVEPOINT active_record_2
477
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
478
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:48:33', 0, NULL, NULL, '2012-12-21 20:48:32', 1, 'Post 2', '2012-12-22 20:48:33', '2012-12-21-post-2', 1)
479
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
480
-  (0.1ms) RELEASE SAVEPOINT active_record_2
481
-  (0.1ms) SAVEPOINT active_record_2
482
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
483
- SQL (0.1ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:48:33', 0, NULL, NULL, '2012-12-21 20:48:32', 1, 'Post 3', '2012-12-22 20:48:33', '2012-12-21-post-3', 1)
484
-  (0.2ms) RELEASE SAVEPOINT active_record_2
485
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) ORDER BY `spud_post_categories`.`lft`
486
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2)
487
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`id` IN (1)
488
-  (1.0ms) ROLLBACK
489
-  (0.2ms) ROLLBACK
490
- Connecting to database specified by database.yml
491
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
492
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
493
-  (0.1ms) SELECT DATABASE() as db
494
-  (2.0ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
495
-  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;
496
-  (1.1ms) TRUNCATE TABLE `spud_post_categories`;
497
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
498
-  (2.5ms) TRUNCATE TABLE `spud_post_comments`;
499
-  (1.0ms) TRUNCATE TABLE `spud_post_sites`;
500
-  (1.5ms) TRUNCATE TABLE `spud_posts`;
501
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
502
-  (1.8ms) TRUNCATE TABLE `spud_users`;
503
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
504
-  (0.0ms) BEGIN
505
-  (0.0ms) BEGIN
506
-  (0.1ms) ROLLBACK
507
-  (0.1ms) ROLLBACK
508
-  (0.0ms) BEGIN
509
-  (0.0ms) BEGIN
510
- SpudPostCategory Exists (1.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
511
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
512
-  (0.1ms) ROLLBACK
513
-  (0.0ms) ROLLBACK
514
-  (0.0ms) BEGIN
515
-  (0.0ms) BEGIN
516
-  (0.0ms) SAVEPOINT active_record_2
517
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
518
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
519
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
520
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:49:10', NULL, 1, 'Test', 0, 2, '2012-12-22 20:49:10', 'test')
521
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
522
-  (0.5ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
523
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
524
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
525
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
526
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
527
-  (0.1ms) RELEASE SAVEPOINT active_record_2
528
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
529
- SpudPostCategory Exists (0.5ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
530
-  (0.5ms) ROLLBACK
531
-  (0.1ms) ROLLBACK
532
-  (0.0ms) BEGIN
533
-  (0.0ms) BEGIN
534
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
535
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
536
-  (0.1ms) ROLLBACK
537
-  (0.2ms) ROLLBACK
538
-  (0.0ms) BEGIN
539
-  (0.0ms) BEGIN
540
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
541
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
542
-  (0.1ms) ROLLBACK
543
-  (0.1ms) ROLLBACK
544
-  (0.0ms) BEGIN
545
-  (0.0ms) BEGIN
546
-  (0.0ms) SAVEPOINT active_record_2
547
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
548
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
549
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
550
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:49:10', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:49:10', 'post-category-3')
551
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
552
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
553
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
554
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
555
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
556
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
557
-  (0.0ms) RELEASE SAVEPOINT active_record_2
558
-  (0.0ms) SAVEPOINT active_record_2
559
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
560
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
561
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
562
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:49:10', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:49:10', 'post-category-4')
563
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
564
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
565
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
566
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
567
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
568
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
569
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
570
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
571
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
572
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
573
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
574
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
575
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
576
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
577
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
578
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
579
-  (0.1ms) RELEASE SAVEPOINT active_record_2
580
-  (0.3ms) SAVEPOINT active_record_2
581
- SpudPost Exists (0.6ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
582
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:49:10', 0, NULL, NULL, '2012-12-21 20:49:10', 1, 'Post 1', '2012-12-22 20:49:10', '2012-12-21-post-1', 1)
583
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
584
-  (0.2ms) RELEASE SAVEPOINT active_record_2
585
-  (0.2ms) SAVEPOINT active_record_2
586
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
587
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:49:10', 0, NULL, NULL, '2012-12-21 20:49:10', 1, 'Post 2', '2012-12-22 20:49:10', '2012-12-21-post-2', 1)
588
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
589
-  (0.1ms) RELEASE SAVEPOINT active_record_2
590
-  (0.2ms) SAVEPOINT active_record_2
591
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
592
- SQL (0.1ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:49:10', 0, NULL, NULL, '2012-12-21 20:49:10', 1, 'Post 3', '2012-12-22 20:49:10', '2012-12-21-post-3', 1)
593
-  (0.1ms) RELEASE SAVEPOINT active_record_2
594
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) ORDER BY `spud_post_categories`.`lft`
595
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2)
596
-  (0.2ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1)
597
-  (0.9ms) ROLLBACK
598
-  (0.1ms) ROLLBACK
599
- Connecting to database specified by database.yml
600
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
601
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
602
-  (0.1ms) SELECT DATABASE() as db
603
-  (2.4ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
604
-  (2.6ms) TRUNCATE TABLE `spud_admin_permissions`;
605
-  (1.0ms) TRUNCATE TABLE `spud_post_categories`;
606
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
607
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
608
-  (0.9ms) TRUNCATE TABLE `spud_post_sites`;
609
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
610
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
611
-  (1.2ms) TRUNCATE TABLE `spud_users`;
612
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
613
-  (0.0ms) BEGIN
614
-  (0.0ms) BEGIN
615
-  (0.1ms) ROLLBACK
616
-  (0.1ms) ROLLBACK
617
-  (0.0ms) BEGIN
618
-  (0.0ms) BEGIN
619
- SpudPostCategory Exists (1.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
620
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
621
-  (0.1ms) ROLLBACK
622
-  (0.0ms) ROLLBACK
623
-  (0.0ms) BEGIN
624
-  (0.0ms) BEGIN
625
-  (0.0ms) SAVEPOINT active_record_2
626
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
627
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
628
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
629
- SQL (0.4ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:50:21', NULL, 1, 'Test', 0, 2, '2012-12-22 20:50:21', 'test')
630
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
631
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
632
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
633
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
634
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
635
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
636
-  (0.2ms) RELEASE SAVEPOINT active_record_2
637
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
638
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
639
-  (0.4ms) ROLLBACK
640
-  (0.0ms) ROLLBACK
641
-  (0.0ms) BEGIN
642
-  (0.0ms) BEGIN
643
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
644
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
645
-  (0.1ms) ROLLBACK
646
-  (0.0ms) ROLLBACK
647
-  (0.0ms) BEGIN
648
-  (0.0ms) BEGIN
649
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
650
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
651
-  (0.1ms) ROLLBACK
652
-  (0.0ms) ROLLBACK
653
-  (0.0ms) BEGIN
654
-  (0.0ms) BEGIN
655
-  (0.0ms) SAVEPOINT active_record_2
656
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
657
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
658
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
659
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:50:21', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:50:21', 'post-category-3')
660
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
661
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
662
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
663
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
664
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
665
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
666
-  (0.1ms) RELEASE SAVEPOINT active_record_2
667
-  (0.1ms) SAVEPOINT active_record_2
668
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
669
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
670
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
671
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:50:21', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:50:21', 'post-category-4')
672
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
673
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
674
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
675
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
676
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
677
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
678
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
679
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
680
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
681
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
682
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
683
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
684
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
685
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
686
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
687
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
688
-  (0.1ms) RELEASE SAVEPOINT active_record_2
689
-  (0.2ms) SAVEPOINT active_record_2
690
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
691
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:50:21', 0, NULL, NULL, '2012-12-21 20:50:21', 1, 'Post 1', '2012-12-22 20:50:21', '2012-12-21-post-1', 1)
692
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
693
-  (0.1ms) RELEASE SAVEPOINT active_record_2
694
-  (0.2ms) SAVEPOINT active_record_2
695
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
696
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:50:21', 0, NULL, NULL, '2012-12-21 20:50:21', 1, 'Post 2', '2012-12-22 20:50:21', '2012-12-21-post-2', 1)
697
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
698
-  (0.2ms) RELEASE SAVEPOINT active_record_2
699
-  (0.2ms) SAVEPOINT active_record_2
700
- SpudPost Exists (0.1ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
701
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:50:21', 0, NULL, NULL, '2012-12-21 20:50:21', 1, 'Post 3', '2012-12-22 20:50:21', '2012-12-21-post-3', 1)
702
-  (0.0ms) RELEASE SAVEPOINT active_record_2
703
-  (0.7ms) ROLLBACK
704
-  (0.0ms) ROLLBACK
705
- Connecting to database specified by database.yml
706
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
707
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
708
-  (0.1ms) SELECT DATABASE() as db
709
-  (2.1ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
710
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
711
-  (1.0ms) TRUNCATE TABLE `spud_post_categories`;
712
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
713
-  (1.4ms) TRUNCATE TABLE `spud_post_comments`;
714
-  (0.5ms) TRUNCATE TABLE `spud_post_sites`;
715
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
716
-  (1.0ms) TRUNCATE TABLE `spud_user_settings`;
717
-  (0.9ms) TRUNCATE TABLE `spud_users`;
718
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
719
-  (0.0ms) BEGIN
720
-  (0.0ms) BEGIN
721
-  (0.1ms) ROLLBACK
722
-  (0.0ms) ROLLBACK
723
-  (0.0ms) BEGIN
724
-  (0.0ms) BEGIN
725
- SpudPostCategory Exists (1.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
726
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
727
-  (0.1ms) ROLLBACK
728
-  (0.1ms) ROLLBACK
729
-  (0.0ms) BEGIN
730
-  (0.0ms) BEGIN
731
-  (0.0ms) SAVEPOINT active_record_2
732
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
733
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
734
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
735
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:50:34', NULL, 1, 'Test', 0, 2, '2012-12-22 20:50:34', 'test')
736
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
737
-  (0.5ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
738
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
739
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
740
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
741
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
742
-  (0.2ms) RELEASE SAVEPOINT active_record_2
743
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
744
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
745
-  (0.4ms) ROLLBACK
746
-  (0.0ms) ROLLBACK
747
-  (0.0ms) BEGIN
748
-  (0.0ms) BEGIN
749
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
750
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
751
-  (0.1ms) ROLLBACK
752
-  (0.0ms) ROLLBACK
753
-  (0.0ms) BEGIN
754
-  (0.0ms) BEGIN
755
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
756
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
757
-  (0.1ms) ROLLBACK
758
-  (0.1ms) ROLLBACK
759
-  (0.0ms) BEGIN
760
-  (0.0ms) BEGIN
761
-  (0.0ms) SAVEPOINT active_record_2
762
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
763
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
764
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
765
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:50:34', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:50:34', 'post-category-3')
766
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
767
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
768
- SQL (0.6ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
769
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
770
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
771
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
772
-  (0.1ms) RELEASE SAVEPOINT active_record_2
773
-  (0.1ms) SAVEPOINT active_record_2
774
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
775
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
776
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
777
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:50:34', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:50:34', 'post-category-4')
778
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
779
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
780
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
781
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
782
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
783
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
784
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
785
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
786
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
787
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
788
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
789
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
790
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
791
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
792
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
793
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
794
-  (0.1ms) RELEASE SAVEPOINT active_record_2
795
-  (0.1ms) SAVEPOINT active_record_2
796
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
797
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:50:35', 0, NULL, NULL, '2012-12-21 20:50:34', 1, 'Post 1', '2012-12-22 20:50:35', '2012-12-21-post-1', 1)
798
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
799
-  (0.2ms) RELEASE SAVEPOINT active_record_2
800
-  (0.2ms) SAVEPOINT active_record_2
801
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
802
- SQL (0.4ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:50:35', 0, NULL, NULL, '2012-12-21 20:50:34', 1, 'Post 2', '2012-12-22 20:50:35', '2012-12-21-post-2', 1)
803
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
804
-  (0.1ms) RELEASE SAVEPOINT active_record_2
805
-  (0.2ms) SAVEPOINT active_record_2
806
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
807
- SQL (0.1ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:50:35', 0, NULL, NULL, '2012-12-21 20:50:34', 1, 'Post 3', '2012-12-22 20:50:35', '2012-12-21-post-3', 1)
808
-  (0.1ms) RELEASE SAVEPOINT active_record_2
809
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 2) ORDER BY `spud_post_categories`.`lft`
810
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2)
811
-  (0.2ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1)
812
-  (1.0ms) ROLLBACK
813
-  (0.1ms) ROLLBACK
814
- Connecting to database specified by database.yml
815
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
816
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
817
-  (0.1ms) SELECT DATABASE() as db
818
-  (2.9ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
819
-  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;
820
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
821
-  (1.4ms) TRUNCATE TABLE `spud_post_categories_posts`;
822
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
823
-  (0.6ms) TRUNCATE TABLE `spud_post_sites`;
824
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
825
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
826
-  (1.6ms) TRUNCATE TABLE `spud_users`;
827
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
828
-  (0.2ms) BEGIN
829
-  (0.2ms) BEGIN
830
-  (0.3ms) ROLLBACK
831
-  (0.1ms) ROLLBACK
832
-  (0.1ms) BEGIN
833
-  (0.0ms) BEGIN
834
- SpudPostCategory Exists (1.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
835
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
836
-  (0.1ms) ROLLBACK
837
-  (0.0ms) ROLLBACK
838
-  (0.1ms) BEGIN
839
-  (0.1ms) BEGIN
840
-  (0.0ms) SAVEPOINT active_record_2
841
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
842
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
843
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
844
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:51:30', NULL, 1, 'Test', 0, 2, '2012-12-22 20:51:30', 'test')
845
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
846
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
847
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
848
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
849
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
850
- SpudPost Load (0.5ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
851
-  (0.2ms) RELEASE SAVEPOINT active_record_2
852
- SpudPostCategory Exists (0.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
853
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
854
-  (0.5ms) ROLLBACK
855
-  (0.0ms) ROLLBACK
856
-  (0.0ms) BEGIN
857
-  (0.0ms) BEGIN
858
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
859
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
860
-  (0.1ms) ROLLBACK
861
-  (0.0ms) ROLLBACK
862
-  (0.0ms) BEGIN
863
-  (0.0ms) BEGIN
864
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
865
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
866
-  (0.1ms) ROLLBACK
867
-  (0.1ms) ROLLBACK
868
-  (0.0ms) BEGIN
869
-  (0.0ms) BEGIN
870
-  (0.0ms) SAVEPOINT active_record_2
871
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
872
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
873
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
874
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:51:30', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:51:30', 'post-category-3')
875
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
876
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
877
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
878
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
879
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
880
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
881
-  (0.1ms) RELEASE SAVEPOINT active_record_2
882
-  (0.1ms) SAVEPOINT active_record_2
883
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
884
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
885
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
886
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:51:30', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:51:30', 'post-category-4')
887
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
888
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
889
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
890
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
891
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
892
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
893
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
894
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
895
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
896
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
897
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
898
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
899
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
900
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
901
- SpudPost Load (0.1ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
902
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
903
-  (0.1ms) RELEASE SAVEPOINT active_record_2
904
-  (0.3ms) SAVEPOINT active_record_2
905
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
906
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:51:30', 0, NULL, NULL, '2012-12-21 20:51:30', 1, 'Post 1', '2012-12-22 20:51:30', '2012-12-21-post-1', 1)
907
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
908
-  (0.2ms) RELEASE SAVEPOINT active_record_2
909
-  (0.1ms) SAVEPOINT active_record_2
910
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
911
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:51:30', 0, NULL, NULL, '2012-12-21 20:51:30', 1, 'Post 2', '2012-12-22 20:51:30', '2012-12-21-post-2', 1)
912
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
913
-  (0.1ms) RELEASE SAVEPOINT active_record_2
914
-  (0.1ms) SAVEPOINT active_record_2
915
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
916
- SQL (0.1ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:51:30', 0, NULL, NULL, '2012-12-21 20:51:30', 1, 'Post 3', '2012-12-22 20:51:30', '2012-12-21-post-3', 1)
917
-  (0.3ms) RELEASE SAVEPOINT active_record_2
918
- SpudPostCategory Load (0.4ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 2) ORDER BY `spud_post_categories`.`lft`
919
- [2]
920
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2)
921
-  (0.2ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1)
922
-  (1.0ms) ROLLBACK
923
-  (0.1ms) ROLLBACK
924
- Connecting to database specified by database.yml
925
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
926
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
927
-  (0.1ms) SELECT DATABASE() as db
928
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
929
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
930
-  (1.5ms) TRUNCATE TABLE `spud_post_categories`;
931
-  (1.1ms) TRUNCATE TABLE `spud_post_categories_posts`;
932
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
933
-  (0.6ms) TRUNCATE TABLE `spud_post_sites`;
934
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
935
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
936
-  (2.9ms) TRUNCATE TABLE `spud_users`;
937
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
938
-  (0.1ms) BEGIN
939
-  (0.1ms) BEGIN
940
-  (0.2ms) ROLLBACK
941
-  (0.1ms) ROLLBACK
942
-  (0.0ms) BEGIN
943
-  (0.0ms) BEGIN
944
- SpudPostCategory Exists (1.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
945
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
946
-  (0.1ms) ROLLBACK
947
-  (0.0ms) ROLLBACK
948
-  (0.0ms) BEGIN
949
-  (0.0ms) BEGIN
950
-  (0.0ms) SAVEPOINT active_record_2
951
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
952
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
953
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
954
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:51:48', NULL, 1, 'Test', 0, 2, '2012-12-22 20:51:48', 'test')
955
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
956
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
957
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
958
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
959
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
960
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
961
-  (0.2ms) RELEASE SAVEPOINT active_record_2
962
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
963
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
964
-  (0.4ms) ROLLBACK
965
-  (0.1ms) ROLLBACK
966
-  (0.0ms) BEGIN
967
-  (0.0ms) BEGIN
968
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
969
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
970
-  (0.1ms) ROLLBACK
971
-  (0.0ms) ROLLBACK
972
-  (0.0ms) BEGIN
973
-  (0.0ms) BEGIN
974
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
975
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
976
-  (0.1ms) ROLLBACK
977
-  (0.1ms) ROLLBACK
978
-  (0.1ms) BEGIN
979
-  (0.0ms) BEGIN
980
-  (0.0ms) SAVEPOINT active_record_2
981
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
982
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
983
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
984
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:51:48', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:51:48', 'post-category-3')
985
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
986
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
987
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
988
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
989
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
990
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
991
-  (0.1ms) RELEASE SAVEPOINT active_record_2
992
-  (0.1ms) SAVEPOINT active_record_2
993
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
994
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
995
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
996
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:51:48', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:51:48', 'post-category-4')
997
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
998
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
999
- SQL (0.3ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1000
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1001
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1002
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1003
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1004
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1005
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
1006
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1007
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1008
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1009
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1010
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1011
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1012
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1013
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1014
-  (0.1ms) SAVEPOINT active_record_2
1015
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1016
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:51:48', 0, NULL, NULL, '2012-12-21 20:51:48', 1, 'Post 1', '2012-12-22 20:51:48', '2012-12-21-post-1', 1)
1017
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
1018
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1019
-  (0.1ms) SAVEPOINT active_record_2
1020
- SpudPost Exists (0.5ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1021
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:51:48', 0, NULL, NULL, '2012-12-21 20:51:48', 1, 'Post 2', '2012-12-22 20:51:48', '2012-12-21-post-2', 1)
1022
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
1023
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1024
-  (0.1ms) SAVEPOINT active_record_2
1025
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1026
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:51:48', 0, NULL, NULL, '2012-12-21 20:51:48', 1, 'Post 3', '2012-12-22 20:51:48', '2012-12-21-post-3', 1)
1027
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1028
- SpudPostCategory Load (0.4ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 2) ORDER BY `spud_post_categories`.`lft`
1029
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2)
1030
-  (0.2ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1)
1031
-  (1.0ms) ROLLBACK
1032
-  (0.1ms) ROLLBACK
1033
- Connecting to database specified by database.yml
1034
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1035
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1036
-  (0.1ms) SELECT DATABASE() as db
1037
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1038
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
1039
-  (1.4ms) TRUNCATE TABLE `spud_post_categories`;
1040
-  (1.1ms) TRUNCATE TABLE `spud_post_categories_posts`;
1041
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
1042
-  (0.5ms) TRUNCATE TABLE `spud_post_sites`;
1043
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
1044
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
1045
-  (1.4ms) TRUNCATE TABLE `spud_users`;
1046
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1047
-  (0.0ms) BEGIN
1048
-  (0.0ms) BEGIN
1049
-  (0.2ms) ROLLBACK
1050
-  (0.1ms) ROLLBACK
1051
-  (0.1ms) BEGIN
1052
-  (0.0ms) BEGIN
1053
- SpudPostCategory Exists (1.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1054
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1055
-  (0.2ms) ROLLBACK
1056
-  (0.1ms) ROLLBACK
1057
-  (0.0ms) BEGIN
1058
-  (0.0ms) BEGIN
1059
-  (0.0ms) SAVEPOINT active_record_2
1060
- SpudPostCategory Exists (0.7ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1061
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1062
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1063
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:14', NULL, 1, 'Test', 0, 2, '2012-12-22 20:52:14', 'test')
1064
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1065
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1066
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1067
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1068
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1069
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1070
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1071
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1072
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1073
-  (0.4ms) ROLLBACK
1074
-  (0.0ms) ROLLBACK
1075
-  (0.0ms) BEGIN
1076
-  (0.0ms) BEGIN
1077
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1078
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1079
-  (0.1ms) ROLLBACK
1080
-  (0.0ms) ROLLBACK
1081
-  (0.0ms) BEGIN
1082
-  (0.0ms) BEGIN
1083
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1084
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1085
-  (0.1ms) ROLLBACK
1086
-  (0.1ms) ROLLBACK
1087
-  (0.0ms) BEGIN
1088
-  (0.0ms) BEGIN
1089
-  (0.1ms) SAVEPOINT active_record_2
1090
- SpudPostCategory Exists (0.5ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1091
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1092
- SpudPostCategory Load (0.4ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1093
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:14', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:52:14', 'post-category-3')
1094
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1095
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1096
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1097
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1098
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1099
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1100
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1101
-  (0.1ms) SAVEPOINT active_record_2
1102
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1103
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1104
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1105
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:14', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:52:14', 'post-category-4')
1106
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1107
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1108
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1109
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1110
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1111
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1112
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1113
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1114
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
1115
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1116
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1117
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1118
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1119
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1120
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1121
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1122
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1123
-  (0.2ms) SAVEPOINT active_record_2
1124
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1125
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:52:14', 0, NULL, NULL, '2012-12-21 20:52:14', 1, 'Post 1', '2012-12-22 20:52:14', '2012-12-21-post-1', 1)
1126
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
1127
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1128
-  (0.1ms) SAVEPOINT active_record_2
1129
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1130
- SQL (0.5ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:52:14', 0, NULL, NULL, '2012-12-21 20:52:14', 1, 'Post 2', '2012-12-22 20:52:14', '2012-12-21-post-2', 1)
1131
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
1132
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1133
-  (0.1ms) SAVEPOINT active_record_2
1134
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1135
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:52:14', 0, NULL, NULL, '2012-12-21 20:52:14', 1, 'Post 3', '2012-12-22 20:52:14', '2012-12-21-post-3', 1)
1136
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1137
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 2) ORDER BY `spud_post_categories`.`lft`
1138
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2)
1139
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1)
1140
-  (1.0ms) ROLLBACK
1141
-  (0.2ms) ROLLBACK
1142
- Connecting to database specified by database.yml
1143
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1144
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1145
-  (0.1ms) SELECT DATABASE() as db
1146
-  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1147
-  (1.5ms) TRUNCATE TABLE `spud_admin_permissions`;
1148
-  (1.0ms) TRUNCATE TABLE `spud_post_categories`;
1149
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
1150
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
1151
-  (0.9ms) TRUNCATE TABLE `spud_post_sites`;
1152
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
1153
-  (0.9ms) TRUNCATE TABLE `spud_user_settings`;
1154
-  (1.1ms) TRUNCATE TABLE `spud_users`;
1155
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
1156
-  (0.0ms) BEGIN
1157
-  (0.0ms) BEGIN
1158
-  (0.2ms) ROLLBACK
1159
-  (0.2ms) ROLLBACK
1160
-  (0.1ms) BEGIN
1161
-  (0.0ms) BEGIN
1162
- SpudPostCategory Exists (1.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1163
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1164
-  (0.1ms) ROLLBACK
1165
-  (0.0ms) ROLLBACK
1166
-  (0.0ms) BEGIN
1167
-  (0.0ms) BEGIN
1168
-  (0.0ms) SAVEPOINT active_record_2
1169
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1170
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1171
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1172
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:38', NULL, 1, 'Test', 0, 2, '2012-12-22 20:52:38', 'test')
1173
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1174
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1175
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1176
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1177
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1178
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1179
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1180
- SpudPostCategory Exists (0.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1181
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1182
-  (0.4ms) ROLLBACK
1183
-  (0.0ms) ROLLBACK
1184
-  (0.0ms) BEGIN
1185
-  (0.0ms) BEGIN
1186
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1187
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1188
-  (0.1ms) ROLLBACK
1189
-  (0.1ms) ROLLBACK
1190
-  (0.0ms) BEGIN
1191
-  (0.0ms) BEGIN
1192
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1193
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1194
-  (0.1ms) ROLLBACK
1195
-  (0.1ms) ROLLBACK
1196
-  (0.0ms) BEGIN
1197
-  (0.0ms) BEGIN
1198
-  (0.0ms) SAVEPOINT active_record_2
1199
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1200
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1201
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1202
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:38', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:52:38', 'post-category-3')
1203
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1204
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1205
- SQL (0.8ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1206
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1207
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1208
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1209
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1210
-  (0.1ms) SAVEPOINT active_record_2
1211
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1212
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1213
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1214
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:38', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:52:38', 'post-category-4')
1215
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1216
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1217
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1218
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1219
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1220
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1221
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1222
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1223
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
1224
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1225
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1226
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1227
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1228
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1229
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1230
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1231
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1232
-  (0.9ms) ROLLBACK
1233
-  (0.2ms) ROLLBACK
1234
- Connecting to database specified by database.yml
1235
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1236
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1237
-  (0.1ms) SELECT DATABASE() as db
1238
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1239
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
1240
-  (1.1ms) TRUNCATE TABLE `spud_post_categories`;
1241
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
1242
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
1243
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
1244
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
1245
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
1246
-  (1.2ms) TRUNCATE TABLE `spud_users`;
1247
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1248
-  (0.0ms) BEGIN
1249
-  (0.0ms) BEGIN
1250
-  (0.1ms) ROLLBACK
1251
-  (0.1ms) ROLLBACK
1252
-  (0.0ms) BEGIN
1253
-  (0.1ms) BEGIN
1254
- SpudPostCategory Exists (1.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1255
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1256
-  (0.1ms) ROLLBACK
1257
-  (0.0ms) ROLLBACK
1258
-  (0.0ms) BEGIN
1259
-  (0.0ms) BEGIN
1260
-  (0.0ms) SAVEPOINT active_record_2
1261
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1262
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1263
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1264
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:55', NULL, 1, 'Test', 0, 2, '2012-12-22 20:52:55', 'test')
1265
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1266
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1267
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1268
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1269
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1270
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1271
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1272
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1273
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1274
-  (0.5ms) ROLLBACK
1275
-  (0.0ms) ROLLBACK
1276
-  (0.0ms) BEGIN
1277
-  (0.0ms) BEGIN
1278
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1279
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1280
-  (0.1ms) ROLLBACK
1281
-  (0.0ms) ROLLBACK
1282
-  (0.0ms) BEGIN
1283
-  (0.0ms) BEGIN
1284
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1285
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1286
-  (0.1ms) ROLLBACK
1287
-  (0.1ms) ROLLBACK
1288
-  (0.0ms) BEGIN
1289
-  (0.0ms) BEGIN
1290
-  (0.0ms) SAVEPOINT active_record_2
1291
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1292
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1293
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1294
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:55', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:52:55', 'post-category-3')
1295
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1296
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1297
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1298
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1299
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1300
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1301
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1302
-  (0.1ms) SAVEPOINT active_record_2
1303
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1304
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1305
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1306
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:52:55', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:52:55', 'post-category-4')
1307
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1308
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1309
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1310
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1311
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1312
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1313
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1314
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1315
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
1316
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1317
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1318
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1319
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1320
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1321
- SpudPost Load (0.1ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1322
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1323
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1324
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1325
-  (0.3ms) SAVEPOINT active_record_2
1326
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1327
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:52:55', 0, NULL, NULL, '2012-12-21 20:52:54', 1, 'Post 1', '2012-12-22 20:52:55', '2012-12-21-post-1', 1)
1328
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
1329
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1330
-  (0.2ms) SAVEPOINT active_record_2
1331
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1332
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:52:55', 0, NULL, NULL, '2012-12-21 20:52:54', 1, 'Post 2', '2012-12-22 20:52:55', '2012-12-21-post-2', 1)
1333
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
1334
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1335
-  (0.1ms) SAVEPOINT active_record_2
1336
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1337
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:52:55', 0, NULL, NULL, '2012-12-21 20:52:54', 1, 'Post 3', '2012-12-22 20:52:55', '2012-12-21-post-3', 1)
1338
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1339
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 4) ORDER BY `spud_post_categories`.`lft`
1340
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2, 3)
1341
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1, 2)
1342
-  (0.9ms) ROLLBACK
1343
-  (0.1ms) ROLLBACK
1344
- Connecting to database specified by database.yml
1345
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1346
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1347
-  (0.1ms) SELECT DATABASE() as db
1348
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1349
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
1350
-  (1.6ms) TRUNCATE TABLE `spud_post_categories`;
1351
-  (0.9ms) TRUNCATE TABLE `spud_post_categories_posts`;
1352
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
1353
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
1354
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
1355
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
1356
-  (1.2ms) TRUNCATE TABLE `spud_users`;
1357
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1358
-  (0.0ms) BEGIN
1359
-  (0.0ms) BEGIN
1360
-  (0.2ms) ROLLBACK
1361
-  (0.0ms) ROLLBACK
1362
-  (0.0ms) BEGIN
1363
-  (0.0ms) BEGIN
1364
- SpudPostCategory Exists (1.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1365
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1366
-  (0.1ms) ROLLBACK
1367
-  (0.0ms) ROLLBACK
1368
-  (0.0ms) BEGIN
1369
-  (0.0ms) BEGIN
1370
-  (0.0ms) SAVEPOINT active_record_2
1371
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1372
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1373
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1374
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:54:44', NULL, 1, 'Test', 0, 2, '2012-12-22 20:54:44', 'test')
1375
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1376
-  (0.5ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1377
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1378
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1379
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1380
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1381
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1382
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1383
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1384
-  (0.6ms) ROLLBACK
1385
-  (0.1ms) ROLLBACK
1386
-  (0.0ms) BEGIN
1387
-  (0.0ms) BEGIN
1388
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1389
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1390
-  (0.1ms) ROLLBACK
1391
-  (0.0ms) ROLLBACK
1392
-  (0.0ms) BEGIN
1393
-  (0.0ms) BEGIN
1394
-  (0.0ms) SAVEPOINT active_record_2
1395
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1396
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1397
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1398
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:54:44', NULL, 1, 'Post Category 2', 0, 2, '2012-12-22 20:54:44', 'post-category-2')
1399
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1400
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1401
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1402
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1403
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1404
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1405
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1406
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1407
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE (`spud_post_categories`.`name` = BINARY 'Post Category 2' AND `spud_post_categories`.`id` != 2) LIMIT 1
1408
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE (`spud_post_categories`.`url_name` = BINARY 'post-category-2' AND `spud_post_categories`.`id` != 2) LIMIT 1
1409
-  (0.4ms) ROLLBACK
1410
-  (0.0ms) ROLLBACK
1411
-  (0.0ms) BEGIN
1412
-  (0.0ms) BEGIN
1413
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1414
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1415
-  (0.1ms) ROLLBACK
1416
-  (0.0ms) ROLLBACK
1417
-  (0.0ms) BEGIN
1418
-  (0.0ms) BEGIN
1419
-  (0.0ms) SAVEPOINT active_record_2
1420
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1421
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1422
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1423
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:54:44', NULL, 1, 'Post Category 4', 0, 2, '2012-12-22 20:54:44', 'post-category-4')
1424
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1425
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 3)
1426
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1427
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 3)
1428
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1429
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1430
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1431
-  (0.1ms) SAVEPOINT active_record_2
1432
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 5' LIMIT 1
1433
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-5' LIMIT 1
1434
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1435
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:54:44', NULL, 3, 'Post Category 5', 3, 4, '2012-12-22 20:54:44', 'post-category-5')
1436
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1437
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1438
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 4 THEN 3 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1439
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1440
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1441
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1442
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1443
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1444
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 4) ORDER BY `spud_post_categories`.`lft`
1445
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1446
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1447
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1448
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1449
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1450
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1451
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1452
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1453
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1454
-  (0.2ms) SAVEPOINT active_record_2
1455
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1456
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:54:44', 0, NULL, NULL, '2012-12-21 20:54:44', 1, 'Post 1', '2012-12-22 20:54:44', '2012-12-21-post-1', 1)
1457
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 3)
1458
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1459
-  (0.2ms) SAVEPOINT active_record_2
1460
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1461
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:54:44', 0, NULL, NULL, '2012-12-21 20:54:44', 1, 'Post 2', '2012-12-22 20:54:44', '2012-12-21-post-2', 1)
1462
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 4)
1463
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1464
-  (0.1ms) SAVEPOINT active_record_2
1465
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1466
- SQL (0.1ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:54:44', 0, NULL, NULL, '2012-12-21 20:54:44', 1, 'Post 3', '2012-12-22 20:54:44', '2012-12-21-post-3', 1)
1467
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1468
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 4) ORDER BY `spud_post_categories`.`lft`
1469
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (3, 4)
1470
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1, 2)
1471
-  (1.0ms) ROLLBACK
1472
-  (0.1ms) ROLLBACK
1473
- Connecting to database specified by database.yml
1474
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1475
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1476
-  (0.1ms) SELECT DATABASE() as db
1477
-  (2.9ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1478
-  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;
1479
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
1480
-  (2.4ms) TRUNCATE TABLE `spud_post_categories_posts`;
1481
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
1482
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
1483
-  (0.7ms) TRUNCATE TABLE `spud_posts`;
1484
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
1485
-  (1.1ms) TRUNCATE TABLE `spud_users`;
1486
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
1487
-  (0.1ms) BEGIN
1488
-  (0.1ms) BEGIN
1489
-  (0.2ms) ROLLBACK
1490
-  (0.1ms) ROLLBACK
1491
-  (0.1ms) BEGIN
1492
-  (0.0ms) BEGIN
1493
- SpudPostCategory Exists (1.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1494
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1495
-  (0.1ms) ROLLBACK
1496
-  (0.0ms) ROLLBACK
1497
-  (0.0ms) BEGIN
1498
-  (0.0ms) BEGIN
1499
-  (0.0ms) SAVEPOINT active_record_2
1500
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1501
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1502
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1503
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:12', NULL, 1, 'Test', 0, 2, '2012-12-22 20:55:12', 'test')
1504
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1505
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1506
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1507
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1508
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1509
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1510
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1511
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1512
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1513
-  (0.6ms) ROLLBACK
1514
-  (0.1ms) ROLLBACK
1515
-  (0.0ms) BEGIN
1516
-  (0.0ms) BEGIN
1517
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1518
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1519
-  (0.1ms) ROLLBACK
1520
-  (0.0ms) ROLLBACK
1521
-  (0.0ms) BEGIN
1522
-  (0.0ms) BEGIN
1523
-  (0.0ms) SAVEPOINT active_record_2
1524
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1525
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1526
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1527
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:13', NULL, 1, 'Post Category 2', 0, 2, '2012-12-22 20:55:13', 'post-category-2')
1528
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1529
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1530
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1531
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1532
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1533
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1534
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1535
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1536
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE (`spud_post_categories`.`name` = BINARY 'Post Category 2' AND `spud_post_categories`.`id` != 2) LIMIT 1
1537
- SpudPostCategory Exists (0.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE (`spud_post_categories`.`url_name` = BINARY 'post-category-2' AND `spud_post_categories`.`id` != 2) LIMIT 1
1538
-  (0.7ms) ROLLBACK
1539
-  (0.0ms) ROLLBACK
1540
-  (0.0ms) BEGIN
1541
-  (0.0ms) BEGIN
1542
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1543
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1544
-  (0.1ms) ROLLBACK
1545
-  (0.0ms) ROLLBACK
1546
-  (0.0ms) BEGIN
1547
-  (0.1ms) BEGIN
1548
-  (0.1ms) SAVEPOINT active_record_2
1549
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1550
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1551
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1552
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:13', NULL, 1, 'Post Category 4', 0, 2, '2012-12-22 20:55:13', 'post-category-4')
1553
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1554
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 3)
1555
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1556
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 3)
1557
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1558
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1559
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1560
-  (0.1ms) SAVEPOINT active_record_2
1561
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 5' LIMIT 1
1562
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-5' LIMIT 1
1563
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1564
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:13', NULL, 3, 'Post Category 5', 3, 4, '2012-12-22 20:55:13', 'post-category-5')
1565
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1566
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1567
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 4 THEN 3 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1568
- SpudPostCategory Load (0.5ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1569
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1570
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1571
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1572
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1573
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 4) ORDER BY `spud_post_categories`.`lft`
1574
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1575
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1576
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1577
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1578
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1579
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1580
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1581
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1582
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1583
-  (0.1ms) SAVEPOINT active_record_2
1584
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1585
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:55:13', 0, NULL, NULL, '2012-12-21 20:55:12', 1, 'Post 1', '2012-12-22 20:55:13', '2012-12-21-post-1', 1)
1586
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 3)
1587
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1588
-  (0.1ms) SAVEPOINT active_record_2
1589
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1590
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:55:13', 0, NULL, NULL, '2012-12-21 20:55:12', 1, 'Post 2', '2012-12-22 20:55:13', '2012-12-21-post-2', 1)
1591
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 4)
1592
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1593
-  (0.1ms) SAVEPOINT active_record_2
1594
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1595
- SQL (0.1ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:55:13', 0, NULL, NULL, '2012-12-21 20:55:12', 1, 'Post 3', '2012-12-22 20:55:13', '2012-12-21-post-3', 1)
1596
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1597
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 4) ORDER BY `spud_post_categories`.`lft`
1598
- SpudPostCategoriesPost Load (0.1ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (3, 4)
1599
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1, 2)
1600
-  (0.6ms) ROLLBACK
1601
-  (0.0ms) ROLLBACK
1602
- Connecting to database specified by database.yml
1603
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1604
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1605
-  (0.2ms) SELECT DATABASE() as db
1606
-  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1607
-  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;
1608
-  (1.0ms) TRUNCATE TABLE `spud_post_categories`;
1609
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
1610
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
1611
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
1612
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
1613
-  (0.5ms) TRUNCATE TABLE `spud_user_settings`;
1614
-  (0.7ms) TRUNCATE TABLE `spud_users`;
1615
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
1616
-  (0.0ms) BEGIN
1617
-  (0.1ms) BEGIN
1618
-  (0.1ms) ROLLBACK
1619
-  (0.1ms) ROLLBACK
1620
-  (0.1ms) BEGIN
1621
-  (0.0ms) BEGIN
1622
- SpudPostCategory Exists (1.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1623
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1624
-  (0.1ms) ROLLBACK
1625
-  (0.0ms) ROLLBACK
1626
-  (0.0ms) BEGIN
1627
-  (0.0ms) BEGIN
1628
-  (0.0ms) SAVEPOINT active_record_2
1629
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1630
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1631
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1632
- SQL (0.3ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:43', NULL, 1, 'Test', 0, 2, '2012-12-22 20:55:43', 'test')
1633
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1634
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1635
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1636
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1637
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1638
- SpudPost Load (0.5ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1639
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1640
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1641
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1642
-  (0.7ms) ROLLBACK
1643
-  (0.0ms) ROLLBACK
1644
-  (0.0ms) BEGIN
1645
-  (0.0ms) BEGIN
1646
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1647
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1648
-  (0.1ms) ROLLBACK
1649
-  (0.0ms) ROLLBACK
1650
-  (0.0ms) BEGIN
1651
-  (0.0ms) BEGIN
1652
-  (0.0ms) SAVEPOINT active_record_2
1653
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1654
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1655
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1656
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:43', NULL, 1, 'Post Category 2', 0, 2, '2012-12-22 20:55:43', 'post-category-2')
1657
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1658
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1659
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1660
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1661
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1662
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1663
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1664
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1665
-  (0.1ms) SAVEPOINT active_record_2
1666
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE (`spud_post_categories`.`name` = BINARY 'Post Category 2' AND `spud_post_categories`.`id` != 2) LIMIT 1
1667
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE (`spud_post_categories`.`url_name` = BINARY 'post-category-2' AND `spud_post_categories`.`id` != 2) LIMIT 1
1668
-  (0.3ms) UPDATE `spud_post_categories` SET `parent_id` = 2, `updated_at` = '2012-12-22 20:55:43' WHERE `spud_post_categories`.`id` = 2
1669
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1670
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1671
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1672
-  (0.4ms) ROLLBACK
1673
-  (0.0ms) ROLLBACK
1674
-  (0.0ms) BEGIN
1675
-  (0.0ms) BEGIN
1676
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1677
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1678
-  (0.1ms) ROLLBACK
1679
-  (0.0ms) ROLLBACK
1680
-  (0.0ms) BEGIN
1681
-  (0.0ms) BEGIN
1682
-  (0.0ms) SAVEPOINT active_record_2
1683
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1684
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1685
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1686
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:43', NULL, 1, 'Post Category 4', 0, 2, '2012-12-22 20:55:43', 'post-category-4')
1687
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1688
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 3)
1689
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1690
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 3)
1691
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1692
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1693
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1694
-  (0.1ms) SAVEPOINT active_record_2
1695
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 5' LIMIT 1
1696
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-5' LIMIT 1
1697
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1698
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:55:43', NULL, 3, 'Post Category 5', 3, 4, '2012-12-22 20:55:43', 'post-category-5')
1699
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1700
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1701
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 4 THEN 3 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1702
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1703
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1704
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1705
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1706
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1707
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 4) ORDER BY `spud_post_categories`.`lft`
1708
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1709
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1710
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1711
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1712
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 4)
1713
- SpudPost Load (0.1ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1714
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1715
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1716
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1717
-  (0.2ms) SAVEPOINT active_record_2
1718
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1719
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:55:43', 0, NULL, NULL, '2012-12-21 20:55:43', 1, 'Post 1', '2012-12-22 20:55:43', '2012-12-21-post-1', 1)
1720
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 3)
1721
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1722
-  (0.1ms) SAVEPOINT active_record_2
1723
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1724
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:55:43', 0, NULL, NULL, '2012-12-21 20:55:43', 1, 'Post 2', '2012-12-22 20:55:43', '2012-12-21-post-2', 1)
1725
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 4)
1726
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1727
-  (0.1ms) SAVEPOINT active_record_2
1728
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1729
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:55:43', 0, NULL, NULL, '2012-12-21 20:55:43', 1, 'Post 3', '2012-12-22 20:55:43', '2012-12-21-post-3', 1)
1730
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1731
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 4) ORDER BY `spud_post_categories`.`lft`
1732
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (3, 4)
1733
-  (0.2ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1, 2)
1734
-  (0.9ms) ROLLBACK
1735
-  (0.0ms) ROLLBACK
1736
- Connecting to database specified by database.yml
1737
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1738
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1739
-  (0.1ms) SELECT DATABASE() as db
1740
-  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1741
-  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;
1742
-  (1.6ms) TRUNCATE TABLE `spud_post_categories`;
1743
-  (1.0ms) TRUNCATE TABLE `spud_post_categories_posts`;
1744
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
1745
-  (1.0ms) TRUNCATE TABLE `spud_post_sites`;
1746
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
1747
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
1748
-  (0.9ms) TRUNCATE TABLE `spud_users`;
1749
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1750
-  (0.0ms) BEGIN
1751
-  (0.0ms) BEGIN
1752
-  (0.1ms) ROLLBACK
1753
-  (0.1ms) ROLLBACK
1754
-  (0.0ms) BEGIN
1755
-  (0.1ms) BEGIN
1756
- SpudPostCategory Exists (1.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1757
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1758
-  (0.1ms) ROLLBACK
1759
-  (0.0ms) ROLLBACK
1760
-  (0.0ms) BEGIN
1761
-  (0.0ms) BEGIN
1762
-  (0.0ms) SAVEPOINT active_record_2
1763
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1764
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1765
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1766
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:57:29', NULL, 1, 'Test', 0, 2, '2012-12-22 20:57:29', 'test')
1767
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1768
-  (0.4ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1769
- SQL (0.3ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1770
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1771
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1772
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1773
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1774
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1775
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1776
-  (0.5ms) ROLLBACK
1777
-  (0.1ms) ROLLBACK
1778
-  (0.0ms) BEGIN
1779
-  (0.0ms) BEGIN
1780
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1781
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1782
-  (0.1ms) ROLLBACK
1783
-  (0.0ms) ROLLBACK
1784
-  (0.0ms) BEGIN
1785
-  (0.0ms) BEGIN
1786
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1787
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1788
-  (0.1ms) ROLLBACK
1789
-  (0.1ms) ROLLBACK
1790
-  (0.0ms) BEGIN
1791
-  (0.0ms) BEGIN
1792
-  (0.0ms) SAVEPOINT active_record_2
1793
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1794
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1795
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1796
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:57:29', NULL, 1, 'Post Category 3', 0, 2, '2012-12-22 20:57:29', 'post-category-3')
1797
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1798
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1799
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1800
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1801
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1802
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1803
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1804
-  (0.0ms) SAVEPOINT active_record_2
1805
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1806
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1807
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1808
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:57:29', NULL, 3, 'Post Category 4', 2, 4, '2012-12-22 20:57:29', 'post-category-4')
1809
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1810
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1811
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1812
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1813
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1814
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1815
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1816
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1817
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
1818
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1819
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1820
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1821
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
1822
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1823
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1824
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1825
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1826
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1827
-  (0.2ms) SAVEPOINT active_record_2
1828
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-1' LIMIT 1
1829
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:57:29', 0, NULL, NULL, '2012-12-21 20:57:29', 1, 'Post 1', '2012-12-22 20:57:29', '2012-12-21-post-1', 1)
1830
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
1831
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1832
-  (0.2ms) SAVEPOINT active_record_2
1833
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-2' LIMIT 1
1834
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:57:29', 0, NULL, NULL, '2012-12-21 20:57:29', 1, 'Post 2', '2012-12-22 20:57:29', '2012-12-21-post-2', 1)
1835
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
1836
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1837
-  (0.2ms) SAVEPOINT active_record_2
1838
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2012-12-21-post-3' LIMIT 1
1839
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2012-12-22 20:57:29', 0, NULL, NULL, '2012-12-21 20:57:29', 1, 'Post 3', '2012-12-22 20:57:29', '2012-12-21-post-3', 1)
1840
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1841
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 4) ORDER BY `spud_post_categories`.`lft`
1842
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2, 3)
1843
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1, 2)
1844
-  (1.0ms) ROLLBACK
1845
-  (0.1ms) ROLLBACK
1846
-  (0.1ms) BEGIN
1847
-  (0.1ms) BEGIN
1848
-  (0.1ms) SAVEPOINT active_record_2
1849
- SpudPostCategory Exists (0.4ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 5' LIMIT 1
1850
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-5' LIMIT 1
1851
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1852
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:57:29', NULL, 1, 'Post Category 5', 0, 2, '2012-12-22 20:57:29', 'post-category-5')
1853
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1854
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 4)
1855
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
1856
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 4)
1857
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1858
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1859
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1860
-  (0.1ms) SAVEPOINT active_record_2
1861
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 6' LIMIT 1
1862
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-6' LIMIT 1
1863
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1864
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:57:29', NULL, 3, 'Post Category 6', 4, 4, '2012-12-22 20:57:29', 'post-category-6')
1865
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1866
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1 FOR UPDATE
1867
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 5 THEN 4 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1868
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
1869
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1
1870
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
1871
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 5 ORDER BY `spud_post_categories`.`lft`
1872
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
1873
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 5) ORDER BY `spud_post_categories`.`lft`
1874
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1 FOR UPDATE
1875
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1
1876
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
1877
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 5 ORDER BY `spud_post_categories`.`lft`
1878
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
1879
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1880
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1881
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1882
-  (0.1ms) SAVEPOINT active_record_2
1883
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 7' LIMIT 1
1884
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-7' LIMIT 1
1885
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1886
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2012-12-22 20:57:29', NULL, 5, 'Post Category 7', 5, 6, '2012-12-22 20:57:29', 'post-category-7')
1887
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1888
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1 FOR UPDATE
1889
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 6 - 4 WHEN `lft` BETWEEN 5 AND 6 THEN `lft` + 3 - 5 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 6 - 4 WHEN `rgt` BETWEEN 5 AND 6 THEN `rgt` + 3 - 5 ELSE `rgt` END, `parent_id` = CASE WHEN id = 6 THEN 5 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1890
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1 FOR UPDATE
1891
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1
1892
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
1893
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 2 WHERE `spud_post_categories`.`id` = 6 ORDER BY `spud_post_categories`.`lft`
1894
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
1895
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 3 AND `spud_post_categories`.`lft` < 4) AND (`spud_post_categories`.id != 6) ORDER BY `spud_post_categories`.`lft`
1896
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1 FOR UPDATE
1897
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1
1898
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
1899
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 2 WHERE `spud_post_categories`.`id` = 6 ORDER BY `spud_post_categories`.`lft`
1900
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
1901
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1902
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1903
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1904
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1
1905
-  (0.1ms) SAVEPOINT active_record_2
1906
- SQL (0.4ms) UPDATE `spud_post_categories` SET `parent_id` = 4 WHERE `spud_post_categories`.`parent_id` = 5 ORDER BY lft
1907
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` LEFT OUTER JOIN `spud_post_categories` AS parent ON `spud_post_categories`.`parent_id` = parent.id WHERE (`spud_post_categories`.`lft` IS NULL OR `spud_post_categories`.`rgt` IS NULL OR `spud_post_categories`.`lft` >= `spud_post_categories`.`rgt` OR (`spud_post_categories`.`parent_id` IS NOT NULL AND (`spud_post_categories`.`lft` <= parent.`lft` OR `spud_post_categories`.`rgt` >= parent.`rgt`)))
1908
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.`lft`, COUNT(`spud_post_categories`.`lft`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`lft` HAVING COUNT(`spud_post_categories`.`lft`) > 1 LIMIT 1
1909
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`rgt`, COUNT(`spud_post_categories`.`rgt`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`rgt` HAVING COUNT(`spud_post_categories`.`rgt`) > 1 LIMIT 1
1910
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`parent_id` IS NULL ORDER BY `spud_post_categories`.`lft`
1911
- SpudPost Load (0.6ms) SELECT `spud_posts`.* FROM `spud_posts` INNER JOIN `spud_post_categories_posts` ON `spud_posts`.`id` = `spud_post_categories_posts`.`spud_post_id` WHERE `spud_post_categories_posts`.`spud_post_category_id` = 5
1912
- SQL (0.3ms) DELETE FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5
1913
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1914
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1915
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1916
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1
1917
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
1918
-  (1.1ms) ROLLBACK
1919
-  (0.2ms) ROLLBACK
1920
- Connecting to database specified by database.yml
1921
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1922
-  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1923
-  (0.1ms) SELECT DATABASE() as db
1924
-  (3.1ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
1925
-  (6.3ms) TRUNCATE TABLE `spud_admin_permissions`;
1926
-  (4.9ms) TRUNCATE TABLE `spud_post_categories`;
1927
-  (4.2ms) TRUNCATE TABLE `spud_post_categories_posts`;
1928
-  (4.9ms) TRUNCATE TABLE `spud_post_comments`;
1929
-  (6.3ms) TRUNCATE TABLE `spud_post_sites`;
1930
-  (6.2ms) TRUNCATE TABLE `spud_posts`;
1931
-  (3.2ms) TRUNCATE TABLE `spud_user_settings`;
1932
-  (7.1ms) TRUNCATE TABLE `spud_users`;
1933
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1934
-  (0.1ms) BEGIN
1935
-  (0.1ms) BEGIN
1936
-  (0.1ms) ROLLBACK
1937
-  (0.1ms) ROLLBACK
1938
-  (0.0ms) BEGIN
1939
-  (0.1ms) BEGIN
1940
- SpudPostCategory Exists (1.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` IS NULL LIMIT 1
1941
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` IS NULL LIMIT 1
1942
-  (0.1ms) ROLLBACK
1943
-  (0.0ms) ROLLBACK
1944
-  (0.0ms) BEGIN
1945
-  (0.0ms) BEGIN
1946
-  (0.0ms) SAVEPOINT active_record_2
1947
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1948
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1949
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1950
- SQL (1.0ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2013-01-02 15:29:40', NULL, 1, 'Test', 0, 2, '2013-01-02 15:29:40', 'test')
1951
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 1 LIMIT 1
1952
-  (0.7ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1953
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 1 ORDER BY `spud_post_categories`.`lft`
1954
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 1)
1955
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1956
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1957
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1958
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Test' LIMIT 1
1959
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'test' LIMIT 1
1960
-  (0.5ms) ROLLBACK
1961
-  (0.0ms) ROLLBACK
1962
-  (0.0ms) BEGIN
1963
-  (0.0ms) BEGIN
1964
- SpudPostCategory Exists (0.3ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 1' LIMIT 1
1965
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-1' LIMIT 1
1966
-  (0.1ms) ROLLBACK
1967
-  (0.0ms) ROLLBACK
1968
-  (0.0ms) BEGIN
1969
-  (0.0ms) BEGIN
1970
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 2' LIMIT 1
1971
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-2' LIMIT 1
1972
-  (0.1ms) ROLLBACK
1973
-  (0.1ms) ROLLBACK
1974
-  (0.1ms) BEGIN
1975
-  (0.1ms) BEGIN
1976
-  (0.1ms) SAVEPOINT active_record_2
1977
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 3' LIMIT 1
1978
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-3' LIMIT 1
1979
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1980
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2013-01-02 15:29:40', NULL, 1, 'Post Category 3', 0, 2, '2013-01-02 15:29:40', 'post-category-3')
1981
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
1982
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1983
- SQL (0.8ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft`
1984
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 2)
1985
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1986
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
1987
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1988
-  (0.1ms) SAVEPOINT active_record_2
1989
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 4' LIMIT 1
1990
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-4' LIMIT 1
1991
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
1992
- SQL (0.1ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2013-01-02 15:29:40', NULL, 3, 'Post Category 4', 2, 4, '2013-01-02 15:29:40', 'post-category-4')
1993
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 ORDER BY `spud_post_categories`.`lft` LIMIT 1
1994
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
1995
- SQL (0.7ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
1996
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1 FOR UPDATE
1997
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
1998
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
1999
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
2000
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
2001
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 3) ORDER BY `spud_post_categories`.`lft`
2002
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1 FOR UPDATE
2003
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 3 LIMIT 1
2004
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
2005
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 3 ORDER BY `spud_post_categories`.`lft`
2006
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 3)
2007
- SpudPost Load (0.1ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2008
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2009
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2010
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 2 LIMIT 1
2011
-  (0.2ms) SAVEPOINT active_record_2
2012
- SpudPost Exists (0.4ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-01-01-post-1' LIMIT 1
2013
- SQL (0.7ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2013-01-02 15:29:40', 0, NULL, NULL, '2013-01-01 15:29:40', 1, 'Post 1', '2013-01-02 15:29:40', '2013-01-01-post-1', 1)
2014
-  (0.2ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (1, 2)
2015
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2016
-  (0.1ms) SAVEPOINT active_record_2
2017
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-01-01-post-2' LIMIT 1
2018
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2013-01-02 15:29:40', 0, NULL, NULL, '2013-01-01 15:29:40', 1, 'Post 2', '2013-01-02 15:29:40', '2013-01-01-post-2', 1)
2019
-  (0.1ms) INSERT INTO `spud_post_categories_posts` (`spud_post_id`, `spud_post_category_id`) VALUES (2, 3)
2020
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2021
-  (0.1ms) SAVEPOINT active_record_2
2022
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-01-01-post-3' LIMIT 1
2023
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 0, 'Test Content', '2013-01-02 15:29:40', 0, NULL, NULL, '2013-01-01 15:29:40', 1, 'Post 3', '2013-01-02 15:29:40', '2013-01-01-post-3', 1)
2024
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2025
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 1 AND `spud_post_categories`.`lft` < 4) ORDER BY `spud_post_categories`.`lft`
2026
- SpudPostCategoriesPost Load (0.2ms) SELECT `spud_post_categories_posts`.* FROM `spud_post_categories_posts` WHERE `spud_post_categories_posts`.`spud_post_category_id` IN (2, 3)
2027
-  (0.2ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`id` IN (1, 2)
2028
-  (1.6ms) ROLLBACK
2029
-  (0.1ms) ROLLBACK
2030
-  (0.0ms) BEGIN
2031
-  (0.0ms) BEGIN
2032
-  (0.0ms) SAVEPOINT active_record_2
2033
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 5' LIMIT 1
2034
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-5' LIMIT 1
2035
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
2036
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2013-01-02 15:29:41', NULL, 1, 'Post Category 5', 0, 2, '2013-01-02 15:29:41', 'post-category-5')
2037
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
2038
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 4)
2039
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 0 WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft`
2040
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 1 AND `spud_post_categories`.`rgt` >= 2) AND (`spud_post_categories`.id != 4)
2041
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2042
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2043
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2044
-  (0.0ms) SAVEPOINT active_record_2
2045
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 6' LIMIT 1
2046
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-6' LIMIT 1
2047
- SpudPostCategory Load (0.3ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
2048
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2013-01-02 15:29:41', NULL, 3, 'Post Category 6', 4, 4, '2013-01-02 15:29:41', 'post-category-6')
2049
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 ORDER BY `spud_post_categories`.`lft` LIMIT 1
2050
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1 FOR UPDATE
2051
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 5 THEN 4 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
2052
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1 FOR UPDATE
2053
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1
2054
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
2055
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 5 ORDER BY `spud_post_categories`.`lft`
2056
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
2057
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 2 AND `spud_post_categories`.`lft` < 3) AND (`spud_post_categories`.id != 5) ORDER BY `spud_post_categories`.`lft`
2058
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1 FOR UPDATE
2059
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1
2060
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
2061
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 1 WHERE `spud_post_categories`.`id` = 5 ORDER BY `spud_post_categories`.`lft`
2062
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 2 AND `spud_post_categories`.`rgt` >= 3) AND (`spud_post_categories`.id != 5)
2063
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2064
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2065
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2066
-  (0.1ms) SAVEPOINT active_record_2
2067
- SpudPostCategory Exists (0.1ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`name` = BINARY 'Post Category 7' LIMIT 1
2068
- SpudPostCategory Exists (0.2ms) SELECT 1 AS one FROM `spud_post_categories` WHERE `spud_post_categories`.`url_name` = BINARY 'post-category-7' LIMIT 1
2069
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` ORDER BY `spud_post_categories`.`rgt` desc LIMIT 1 FOR UPDATE
2070
- SQL (0.2ms) INSERT INTO `spud_post_categories` (`created_at`, `depth`, `lft`, `name`, `parent_id`, `rgt`, `updated_at`, `url_name`) VALUES ('2013-01-02 15:29:41', NULL, 5, 'Post Category 7', 5, 6, '2013-01-02 15:29:41', 'post-category-7')
2071
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 ORDER BY `spud_post_categories`.`lft` LIMIT 1
2072
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1 FOR UPDATE
2073
- SQL (0.2ms) UPDATE `spud_post_categories` SET `lft` = CASE WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 6 - 4 WHEN `lft` BETWEEN 5 AND 6 THEN `lft` + 3 - 5 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 6 - 4 WHEN `rgt` BETWEEN 5 AND 6 THEN `rgt` + 3 - 5 ELSE `rgt` END, `parent_id` = CASE WHEN id = 6 THEN 5 ELSE `parent_id` END ORDER BY `spud_post_categories`.`lft`
2074
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1 FOR UPDATE
2075
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1
2076
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
2077
- SQL (0.2ms) UPDATE `spud_post_categories` SET `depth` = 2 WHERE `spud_post_categories`.`id` = 6 ORDER BY `spud_post_categories`.`lft`
2078
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
2079
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` >= 3 AND `spud_post_categories`.`lft` < 4) AND (`spud_post_categories`.id != 6) ORDER BY `spud_post_categories`.`lft`
2080
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.`lft`, `spud_post_categories`.`rgt`, `spud_post_categories`.`parent_id` FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1 FOR UPDATE
2081
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1
2082
-  (0.2ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
2083
- SQL (0.1ms) UPDATE `spud_post_categories` SET `depth` = 2 WHERE `spud_post_categories`.`id` = 6 ORDER BY `spud_post_categories`.`lft`
2084
-  (0.1ms) SELECT COUNT(*) FROM `spud_post_categories` WHERE (`spud_post_categories`.`lft` <= 3 AND `spud_post_categories`.`rgt` >= 4) AND (`spud_post_categories`.id != 6)
2085
- SpudPost Load (0.1ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2086
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2087
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2088
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5 LIMIT 1
2089
-  (0.1ms) SAVEPOINT active_record_2
2090
- SQL (0.3ms) UPDATE `spud_post_categories` SET `parent_id` = 4 WHERE `spud_post_categories`.`parent_id` = 5 ORDER BY lft
2091
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` LEFT OUTER JOIN `spud_post_categories` AS parent ON `spud_post_categories`.`parent_id` = parent.id WHERE (`spud_post_categories`.`lft` IS NULL OR `spud_post_categories`.`rgt` IS NULL OR `spud_post_categories`.`lft` >= `spud_post_categories`.`rgt` OR (`spud_post_categories`.`parent_id` IS NOT NULL AND (`spud_post_categories`.`lft` <= parent.`lft` OR `spud_post_categories`.`rgt` >= parent.`rgt`)))
2092
- SpudPostCategory Load (1.0ms) SELECT `spud_post_categories`.`lft`, COUNT(`spud_post_categories`.`lft`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`lft` HAVING COUNT(`spud_post_categories`.`lft`) > 1 LIMIT 1
2093
- SpudPostCategory Load (0.4ms) SELECT `spud_post_categories`.`rgt`, COUNT(`spud_post_categories`.`rgt`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`rgt` HAVING COUNT(`spud_post_categories`.`rgt`) > 1 LIMIT 1
2094
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`parent_id` IS NULL ORDER BY `spud_post_categories`.`lft`
2095
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` INNER JOIN `spud_post_categories_posts` ON `spud_posts`.`id` = `spud_post_categories_posts`.`spud_post_id` WHERE `spud_post_categories_posts`.`spud_post_category_id` = 5
2096
- SQL (0.3ms) DELETE FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 5
2097
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2098
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2099
-  (0.2ms) RELEASE SAVEPOINT active_record_2
2100
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 6 LIMIT 1
2101
- SpudPostCategory Load (0.1ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`id` = 4 LIMIT 1
2102
-  (0.8ms) ROLLBACK
2103
-  (0.0ms) ROLLBACK
2104
- Connecting to database specified by database.yml
2105
- Connecting to database specified by database.yml
2106
- Connecting to database specified by database.yml
2107
- Connecting to database specified by database.yml
2108
-  (0.2ms) BEGIN
2109
- SpudUser Exists (2.9ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2110
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2111
- SpudUser Exists (0.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'c44522bade72a9b15a746c316cbcc107e2fe6c35b81e64d6443e30a49f61254b5f3a5eb9739b443b8018afb080bbfb5a64562caf460741f45db63189b4957cb1' LIMIT 1
2112
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2113
- SQL (1.6ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 17:59:13', '09d65ec57b4cf4f6cf82716656d5aabd77ddcb8806ea8bd421d527b02e3766e4db6e97a804a329dadabfeb8d3fb5ef008ed3cab48cc735ad031e25c08bbe421a', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'vCnVxv6kvg9herY0lwQ6', 'zGC01PZRKAUTuAaTu5fr', 'c44522bade72a9b15a746c316cbcc107e2fe6c35b81e64d6443e30a49f61254b5f3a5eb9739b443b8018afb080bbfb5a64562caf460741f45db63189b4957cb1', 'k3cF1', NULL, NULL, '2013-08-29 17:59:13')
2114
-  (45.6ms) COMMIT
2115
- Connecting to database specified by database.yml
2116
- Connecting to database specified by database.yml
2117
-  (0.1ms) BEGIN
2118
- SpudUser Exists (2.5ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2119
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2120
- SpudUser Exists (0.6ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2a0647fcb97bd5344de8152175bfa65cf252773a755860ab237827232504aed6723e10203279d5e9730bcacdf2558db7f1246dabdc5ba25f6ae8a3da6b30656e' LIMIT 1
2121
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2122
-  (0.1ms) ROLLBACK
2123
- Connecting to database specified by database.yml
2124
-  (0.2ms) BEGIN
2125
- SpudUser Exists (2.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2126
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2127
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '88f1bd9d29195b5f16550557037f1e8a88c5d03bebc1e6d6848a65456a37e40378565f5734a4ef7cba6a4b7f0aa4614599835bc1db92a8e10d51ddd345863196' LIMIT 1
2128
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2129
-  (0.1ms) ROLLBACK
2130
- Connecting to database specified by database.yml
2131
- Connecting to database specified by database.yml
2132
- Mysql2::Error: Table 'spud_blog_test.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
2133
- Mysql2::Error: Table 'spud_blog_test.spud_posts' doesn't exist: SHOW FULL FIELDS FROM `spud_posts`
2134
- Connecting to database specified by database.yml
2135
- Mysql2::Error: Table 'spud_blog_test.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
2136
- Mysql2::Error: Table 'spud_blog_test.spud_posts' doesn't exist: SHOW FULL FIELDS FROM `spud_posts`
2137
- Connecting to database specified by database.yml
2138
- Mysql2::Error: Table 'spud_blog_test.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
2139
-  (18.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
2140
-  (25.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
2141
-  (3.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2142
- Migrating to CreateSpudPosts (20120125180945)
2143
-  (16.1ms) CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2144
-  (19.3ms) CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
2145
-  (15.8ms) CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
2146
-  (3.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125180945')
2147
- Migrating to CreateSpudPostCategories (20120125181022)
2148
-  (20.1ms) CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2149
-  (16.3ms) CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
2150
-  (20.0ms) CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
2151
-  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125181022')
2152
- Migrating to CreateSpudPostComments (20120125181359)
2153
-  (14.7ms) CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2154
-  (21.5ms) CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
2155
-  (16.5ms) CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
2156
-  (1.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125181359')
2157
- Migrating to AddUrlToSpudPosts (20120127143054)
2158
-  (23.4ms) ALTER TABLE `spud_posts` ADD `url_name` varchar(255)
2159
-  (19.2ms) CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
2160
-  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120127143054')
2161
- Migrating to AddUrlToSpudPostCategories (20120127144942)
2162
-  (14.3ms) ALTER TABLE `spud_post_categories` ADD `parent_id` int(11) DEFAULT 0
2163
-  (28.8ms) ALTER TABLE `spud_post_categories` ADD `url_name` varchar(255)
2164
-  (97.7ms) CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
2165
-  (16.8ms) CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
2166
-  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120127144942')
2167
- Migrating to AddIsNewsToSpudPosts (20120210165540)
2168
-  (18.6ms) ALTER TABLE `spud_posts` ADD `is_news` tinyint(1) DEFAULT 0
2169
-  (16.1ms) CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
2170
-  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120210165540')
2171
- Migrating to AddMetaToPosts (20120309181917)
2172
-  (20.2ms) ALTER TABLE `spud_posts` ADD `meta_keywords` varchar(255)
2173
-  (17.0ms) ALTER TABLE `spud_posts` ADD `meta_description` text
2174
-  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120309181917')
2175
- Migrating to AddCommentsCounterToSpudPosts (20120413020437)
2176
-  (66.7ms) ALTER TABLE `spud_posts` ADD `comments_count` int(11) DEFAULT 0
2177
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
2178
-  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120413020437')
2179
- Migrating to CreateSpudAdminPermissions (20120610130206)
2180
-  (14.8ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2181
-  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130206')
2182
- Migrating to CreateSpudUsers (20120610130207)
2183
-  (15.0ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2184
-  (17.6ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
2185
-  (14.3ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
2186
-  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130207')
2187
- Migrating to AddTimeZoneToSpudUser (20120610130208)
2188
-  (13.3ms) ALTER TABLE `spud_users` ADD `time_zone` varchar(255)
2189
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130208')
2190
- Migrating to AddScopeToSpudAdminPermissions (20120610130209)
2191
-  (16.8ms) ALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)
2192
-  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130209')
2193
- Migrating to CreateSpudUserSettings (20120610130210)
2194
-  (16.3ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2195
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130210')
2196
- Migrating to CreateSpudPostSites (20120713150446)
2197
-  (9.6ms) CREATE TABLE `spud_post_sites` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11) NOT NULL, `spud_site_id` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2198
-  (15.9ms) CREATE INDEX `index_spud_post_sites_on_spud_post_id` ON `spud_post_sites` (`spud_post_id`)
2199
-  (13.2ms) CREATE INDEX `index_spud_post_sites_on_spud_site_id` ON `spud_post_sites` (`spud_site_id`)
2200
-  (1.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120713150446')
2201
- Migrating to AddSpamFieldsToSpudPostComments (20120825142547)
2202
-  (15.3ms) ALTER TABLE `spud_post_comments` ADD `spam` tinyint(1)
2203
-  (16.1ms) ALTER TABLE `spud_post_comments` ADD `user_ip` varchar(255)
2204
-  (13.7ms) ALTER TABLE `spud_post_comments` ADD `user_agent` varchar(255)
2205
-  (12.6ms) ALTER TABLE `spud_post_comments` ADD `referrer` varchar(255)
2206
-  (3.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120825142547')
2207
- Migrating to AddPermalinkToSpudPostComments (20120825144506)
2208
-  (15.1ms) ALTER TABLE `spud_post_comments` ADD `permalink` varchar(255)
2209
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120825144506')
2210
- Migrating to AddNestedSetToPostCategories (20121113135812)
2211
-  (15.4ms) ALTER TABLE `spud_post_categories` ADD `lft` int(11)
2212
-  (15.2ms) ALTER TABLE `spud_post_categories` ADD `rgt` int(11)
2213
-  (17.6ms) ALTER TABLE `spud_post_categories` ADD `depth` int(11)
2214
- SQL (0.2ms) UPDATE `spud_post_categories` SET `parent_id` = NULL WHERE `spud_post_categories`.`parent_id` = 0
2215
-  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` LEFT OUTER JOIN `spud_post_categories` AS parent ON `spud_post_categories`.`parent_id` = parent.id WHERE (`spud_post_categories`.`lft` IS NULL OR `spud_post_categories`.`rgt` IS NULL OR `spud_post_categories`.`lft` >= `spud_post_categories`.`rgt` OR (`spud_post_categories`.`parent_id` IS NOT NULL AND (`spud_post_categories`.`lft` <= parent.`lft` OR `spud_post_categories`.`rgt` >= parent.`rgt`)))
2216
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`lft`, COUNT(`spud_post_categories`.`lft`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`lft` HAVING COUNT(`spud_post_categories`.`lft`) > 1 LIMIT 1
2217
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`rgt`, COUNT(`spud_post_categories`.`rgt`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`rgt` HAVING COUNT(`spud_post_categories`.`rgt`) > 1 LIMIT 1
2218
- SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`parent_id` IS NULL ORDER BY `spud_post_categories`.`lft`
2219
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121113135812')
2220
- Migrating to AddContentFormatToSpudPosts (20130120151857)
2221
-  (16.3ms) ALTER TABLE `spud_posts` ADD `content_format` varchar(255) DEFAULT 'HTML'
2222
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130120151857')
2223
- Migrating to AddContentProcessedToSpudPost (20130121130612)
2224
-  (23.8ms) ALTER TABLE `spud_posts` ADD `content_processed` text
2225
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130121130612')
2226
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2227
- Connecting to database specified by database.yml
2228
-  (0.1ms) BEGIN
2229
- SpudPost Exists (2.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2230
-  (0.1ms) ROLLBACK
2231
- Connecting to database specified by database.yml
2232
-  (0.2ms) BEGIN
2233
- SpudUser Exists (1.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2234
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2235
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '0d95ab2c3a7c59c42ac15bc06afd489694541424f7485bcb83b05001a64de28add37060add35fb1444da626df499223cfa0c503ca3c1bd45ea5b221ac955fe78' LIMIT 1
2236
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2237
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:10:25', '791177c27d72bb2c49be4375ddc0c6aff4a5e12a049cb02eeae0ec6ed8170721e9bb85282367a61a29675059c33ee76b63c5cab551ec6ce55cd7435ab9ac6167', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'IXFgL5ybNYuCBscAZxC2', 'TpkleszaIvn5rPSguIzv', '0d95ab2c3a7c59c42ac15bc06afd489694541424f7485bcb83b05001a64de28add37060add35fb1444da626df499223cfa0c503ca3c1bd45ea5b221ac955fe78', 'k3cF1', NULL, NULL, '2013-08-29 18:10:25')
2238
-  (0.3ms) COMMIT
2239
-  (0.2ms) BEGIN
2240
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2241
- SQL (0.6ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:10:25', 0, NULL, NULL, '2013-08-29 18:10:25', 1, 'Test Blog Post 1', '2013-08-29 18:10:25', '2013-08-29-test-blog-post-1', 1)
2242
-  (0.4ms) COMMIT
2243
- Connecting to database specified by database.yml
2244
-  (0.2ms) BEGIN
2245
- SpudUser Exists (2.6ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2246
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2247
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '676724d31b26c858c1402234888578291cfb1e26514156a724053e412699e20ef4f1ee06cbca41e4caad61297e1f1022245597691757accc8125cc6720fbadc1' LIMIT 1
2248
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2249
-  (0.1ms) ROLLBACK
2250
- Connecting to database specified by database.yml
2251
-  (0.1ms) BEGIN
2252
- SpudUser Exists (2.6ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2253
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2254
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5c04c242e6016bdf93dacef9d222242e80f9fde810714886614bd078973a30532a00fa21557820346b3eaf382856df99e4f60fcc1d9b4e4a972578b0d50c69ea' LIMIT 1
2255
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2256
-  (0.1ms) ROLLBACK
2257
- Connecting to database specified by database.yml
2258
-  (0.1ms) BEGIN
2259
- SpudUser Exists (1.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2260
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2261
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fbddceca12ef2927d5034385756844b92cdbf5e998a421f8a0f2af336ee84fa31d23d15ebe6418a96eb8607796267ec8328f83fe2ff54d329996177690b33133' LIMIT 1
2262
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2263
- SQL (0.8ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:15:55', '1b37cf97a59edaefea4400b8adc90bba80790ae99b7cf8099de07df427a41b33d561a87804c5854cb5852f9827f1b3a42a3dff4eac0f0dc9b5f5bc6a0c66c4ea', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, '25HxcgcGayll4De7ErW', 'Ra2uTw3J8eVj04YnAebG', 'fbddceca12ef2927d5034385756844b92cdbf5e998a421f8a0f2af336ee84fa31d23d15ebe6418a96eb8607796267ec8328f83fe2ff54d329996177690b33133', 'k3cF1', NULL, NULL, '2013-08-29 18:15:55')
2264
-  (0.2ms) COMMIT
2265
-  (0.1ms) BEGIN
2266
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2267
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:15:55', 0, NULL, NULL, '2013-08-29 18:15:55', 1, 'Test Blog Post 1', '2013-08-29 18:15:55', '2013-08-29-test-blog-post-1', 1)
2268
-  (0.3ms) COMMIT
2269
- Connecting to database specified by database.yml
2270
- Connecting to database specified by database.yml
2271
-  (0.1ms) BEGIN
2272
- SpudUser Exists (2.6ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2273
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2274
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e5e6e08df057e7aeb016d826eb2b5816e9744a354203eb4b12acb894dbb3ef64a06c69d625e1a201e0ee7b0e74aad2b8bd5161ef2a8785309b44964ee1df4610' LIMIT 1
2275
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2276
- SQL (1.0ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:17:31', 'a612b6d2150f49286677152071f56a04c7e351232def638fd316e8a46594189958ee51a6bde074a17b1e063102e308260169a5a31dd625889dab62e73e8ab097', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'cGF12c1Ojig36uDQlPOv', 'uKpaFhXFlDMznFHMcvT', 'e5e6e08df057e7aeb016d826eb2b5816e9744a354203eb4b12acb894dbb3ef64a06c69d625e1a201e0ee7b0e74aad2b8bd5161ef2a8785309b44964ee1df4610', 'k3cF1', NULL, NULL, '2013-08-29 18:17:31')
2277
-  (0.2ms) COMMIT
2278
-  (0.1ms) BEGIN
2279
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2280
- SQL (0.7ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:17:31', 0, NULL, NULL, '2013-08-29 18:17:31', 1, 'Test Blog Post 1', '2013-08-29 18:17:31', '2013-08-29-test-blog-post-1', 1)
2281
-  (0.3ms) COMMIT
2282
- Connecting to database specified by database.yml
2283
-  (0.2ms) BEGIN
2284
- SpudUser Exists (1.7ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2285
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2286
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b473384ce33f8e20ebe9c46f75a336b6c4ae5ae388d76be4ef9f91e46100cab5e055f590c5f89677ce106db7be1c0b82ecb057a4a9c10a0e763966a294c19d14' LIMIT 1
2287
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2288
-  (0.1ms) ROLLBACK
2289
- Connecting to database specified by database.yml
2290
-  (0.2ms) BEGIN
2291
- SpudUser Exists (2.6ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2292
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2293
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2ad2c70ba8ecc0d84d9cad5396919cda1ffaebc8bd49573cfc629567e31423e8955e814393d8d4725a6d2606fad56642f7520b2ad238e169a0b3c16bb931575a' LIMIT 1
2294
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2295
- SQL (1.1ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:18:50', '51e755d24cf3785968e68b651f2d765dd75f72699bd858c8ecf9fb6e617750b9f36c47a321ac2afc7d3ff5684c4a2dbae44020045d9fbf3d750aae1b89c74c26', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'P63ohZCzghXgXUNpmZZo', 'nS8kgoDn3pR1yPZSTW', '2ad2c70ba8ecc0d84d9cad5396919cda1ffaebc8bd49573cfc629567e31423e8955e814393d8d4725a6d2606fad56642f7520b2ad238e169a0b3c16bb931575a', 'k3cF1', NULL, NULL, '2013-08-29 18:18:50')
2296
-  (0.8ms) COMMIT
2297
-  (0.2ms) BEGIN
2298
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2299
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:18:50', 0, NULL, NULL, '2013-08-29 18:18:50', 1, 'Test Blog Post 1', '2013-08-29 18:18:50', '2013-08-29-test-blog-post-1', 1)
2300
-  (0.3ms) COMMIT
2301
- Connecting to database specified by database.yml
2302
-  (0.1ms) BEGIN
2303
- SpudUser Exists (2.7ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2304
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2305
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7109a7af0a751757df6317048ebdd76f49c75809824bad337a9152a33bb137a8439fcd0bea89c3cb3c7de925c542b5c7057c2ac09c511e59eed2c8a7ed70be92' LIMIT 1
2306
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2307
-  (0.1ms) ROLLBACK
2308
- Connecting to database specified by database.yml
2309
-  (0.2ms) BEGIN
2310
- SpudUser Exists (1.7ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2311
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2312
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'cd466ba3792008c5abec2861f8bb435e93c1064ac48a42579894e5f91b98e7a24e0f75930ba2fe1f0ab61a491f522608737e82b22d094319534d8d0e7aae7d7f' LIMIT 1
2313
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2314
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:23:06', '8218c74af79ac2580d0d20636282ad250ca1ff81a6b5e46be8050abb9758a5a86393fa1a8ad7c3536009fc1d3e3e3c497de84aa657f2c43cba178affe9c08f9b', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'u3nbcdt41yOcsiTuyz', 'bxEM4UM2JyB2PiUM0pX', 'cd466ba3792008c5abec2861f8bb435e93c1064ac48a42579894e5f91b98e7a24e0f75930ba2fe1f0ab61a491f522608737e82b22d094319534d8d0e7aae7d7f', 'k3cF1', NULL, NULL, '2013-08-29 18:23:06')
2315
-  (0.3ms) COMMIT
2316
-  (0.1ms) BEGIN
2317
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2318
- SQL (0.7ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:23:06', 0, NULL, NULL, '2013-08-29 18:23:06', 1, 'Test Blog Post 1', '2013-08-29 18:23:06', '2013-08-29-test-blog-post-1', 1)
2319
-  (0.4ms) COMMIT
2320
- Connecting to database specified by database.yml
2321
- Connecting to database specified by database.yml
2322
-  (0.1ms) BEGIN
2323
- Processing by BlogController#index as HTML
2324
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.5ms)
2325
- Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.0ms)
2326
-  (0.2ms) ROLLBACK
2327
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2328
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2329
-  (1.2ms) SELECT DATABASE() as db
2330
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2331
-  (1.9ms) TRUNCATE TABLE `spud_admin_permissions`;
2332
-  (2.4ms) TRUNCATE TABLE `spud_post_categories`;
2333
-  (1.3ms) TRUNCATE TABLE `spud_post_categories_posts`;
2334
-  (2.2ms) TRUNCATE TABLE `spud_post_comments`;
2335
-  (1.4ms) TRUNCATE TABLE `spud_post_sites`;
2336
-  (4.7ms) TRUNCATE TABLE `spud_posts`;
2337
-  (1.5ms) TRUNCATE TABLE `spud_user_settings`;
2338
-  (3.0ms) TRUNCATE TABLE `spud_users`;
2339
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2340
- Connecting to database specified by database.yml
2341
-  (0.2ms) BEGIN
2342
- SpudUser Exists (2.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2343
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2344
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'd04ae4de03dbd381f500956d8181efb08c1b2ab4267abbfa3e6be262a9b54033569b439c6bb16bfc19a62563fe24487a6f09da9d1dda3582818e922c7b32a2ef' LIMIT 1
2345
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2346
- SQL (1.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:25:12', '12312aec03c7c7c2562f0ed93f01672d074e763a78f58a8958c3764bb327443173b0ec1536c3635d69ba7a9a17239344d2b20651e479ad684cefc6d0840707c7', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'WcbjN699xUGiOKn0qiX', 'uCckMHPER7Iys8k4QBp', 'd04ae4de03dbd381f500956d8181efb08c1b2ab4267abbfa3e6be262a9b54033569b439c6bb16bfc19a62563fe24487a6f09da9d1dda3582818e922c7b32a2ef', 'k3cF1', NULL, NULL, '2013-08-29 18:25:12')
2347
-  (0.5ms) COMMIT
2348
-  (0.1ms) BEGIN
2349
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2350
- SQL (0.7ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:25:12', 0, NULL, NULL, '2013-08-29 18:25:12', 1, 'Test Blog Post 1', '2013-08-29 18:25:12', '2013-08-29-test-blog-post-1', 1)
2351
-  (0.6ms) COMMIT
2352
- Connecting to database specified by database.yml
2353
-  (0.2ms) BEGIN
2354
- Processing by BlogController#index as HTML
2355
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.2ms)
2356
- Completed 200 OK in 37ms (Views: 33.6ms | ActiveRecord: 0.0ms)
2357
-  (0.2ms) ROLLBACK
2358
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2359
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2360
-  (0.1ms) SELECT DATABASE() as db
2361
-  (1.4ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2362
-  (1.9ms) TRUNCATE TABLE `spud_admin_permissions`;
2363
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2364
-  (3.1ms) TRUNCATE TABLE `spud_post_categories_posts`;
2365
-  (3.7ms) TRUNCATE TABLE `spud_post_comments`;
2366
-  (2.2ms) TRUNCATE TABLE `spud_post_sites`;
2367
-  (2.0ms) TRUNCATE TABLE `spud_posts`;
2368
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
2369
-  (1.7ms) TRUNCATE TABLE `spud_users`;
2370
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2371
-  (0.1ms) BEGIN
2372
-  (0.1ms) SAVEPOINT active_record_1
2373
- SpudUser Exists (1.6ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2374
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2375
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '493e6179b7651bb689522a0fe06bfc9e25b552c683d0eca5dca8a516febaf31ac35d0da34692c9f3587931aeb74626dac9d87a288874ff8392c0871ddfb57e30' LIMIT 1
2376
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2377
- SQL (1.0ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:25:46', '5369828d2c56b2722d519e4e2cc66a8524f6cbfde3f1a7f6feee7ee97daac7e9276362178a2d1fe659dcb3ecf76b7fb2d0d4be287adaaaf76fa3a1a4e68880e1', '2013-08-29 18:25:46', '0.0.0.0', 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', '2013-08-29 18:25:46', 'john1doe1', 1, 'nBl21eZ1ABKbSgKQ727G', '3avELdg0OOXubZpbHlgw', '493e6179b7651bb689522a0fe06bfc9e25b552c683d0eca5dca8a516febaf31ac35d0da34692c9f3587931aeb74626dac9d87a288874ff8392c0871ddfb57e30', 'k3cF1', NULL, NULL, '2013-08-29 18:25:46')
2378
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2379
-  (0.1ms) SAVEPOINT active_record_1
2380
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2381
- SQL (0.9ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:25:46', 0, NULL, NULL, '2013-08-29 18:25:46', 1, 'Test Blog Post 1', '2013-08-29 18:25:46', '2013-08-29-test-blog-post-1', 1)
2382
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2383
- Processing by BlogController#create_comment as HTML
2384
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-1"}
2385
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-1' LIMIT 1
2386
-  (0.2ms) SAVEPOINT active_record_1
2387
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2388
- Completed 200 OK in 36ms (Views: 1.7ms | ActiveRecord: 2.0ms)
2389
-  (0.6ms) ROLLBACK
2390
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2391
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2392
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
2393
-  (0.7ms) TRUNCATE TABLE `spud_post_categories`;
2394
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
2395
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
2396
-  (1.3ms) TRUNCATE TABLE `spud_post_sites`;
2397
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
2398
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
2399
-  (0.9ms) TRUNCATE TABLE `spud_users`;
2400
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2401
- Connecting to database specified by database.yml
2402
-  (0.1ms) BEGIN
2403
-  (0.1ms) ROLLBACK
2404
-  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2405
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2406
-  (0.1ms) SELECT DATABASE() as db
2407
-  (0.7ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2408
-  (2.8ms) TRUNCATE TABLE `spud_admin_permissions`;
2409
-  (1.6ms) TRUNCATE TABLE `spud_post_categories`;
2410
-  (1.3ms) TRUNCATE TABLE `spud_post_categories_posts`;
2411
-  (1.7ms) TRUNCATE TABLE `spud_post_comments`;
2412
-  (2.4ms) TRUNCATE TABLE `spud_post_sites`;
2413
-  (1.9ms) TRUNCATE TABLE `spud_posts`;
2414
-  (3.0ms) TRUNCATE TABLE `spud_user_settings`;
2415
-  (1.9ms) TRUNCATE TABLE `spud_users`;
2416
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2417
-  (0.1ms) BEGIN
2418
-  (0.1ms) SAVEPOINT active_record_1
2419
- SpudUser Exists (2.5ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2420
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2421
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8df82e8be45f307239496646b9cbbdf864d77eb3d40f56361aff54949bfe0cfed84c73de92bee902b8bc46d3ad1558d566e5a11b5c74cc2638f5448577216159' LIMIT 1
2422
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2423
- SQL (1.0ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:27:54', '7ed4264bfd240bb1c2efe3fbfde7e636ebc6a7f9848438cbae3a9c80bff0cd0c7ba52c06ea1ad94319997895768af32656f01ff9331f28756fa19087aa5af4ab', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'YvR7GVPXBBb5nXojdRI', '4mOdIzDxCCK8q4N4Mw3q', '8df82e8be45f307239496646b9cbbdf864d77eb3d40f56361aff54949bfe0cfed84c73de92bee902b8bc46d3ad1558d566e5a11b5c74cc2638f5448577216159', 'k3cF1', NULL, NULL, '2013-08-29 18:27:54')
2424
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2425
-  (0.1ms) SAVEPOINT active_record_1
2426
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2427
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:27:54', 0, NULL, NULL, '2013-08-29 18:27:54', 1, 'Test Blog Post 1', '2013-08-29 18:27:54', '2013-08-29-test-blog-post-1', 1)
2428
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2429
- Processing by BlogController#create_comment as HTML
2430
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-1"}
2431
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-1' LIMIT 1
2432
-  (0.2ms) SAVEPOINT active_record_1
2433
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2434
- Completed 200 OK in 70ms (Views: 11.8ms | ActiveRecord: 2.3ms)
2435
-  (0.4ms) ROLLBACK
2436
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2437
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2438
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
2439
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2440
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
2441
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
2442
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
2443
-  (0.7ms) TRUNCATE TABLE `spud_posts`;
2444
-  (0.9ms) TRUNCATE TABLE `spud_user_settings`;
2445
-  (0.9ms) TRUNCATE TABLE `spud_users`;
2446
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
2447
- Connecting to database specified by database.yml
2448
-  (0.1ms) BEGIN
2449
-  (0.1ms) SAVEPOINT active_record_1
2450
- SpudUser Exists (1.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2451
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2452
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8b8aeea94e26e8588e2a0cba3746221f91b47758a2e1d993ac9707c8c1b8998c2231183fecb21418f934125836370b8e00c2ec4f9c17fd63e7fca29f461c20eb' LIMIT 1
2453
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2454
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:28:30', 'a92de94b37d3eeba33574e7b8086315d94fe799e4a776c2b694b013188334870fa6f37b00429e8c132166b337471fd2d814d543ca1970e6c35bb781cdab07381', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'G6IHhJhQ0GuEMu4NBpdU', 'UwILAbECXKjPzPFyHXP', '8b8aeea94e26e8588e2a0cba3746221f91b47758a2e1d993ac9707c8c1b8998c2231183fecb21418f934125836370b8e00c2ec4f9c17fd63e7fca29f461c20eb', 'k3cF1', NULL, NULL, '2013-08-29 18:28:30')
2455
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2456
-  (0.1ms) SAVEPOINT active_record_1
2457
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2458
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:28:30', 0, NULL, NULL, '2013-08-29 18:28:30', 1, 'Test Blog Post 1', '2013-08-29 18:28:30', '2013-08-29-test-blog-post-1', 1)
2459
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2460
-  (0.1ms) SAVEPOINT active_record_1
2461
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2462
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2463
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3e0d40a8d3af51589dda52e165aa6c21f5c282f4906b3d94f620a5c86b94a9b6b596e173cc7a93080366f74ad1119b5649046c2e9659424aecce84d39777e3d0' LIMIT 1
2464
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
2465
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:28:30', 'c30a6663abdd980649428a24bbc232813bf4cea6eee1477c520360e5efeccc6aaf37c5b89a790de293a1dfa57a8b4ec89c29b8f0e4c1f59b2a9c15e107504444', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'NHyYMJe97KApDEOPgCDa', '8iakqg6xrGOYSk6VX9l', '3e0d40a8d3af51589dda52e165aa6c21f5c282f4906b3d94f620a5c86b94a9b6b596e173cc7a93080366f74ad1119b5649046c2e9659424aecce84d39777e3d0', 'k3cF2', NULL, NULL, '2013-08-29 18:28:30')
2466
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2467
-  (0.1ms) SAVEPOINT active_record_1
2468
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
2469
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:28:30', 0, NULL, NULL, '2013-08-29 18:28:30', 2, 'Test Blog Post 2', '2013-08-29 18:28:30', '2013-08-29-test-blog-post-2', 1)
2470
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2471
- Processing by BlogController#index as HTML
2472
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.1ms)
2473
- Completed 200 OK in 37ms (Views: 34.6ms | ActiveRecord: 0.0ms)
2474
-  (0.4ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:28:30')
2475
-  (0.6ms) ROLLBACK
2476
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2477
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2478
-  (0.1ms) SELECT DATABASE() as db
2479
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2480
-  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;
2481
-  (1.1ms) TRUNCATE TABLE `spud_post_categories`;
2482
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
2483
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
2484
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
2485
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
2486
-  (1.2ms) TRUNCATE TABLE `spud_user_settings`;
2487
-  (1.0ms) TRUNCATE TABLE `spud_users`;
2488
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2489
-  (0.0ms) BEGIN
2490
-  (0.1ms) SAVEPOINT active_record_1
2491
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
2492
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
2493
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2b635829a1e144f1e61a9f546c0911b383713d11ff4dd9d20f300ad5eef5c975040f5b99fb5a00f5614657483f4283000bfcdb6079bf930e02577d7b9cb410bc' LIMIT 1
2494
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
2495
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:28:30', 'c984c04757582a8b796abb01c4314b263e38a4c17073911b72ca1e5aa87324a495f7273b02c890897cc518c52b6b4fc5e103f546f686f81c00bd5aaa4c586373', '2013-08-29 18:28:30', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:28:30', 'john3doe3', 1, 'aLJxNA4rGmOyapMnEW9', 'IsuTLB2JYEMe41r1Zca', '2b635829a1e144f1e61a9f546c0911b383713d11ff4dd9d20f300ad5eef5c975040f5b99fb5a00f5614657483f4283000bfcdb6079bf930e02577d7b9cb410bc', 'k3cF3', NULL, NULL, '2013-08-29 18:28:30')
2496
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2497
-  (0.1ms) SAVEPOINT active_record_1
2498
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
2499
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:28:30', 0, NULL, NULL, '2013-08-29 18:28:30', 1, 'Test Blog Post 3', '2013-08-29 18:28:30', '2013-08-29-test-blog-post-3', 1)
2500
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2501
- Processing by BlogController#create_comment as HTML
2502
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-3"}
2503
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
2504
-  (0.2ms) SAVEPOINT active_record_1
2505
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2506
- Completed 200 OK in 36ms (Views: 1.4ms | ActiveRecord: 5.0ms)
2507
-  (0.3ms) ROLLBACK
2508
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2509
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2510
-  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;
2511
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
2512
-  (1.0ms) TRUNCATE TABLE `spud_post_categories_posts`;
2513
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
2514
-  (1.7ms) TRUNCATE TABLE `spud_post_sites`;
2515
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
2516
-  (1.3ms) TRUNCATE TABLE `spud_user_settings`;
2517
-  (1.4ms) TRUNCATE TABLE `spud_users`;
2518
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2519
- Connecting to database specified by database.yml
2520
-  (0.2ms) BEGIN
2521
-  (0.1ms) SAVEPOINT active_record_1
2522
- SpudUser Exists (1.7ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2523
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2524
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a589c108d2b8b0af8188568682cea94a87438ba41cd8b04f97305b32fb732976ce714dd10627d45aeb8d2e45d7857ca949bb807f5f33e91ef947078d64df5934' LIMIT 1
2525
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2526
- SQL (0.7ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:28:40', '1b9fed31442ba68e42705cceb54012ee37f49d8b5f7dd7cb12d9928ce998da282aac58c5bc91f95bad9b2e6e5ba788ae9f9edf021949b1698ed4df4ffe89206c', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'XOuekdRcEjnGExb4EmdS', 'TK3G46PJCEFPp87Ovg', 'a589c108d2b8b0af8188568682cea94a87438ba41cd8b04f97305b32fb732976ce714dd10627d45aeb8d2e45d7857ca949bb807f5f33e91ef947078d64df5934', 'k3cF1', NULL, NULL, '2013-08-29 18:28:40')
2527
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2528
-  (0.1ms) SAVEPOINT active_record_1
2529
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2530
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:28:40', 0, NULL, NULL, '2013-08-29 18:28:40', 1, 'Test Blog Post 1', '2013-08-29 18:28:40', '2013-08-29-test-blog-post-1', 1)
2531
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2532
-  (0.1ms) SAVEPOINT active_record_1
2533
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2534
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2535
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '963e04ccc01bfb59920e1b08850e92d74d58c96c5d9f6db693a569d6b9e76cffe0daaf0c7514af093b5f708aa520d0da5202759d2e8757e72faa5e9235816e2a' LIMIT 1
2536
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
2537
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:28:40', '793b4de1f8b48779ea98ee37b620ecf0db9822771cbdc5854eeff8305cbcbe83002c68f529252f3848537f9bb4e7fbf31eb0992a02797383062baae7518d75f3', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'YeOyw77h5fvmKAnVKmtF', '8rUscbKCSnmwon1yXVyS', '963e04ccc01bfb59920e1b08850e92d74d58c96c5d9f6db693a569d6b9e76cffe0daaf0c7514af093b5f708aa520d0da5202759d2e8757e72faa5e9235816e2a', 'k3cF2', NULL, NULL, '2013-08-29 18:28:40')
2538
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2539
-  (0.1ms) SAVEPOINT active_record_1
2540
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
2541
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:28:40', 0, NULL, NULL, '2013-08-29 18:28:40', 2, 'Test Blog Post 2', '2013-08-29 18:28:40', '2013-08-29-test-blog-post-2', 1)
2542
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2543
- Processing by BlogController#index as HTML
2544
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.1ms)
2545
- Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.0ms)
2546
-  (0.4ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:28:40')
2547
-  (0.8ms) ROLLBACK
2548
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2549
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2550
-  (0.1ms) SELECT DATABASE() as db
2551
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2552
-  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;
2553
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2554
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
2555
-  (3.1ms) TRUNCATE TABLE `spud_post_comments`;
2556
-  (1.6ms) TRUNCATE TABLE `spud_post_sites`;
2557
-  (1.2ms) TRUNCATE TABLE `spud_posts`;
2558
-  (1.0ms) TRUNCATE TABLE `spud_user_settings`;
2559
-  (1.5ms) TRUNCATE TABLE `spud_users`;
2560
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2561
-  (0.0ms) BEGIN
2562
-  (0.1ms) SAVEPOINT active_record_1
2563
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
2564
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
2565
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9dddfe891545acfdc06745573611717d5bbc30832281d23b766934adacb41bf3e7f5e71829380b78d36f251417d663df83b384d6615ce95bc2c59987696bab96' LIMIT 1
2566
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
2567
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:28:40', 'a83f1292d16bb8c36c4e686f6742af24b61fe19c9d80202c0aacc0c86c5c2711f617d4898ff1c983f7cf9556750ccabee2f0cdd070c147e84651f93f46c5a540', '2013-08-29 18:28:40', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:28:40', 'john3doe3', 1, 'DtdHzX9wFN35yI0QYRkd', '9AUSh6XtB9xj0DmrDt9V', '9dddfe891545acfdc06745573611717d5bbc30832281d23b766934adacb41bf3e7f5e71829380b78d36f251417d663df83b384d6615ce95bc2c59987696bab96', 'k3cF3', NULL, NULL, '2013-08-29 18:28:40')
2568
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2569
-  (0.1ms) SAVEPOINT active_record_1
2570
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
2571
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:28:40', 0, NULL, NULL, '2013-08-29 18:28:40', 1, 'Test Blog Post 3', '2013-08-29 18:28:40', '2013-08-29-test-blog-post-3', 1)
2572
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2573
- Processing by BlogController#create_comment as HTML
2574
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-3"}
2575
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
2576
-  (0.1ms) SAVEPOINT active_record_1
2577
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2578
- Completed 200 OK in 34ms (Views: 1.4ms | ActiveRecord: 2.0ms)
2579
-  (0.6ms) ROLLBACK
2580
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2581
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2582
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
2583
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2584
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
2585
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
2586
-  (1.1ms) TRUNCATE TABLE `spud_post_sites`;
2587
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
2588
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
2589
-  (1.0ms) TRUNCATE TABLE `spud_users`;
2590
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2591
- Connecting to database specified by database.yml
2592
-  (0.2ms) BEGIN
2593
-  (0.1ms) SAVEPOINT active_record_1
2594
- SpudUser Exists (2.5ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2595
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2596
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e2cf9e335483719bb295556fd74da3525ab20c7bf296ee907d029e6cef5115c70c04604d30f31d6f60a09e6cfceee1279f248d47a665318075d1973aed83c0de' LIMIT 1
2597
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2598
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:29:55', '1d97502697b53f502fb03599be6838ee6297b898c9b69628ad4c743518b53077e32922d12d99825b1ec3ecf1b6d78ccc85cf67b26e888e4232a15eb14f6e446f', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'W5nhxF6Z2UiWd0gpwsM', '2b5PHAvdjePvY204ekqC', 'e2cf9e335483719bb295556fd74da3525ab20c7bf296ee907d029e6cef5115c70c04604d30f31d6f60a09e6cfceee1279f248d47a665318075d1973aed83c0de', 'k3cF1', NULL, NULL, '2013-08-29 18:29:55')
2599
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2600
-  (0.1ms) SAVEPOINT active_record_1
2601
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2602
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:29:55', 0, NULL, NULL, '2013-08-29 18:29:55', 1, 'Test Blog Post 1', '2013-08-29 18:29:55', '2013-08-29-test-blog-post-1', 1)
2603
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2604
-  (0.1ms) SAVEPOINT active_record_1
2605
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2606
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2607
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8f978b8cd6cfed5b4403b1c53011c7f3dda7434b4461ce26196775707e44ab7124c2e12b6f8ef1ec64d42b7cfeb7efaf6a9176c5e20594d2e0550aec403f4184' LIMIT 1
2608
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
2609
- SQL (1.5ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:29:55', '8241a1b6f2441c8536c38bdb7af8df3f0015cdbe5bb4fe791e9a9f2793a47df667cfd1ce6b615f8dd2a210eff31e87c1ea8b79d3c01c0865d802c1c3d38ce91b', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'RHSS0INlVhAfvaL8PyZR', '1P3yEyCmLPVg1rvujk6w', '8f978b8cd6cfed5b4403b1c53011c7f3dda7434b4461ce26196775707e44ab7124c2e12b6f8ef1ec64d42b7cfeb7efaf6a9176c5e20594d2e0550aec403f4184', 'k3cF2', NULL, NULL, '2013-08-29 18:29:55')
2610
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2611
-  (0.1ms) SAVEPOINT active_record_1
2612
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
2613
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:29:55', 0, NULL, NULL, '2013-08-29 18:29:55', 2, 'Test Blog Post 2', '2013-08-29 18:29:55', '2013-08-29-test-blog-post-2', 1)
2614
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2615
- Processing by BlogController#index as HTML
2616
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.1ms)
2617
- Completed 200 OK in 36ms (Views: 34.0ms | ActiveRecord: 0.0ms)
2618
-  (0.4ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:29:55')
2619
-  (0.6ms) ROLLBACK
2620
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2621
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2622
-  (0.1ms) SELECT DATABASE() as db
2623
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2624
-  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;
2625
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
2626
-  (1.4ms) TRUNCATE TABLE `spud_post_categories_posts`;
2627
-  (1.2ms) TRUNCATE TABLE `spud_post_comments`;
2628
-  (1.0ms) TRUNCATE TABLE `spud_post_sites`;
2629
-  (1.2ms) TRUNCATE TABLE `spud_posts`;
2630
-  (1.0ms) TRUNCATE TABLE `spud_user_settings`;
2631
-  (0.9ms) TRUNCATE TABLE `spud_users`;
2632
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2633
-  (0.1ms) BEGIN
2634
-  (0.1ms) SAVEPOINT active_record_1
2635
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
2636
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
2637
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4c37445471d9f4492a22d0604e47444c53514893cc047c328f0c13c98931f42c43410a48e079f9e2f26371afff1750c4ff3494fe6777e58371e3f863b817b6ba' LIMIT 1
2638
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
2639
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:29:55', '0020c3e340408b5d659a2c5ee7fc07de6236e51afb21268044b97e9d5547ff1062af3c6e6571d9bf615dd83616b24da1c93d747da8918a6ffc1aaa41d0446804', '2013-08-29 18:29:55', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:29:55', 'john3doe3', 1, 'SUYm2ypnOiFQpw2zxW', '2xrb77bRUcXD7obEcnK', '4c37445471d9f4492a22d0604e47444c53514893cc047c328f0c13c98931f42c43410a48e079f9e2f26371afff1750c4ff3494fe6777e58371e3f863b817b6ba', 'k3cF3', NULL, NULL, '2013-08-29 18:29:55')
2640
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2641
-  (0.1ms) SAVEPOINT active_record_1
2642
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
2643
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:29:55', 0, NULL, NULL, '2013-08-29 18:29:55', 1, 'Test Blog Post 3', '2013-08-29 18:29:55', '2013-08-29-test-blog-post-3', 1)
2644
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2645
- Processing by BlogController#create_comment as HTML
2646
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-3"}
2647
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
2648
-  (0.2ms) SAVEPOINT active_record_1
2649
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2650
- Completed 200 OK in 37ms (Views: 1.4ms | ActiveRecord: 4.7ms)
2651
- SpudPostComment Load (0.3ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
2652
-  (0.6ms) ROLLBACK
2653
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2654
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2655
-  (0.5ms) TRUNCATE TABLE `spud_admin_permissions`;
2656
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2657
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
2658
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
2659
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
2660
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
2661
-  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
2662
-  (0.7ms) TRUNCATE TABLE `spud_users`;
2663
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
2664
- Connecting to database specified by database.yml
2665
-  (0.2ms) BEGIN
2666
-  (0.2ms) SAVEPOINT active_record_1
2667
- SpudUser Exists (2.5ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2668
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2669
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '6806528cada142c79309cefcf3d7b9cc00e8e6211f059e3a1a1a361fe4378fb3b10beaf7915f2aaf7d2dbed7012a91f09c8c1c23bcd029a9aea2fc3c44b49f4a' LIMIT 1
2670
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2671
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:39', 'd80f1b321390e9efd6a9be7be3f2678b7e24306d0e8f308ccec7480bbad3596031c2c5b1741bd640c6e654cfb8fbe135cc870fb29893faed2b78b0412a712718', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, '7dxC01OeywaaWWKy0F00', '6zjorMRM4y0C4mWTBlJx', '6806528cada142c79309cefcf3d7b9cc00e8e6211f059e3a1a1a361fe4378fb3b10beaf7915f2aaf7d2dbed7012a91f09c8c1c23bcd029a9aea2fc3c44b49f4a', 'k3cF1', NULL, NULL, '2013-08-29 18:31:39')
2672
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2673
-  (0.1ms) SAVEPOINT active_record_1
2674
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2675
- SQL (0.8ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:39', 0, NULL, NULL, '2013-08-29 18:31:39', 1, 'Test Blog Post 1', '2013-08-29 18:31:39', '2013-08-29-test-blog-post-1', 1)
2676
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2677
-  (0.1ms) SAVEPOINT active_record_1
2678
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2679
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2680
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b97fa7c066be369a8d11ef0775d0fcb8f0fd77f5b68d85f9f069beaafabc72c939a54ee76c369dd4cc4bb2acbd84ce29d46df12618d5b1866c5dd126be69ca79' LIMIT 1
2681
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
2682
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:39', '115265a78b9fa2063981f4207f4ba87b81556fc811424c1684c60dfad9995c3786c7538d3ec3f1011f827624eeb48381134758a5ebfa8c4faf89e3fde4962083', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'rXnjHAk4Fbi46mUTiBz', 'RxajHH15WJArOIS1bX0W', 'b97fa7c066be369a8d11ef0775d0fcb8f0fd77f5b68d85f9f069beaafabc72c939a54ee76c369dd4cc4bb2acbd84ce29d46df12618d5b1866c5dd126be69ca79', 'k3cF2', NULL, NULL, '2013-08-29 18:31:39')
2683
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2684
-  (0.1ms) SAVEPOINT active_record_1
2685
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
2686
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:39', 0, NULL, NULL, '2013-08-29 18:31:39', 2, 'Test Blog Post 2', '2013-08-29 18:31:39', '2013-08-29-test-blog-post-2', 1)
2687
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2688
- Processing by BlogController#index as HTML
2689
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.1ms)
2690
- Completed 200 OK in 37ms (Views: 34.5ms | ActiveRecord: 0.0ms)
2691
-  (0.4ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:31:39')
2692
-  (0.5ms) ROLLBACK
2693
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2694
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2695
-  (0.1ms) SELECT DATABASE() as db
2696
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2697
-  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;
2698
-  (1.5ms) TRUNCATE TABLE `spud_post_categories`;
2699
-  (1.3ms) TRUNCATE TABLE `spud_post_categories_posts`;
2700
-  (1.7ms) TRUNCATE TABLE `spud_post_comments`;
2701
-  (1.4ms) TRUNCATE TABLE `spud_post_sites`;
2702
-  (3.0ms) TRUNCATE TABLE `spud_posts`;
2703
-  (1.2ms) TRUNCATE TABLE `spud_user_settings`;
2704
-  (1.7ms) TRUNCATE TABLE `spud_users`;
2705
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2706
-  (0.1ms) BEGIN
2707
-  (0.1ms) SAVEPOINT active_record_1
2708
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
2709
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
2710
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ff08d84a3c3a74ec8d1e87f3ecd40020214e67d9a4f9c4b083e0f993520eb4456a72efed79505de177e2653e9f744af86235e5f66750d11ece32d0a512ec7740' LIMIT 1
2711
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
2712
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:39', 'e928f29cdea3e196da012b4fa61d067d7fb608d36a9ecc37abc87b02e4de3d72533b5a46464b5660c94fc9581413c373da3b918629f701b7efddfa03275cd229', '2013-08-29 18:31:39', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:31:39', 'john3doe3', 1, 'QdrHLZhKPhYvuVrBAf6G', '9RsdMl6nKlgTN61wbC8V', 'ff08d84a3c3a74ec8d1e87f3ecd40020214e67d9a4f9c4b083e0f993520eb4456a72efed79505de177e2653e9f744af86235e5f66750d11ece32d0a512ec7740', 'k3cF3', NULL, NULL, '2013-08-29 18:31:39')
2713
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2714
-  (0.1ms) SAVEPOINT active_record_1
2715
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
2716
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:39', 0, NULL, NULL, '2013-08-29 18:31:39', 1, 'Test Blog Post 3', '2013-08-29 18:31:39', '2013-08-29-test-blog-post-3', 1)
2717
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2718
- Processing by BlogController#create_comment as HTML
2719
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-3"}
2720
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
2721
-  (0.2ms) SAVEPOINT active_record_1
2722
- SQL (0.8ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:31:39', 'http://test.host/blog/2013-08-29-test-blog-post-3', NULL, NULL, 1, '2013-08-29 18:31:39', 'Rails Testing', '0.0.0.0')
2723
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
2724
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2725
- Completed 200 OK in 37ms (Views: 1.8ms | ActiveRecord: 2.8ms)
2726
-  (0.6ms) ROLLBACK
2727
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2728
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2729
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
2730
-  (1.5ms) TRUNCATE TABLE `spud_post_categories`;
2731
-  (0.4ms) TRUNCATE TABLE `spud_post_categories_posts`;
2732
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
2733
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
2734
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
2735
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
2736
-  (1.0ms) TRUNCATE TABLE `spud_users`;
2737
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
2738
-  (0.1ms) BEGIN
2739
-  (0.1ms) SAVEPOINT active_record_1
2740
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john4doe4@email.com' LIMIT 1
2741
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john4doe4' LIMIT 1
2742
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e90c14448578948b2351246f41a4fcfadad12a62923e67eca635eefc97ea1196a684978fd3030c89fee63f3cc4b407f09854fdab32b0b5f7f70597bd5be2e0c3' LIMIT 1
2743
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF4' LIMIT 1
2744
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:39', '8e2d05f764a500c24e53d1c14a6db7c00fb01ee3054a51ade4a88082746744c3789dc85264bd38b57413aa58f94a00ee0201f78a7eaa1475ae3b77c5d4757c4e', '2013-08-29 18:31:39', '0.0.0.0', 'john4doe4@email.com', 0, 'John4', NULL, NULL, 'Doe4', '2013-08-29 18:31:39', 'john4doe4', 1, 'QkaEWfw2LZR85mRCfIZ', 'wGMgWpOUX5fLkdAzcCE', 'e90c14448578948b2351246f41a4fcfadad12a62923e67eca635eefc97ea1196a684978fd3030c89fee63f3cc4b407f09854fdab32b0b5f7f70597bd5be2e0c3', 'k3cF4', NULL, NULL, '2013-08-29 18:31:39')
2745
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2746
-  (0.0ms) SAVEPOINT active_record_1
2747
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-4' LIMIT 1
2748
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:39', 0, NULL, NULL, '2013-08-29 18:31:39', 1, 'Test Blog Post 4', '2013-08-29 18:31:39', '2013-08-29-test-blog-post-4', 1)
2749
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2750
- Processing by BlogController#create_comment as HTML
2751
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-4"}
2752
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-4' LIMIT 1
2753
-  (0.1ms) SAVEPOINT active_record_1
2754
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2755
- Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.5ms)
2756
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
2757
-  (0.6ms) ROLLBACK
2758
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2759
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2760
-  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;
2761
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
2762
-  (1.0ms) TRUNCATE TABLE `spud_post_categories_posts`;
2763
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
2764
-  (1.1ms) TRUNCATE TABLE `spud_post_sites`;
2765
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
2766
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
2767
-  (1.3ms) TRUNCATE TABLE `spud_users`;
2768
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2769
- Connecting to database specified by database.yml
2770
-  (0.1ms) BEGIN
2771
-  (0.1ms) SAVEPOINT active_record_1
2772
- SpudUser Exists (1.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2773
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2774
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ba720f98858faa3f378dbe4a596168eec6085af11de906178ffca748798b67d0b0c76235633749b100e1435c83c86e08f402d7f663036cf816a4c617d2f5a8e6' LIMIT 1
2775
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2776
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:57', '57394dbaba24153a2cee57e96cf54182f84184d2ae0eb51d424058d841a14e8edad76611c44ff83260a187380929b8d7bb4b61cfea0103ae4f6f9cf856da0fc4', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'P6boS13uCz6YfqpjDFFp', 'B90JF0idNTkU8vTI2Abm', 'ba720f98858faa3f378dbe4a596168eec6085af11de906178ffca748798b67d0b0c76235633749b100e1435c83c86e08f402d7f663036cf816a4c617d2f5a8e6', 'k3cF1', NULL, NULL, '2013-08-29 18:31:57')
2777
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2778
-  (0.1ms) SAVEPOINT active_record_1
2779
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2780
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:57', 0, NULL, NULL, '2013-08-29 18:31:56', 1, 'Test Blog Post 1', '2013-08-29 18:31:57', '2013-08-29-test-blog-post-1', 1)
2781
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2782
-  (0.1ms) SAVEPOINT active_record_1
2783
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2784
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2785
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7766c32654050a41cba34014eb588522b60144a2eb912bbef75cac5a9128911a4d8170ac1ad089c2e3f8d37d91f86a602dd0e163fa186e1f61d2758c97503f73' LIMIT 1
2786
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
2787
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:57', 'a04d77acd5098f64b1bf658b9ea011b0ccd76ce77e67f8ab510d5d60d079783187c37ea1364a5108bb9385a1136ba10bd78b237a9dd51029f5f8ab897a2306b1', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'LpNiK0Bpu4CZReWo5evP', 'GjIcR8LbTw2j4kxR68N', '7766c32654050a41cba34014eb588522b60144a2eb912bbef75cac5a9128911a4d8170ac1ad089c2e3f8d37d91f86a602dd0e163fa186e1f61d2758c97503f73', 'k3cF2', NULL, NULL, '2013-08-29 18:31:57')
2788
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2789
-  (0.1ms) SAVEPOINT active_record_1
2790
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
2791
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:57', 0, NULL, NULL, '2013-08-29 18:31:56', 2, 'Test Blog Post 2', '2013-08-29 18:31:57', '2013-08-29-test-blog-post-2', 1)
2792
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2793
- Processing by BlogController#index as HTML
2794
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.2ms)
2795
- Completed 200 OK in 36ms (Views: 33.9ms | ActiveRecord: 0.0ms)
2796
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:31:57')
2797
-  (0.8ms) ROLLBACK
2798
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2799
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2800
-  (0.1ms) SELECT DATABASE() as db
2801
-  (0.7ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2802
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
2803
-  (0.6ms) TRUNCATE TABLE `spud_post_categories`;
2804
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
2805
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
2806
-  (0.5ms) TRUNCATE TABLE `spud_post_sites`;
2807
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
2808
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
2809
-  (0.8ms) TRUNCATE TABLE `spud_users`;
2810
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2811
-  (0.0ms) BEGIN
2812
-  (0.1ms) SAVEPOINT active_record_1
2813
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
2814
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
2815
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5b2d947e88dea3772b98b258fd0380a618b35718f2a6f53e86120b75756699938db8b4376266754c649f9fed9d43f13aae87f1047f987854500482716e494807' LIMIT 1
2816
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
2817
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:57', 'd71b78ebf76aa469da277c658fa6a393123e6f90db7e35742a8a8a47c7b7825526ed567d63855bc98a7326b994f0e07346a8068df826ce28f9a50f9685ec1c84', '2013-08-29 18:31:57', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:31:57', 'john3doe3', 1, 'nOLJtLwvjQmCRCEGokb7', 'jDsFETyEffiSmAompn6r', '5b2d947e88dea3772b98b258fd0380a618b35718f2a6f53e86120b75756699938db8b4376266754c649f9fed9d43f13aae87f1047f987854500482716e494807', 'k3cF3', NULL, NULL, '2013-08-29 18:31:57')
2818
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2819
-  (0.1ms) SAVEPOINT active_record_1
2820
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
2821
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:57', 0, NULL, NULL, '2013-08-29 18:31:56', 1, 'Test Blog Post 3', '2013-08-29 18:31:57', '2013-08-29-test-blog-post-3', 1)
2822
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2823
- Processing by BlogController#create_comment as HTML
2824
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-3"}
2825
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
2826
-  (0.2ms) SAVEPOINT active_record_1
2827
- SQL (0.3ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:31:57', 'http://test.host/blog/2013-08-29-test-blog-post-3', NULL, NULL, 1, '2013-08-29 18:31:57', 'Rails Testing', '0.0.0.0')
2828
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
2829
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2830
- Completed 200 OK in 35ms (Views: 1.4ms | ActiveRecord: 2.5ms)
2831
- SpudPostComment Load (0.3ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1
2832
-  (0.5ms) ROLLBACK
2833
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2834
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2835
-  (0.5ms) TRUNCATE TABLE `spud_admin_permissions`;
2836
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2837
-  (0.8ms) TRUNCATE TABLE `spud_post_categories_posts`;
2838
-  (1.2ms) TRUNCATE TABLE `spud_post_comments`;
2839
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
2840
-  (1.1ms) TRUNCATE TABLE `spud_posts`;
2841
-  (0.8ms) TRUNCATE TABLE `spud_user_settings`;
2842
-  (1.3ms) TRUNCATE TABLE `spud_users`;
2843
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2844
-  (0.0ms) BEGIN
2845
-  (0.1ms) SAVEPOINT active_record_1
2846
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john4doe4@email.com' LIMIT 1
2847
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john4doe4' LIMIT 1
2848
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'd8709c28406b54ff6a5bcbe57d986e79c224f618358378be59a4451fdb770b61735ee2ebd62e48f7e152ed0921359056831a94ffbcaa7faae62b1fc6ab5c7303' LIMIT 1
2849
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF4' LIMIT 1
2850
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:31:57', '28cd134ab1a4ae6971c6c4d0d70832802ce9c6088f968e3e72bf3f11709925fd3e2f24d1dee2ecef652f1e46bca127e263cefa5e4ffd421235acb3a85b661c33', '2013-08-29 18:31:57', '0.0.0.0', 'john4doe4@email.com', 0, 'John4', NULL, NULL, 'Doe4', '2013-08-29 18:31:57', 'john4doe4', 1, 'hjvKZlMCsCOKUNd59urM', 'ImFgoeAZ62REnLVzRQ3b', 'd8709c28406b54ff6a5bcbe57d986e79c224f618358378be59a4451fdb770b61735ee2ebd62e48f7e152ed0921359056831a94ffbcaa7faae62b1fc6ab5c7303', 'k3cF4', NULL, NULL, '2013-08-29 18:31:57')
2851
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2852
-  (0.1ms) SAVEPOINT active_record_1
2853
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-4' LIMIT 1
2854
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:31:57', 0, NULL, NULL, '2013-08-29 18:31:56', 1, 'Test Blog Post 4', '2013-08-29 18:31:57', '2013-08-29-test-blog-post-4', 1)
2855
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2856
- Processing by BlogController#create_comment as HTML
2857
- Parameters: {"author"=>"Test User", "content"=>"Lorem Ipsum", "id"=>"2013-08-29-test-blog-post-4"}
2858
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-4' LIMIT 1
2859
-  (0.1ms) SAVEPOINT active_record_1
2860
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2861
- Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 0.5ms)
2862
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
2863
-  (0.6ms) ROLLBACK
2864
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2865
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2866
-  (2.0ms) TRUNCATE TABLE `spud_admin_permissions`;
2867
-  (2.6ms) TRUNCATE TABLE `spud_post_categories`;
2868
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
2869
-  (1.3ms) TRUNCATE TABLE `spud_post_comments`;
2870
-  (1.1ms) TRUNCATE TABLE `spud_post_sites`;
2871
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
2872
-  (0.9ms) TRUNCATE TABLE `spud_user_settings`;
2873
-  (1.0ms) TRUNCATE TABLE `spud_users`;
2874
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2875
- Connecting to database specified by database.yml
2876
-  (0.2ms) BEGIN
2877
-  (0.2ms) SAVEPOINT active_record_1
2878
- SpudUser Exists (1.7ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2879
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2880
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '761fb90c535ef47af849542602d899a3c645971a4fef179583c23197a28faaa3e2973cff5780f2652c21600edb6d3a9757dbb55110970902000d1522e1718b4c' LIMIT 1
2881
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2882
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:12', '41e58470914160d1b0e340240a7d96a18c90c12c1efdfcba43441cf1eca86b8935cdfcf01cbdde4b842787659a5df3f691c13e94dc873c929dc02cc88642a323', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'u7pPE27xEdUYxM1gIpKu', 'ksdkMNmO01W3tyGYiEY3', '761fb90c535ef47af849542602d899a3c645971a4fef179583c23197a28faaa3e2973cff5780f2652c21600edb6d3a9757dbb55110970902000d1522e1718b4c', 'k3cF1', NULL, NULL, '2013-08-29 18:32:12')
2883
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2884
-  (0.1ms) SAVEPOINT active_record_1
2885
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2886
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:12', 0, NULL, NULL, '2013-08-29 18:32:12', 1, 'Test Blog Post 1', '2013-08-29 18:32:12', '2013-08-29-test-blog-post-1', 1)
2887
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2888
-  (0.1ms) SAVEPOINT active_record_1
2889
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2890
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2891
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '76466f4ddd42ac7395f4c9b5a661b2ed9dff886af83dfc1d142bb20ce9ef20cd19170392ae47070d13fa32f90d5bfb959b79628c6fc6709ec16a5ba5ba38e04d' LIMIT 1
2892
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
2893
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:12', 'c1a58318a4ef969a1e5082038d541d2e7df9a5332ab60b7e94b2ad085115feadd40d7a2bfd13e7b2437ef369b550f8210bd9e3973bad0b64620e3bd3ffbe3974', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'oqGL9sjjv7b1VC2hPD', 'h4sR0WB1HPHypbDRqi0s', '76466f4ddd42ac7395f4c9b5a661b2ed9dff886af83dfc1d142bb20ce9ef20cd19170392ae47070d13fa32f90d5bfb959b79628c6fc6709ec16a5ba5ba38e04d', 'k3cF2', NULL, NULL, '2013-08-29 18:32:12')
2894
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2895
-  (0.1ms) SAVEPOINT active_record_1
2896
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
2897
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:12', 0, NULL, NULL, '2013-08-29 18:32:12', 2, 'Test Blog Post 2', '2013-08-29 18:32:12', '2013-08-29-test-blog-post-2', 1)
2898
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2899
- Processing by BlogController#index as HTML
2900
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.1ms)
2901
- Completed 200 OK in 37ms (Views: 34.3ms | ActiveRecord: 0.0ms)
2902
-  (0.4ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:32:12')
2903
-  (0.9ms) ROLLBACK
2904
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2905
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2906
-  (0.1ms) SELECT DATABASE() as db
2907
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
2908
-  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;
2909
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
2910
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
2911
-  (0.6ms) TRUNCATE TABLE `spud_post_comments`;
2912
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
2913
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
2914
-  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
2915
-  (1.0ms) TRUNCATE TABLE `spud_users`;
2916
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2917
-  (0.0ms) BEGIN
2918
-  (0.1ms) SAVEPOINT active_record_1
2919
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
2920
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
2921
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '425459130dbd1fd12912e4c4fc6a0b70a51a81f39120a467cf351b420f7e0a548c7f22491c2b0e919831efc2dfe81a82661fce46eda15815c5bfdbcd4c817f2a' LIMIT 1
2922
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
2923
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:13', 'abe79e263bb6d599c2704f023ed93416ec6a39ea3ddd0406c5c25289056601e49bf00b9e0260b5227fa7a72f0d8336ff7dc59fc0a46b3301e0cc755896489dd1', '2013-08-29 18:32:13', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:32:13', 'john3doe3', 1, '53xYu3HBNE2Mx02SBW2t', '2Hfc86Ngq4A7PbdemBJ', '425459130dbd1fd12912e4c4fc6a0b70a51a81f39120a467cf351b420f7e0a548c7f22491c2b0e919831efc2dfe81a82661fce46eda15815c5bfdbcd4c817f2a', 'k3cF3', NULL, NULL, '2013-08-29 18:32:13')
2924
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2925
-  (0.1ms) SAVEPOINT active_record_1
2926
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
2927
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:13', 0, NULL, NULL, '2013-08-29 18:32:12', 1, 'Test Blog Post 3', '2013-08-29 18:32:13', '2013-08-29-test-blog-post-3', 1)
2928
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2929
- Processing by BlogController#create_comment as HTML
2930
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-3"}
2931
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
2932
-  (0.2ms) SAVEPOINT active_record_1
2933
- SQL (0.2ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:32:13', 'http://test.host/blog/2013-08-29-test-blog-post-3', NULL, NULL, 1, '2013-08-29 18:32:13', 'Rails Testing', '0.0.0.0')
2934
- SQL (0.3ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
2935
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2936
- Completed 200 OK in 37ms (Views: 1.4ms | ActiveRecord: 2.9ms)
2937
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1
2938
-  (0.4ms) ROLLBACK
2939
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2940
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2941
-  (1.6ms) TRUNCATE TABLE `spud_admin_permissions`;
2942
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2943
-  (1.2ms) TRUNCATE TABLE `spud_post_categories_posts`;
2944
-  (1.3ms) TRUNCATE TABLE `spud_post_comments`;
2945
-  (1.0ms) TRUNCATE TABLE `spud_post_sites`;
2946
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
2947
-  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
2948
-  (1.0ms) TRUNCATE TABLE `spud_users`;
2949
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2950
-  (0.0ms) BEGIN
2951
-  (0.1ms) SAVEPOINT active_record_1
2952
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john4doe4@email.com' LIMIT 1
2953
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john4doe4' LIMIT 1
2954
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '59bc9f0096b1e75fb02a9e5fdb4845655a0a3a4372ac91bf56c1688876e110fc8291cbd50711a444b88657a2a1dab8e48a4a3ed1472373a091c88e112b0c8d52' LIMIT 1
2955
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF4' LIMIT 1
2956
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:13', '74b7f146293325afabf73b3a0d18e598e09b76a6a6cfb9a171e4e9dd350f69d32a0ff4eaa03c2f662aeefaf492a6189548a551d9ddb03031af5dae1ed881f13f', '2013-08-29 18:32:13', '0.0.0.0', 'john4doe4@email.com', 0, 'John4', NULL, NULL, 'Doe4', '2013-08-29 18:32:13', 'john4doe4', 1, 'o6APqRdl4JvshR99eC7', '1XQURLB4tTTahUH6uMO', '59bc9f0096b1e75fb02a9e5fdb4845655a0a3a4372ac91bf56c1688876e110fc8291cbd50711a444b88657a2a1dab8e48a4a3ed1472373a091c88e112b0c8d52', 'k3cF4', NULL, NULL, '2013-08-29 18:32:13')
2957
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2958
-  (0.1ms) SAVEPOINT active_record_1
2959
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-4' LIMIT 1
2960
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:13', 0, NULL, NULL, '2013-08-29 18:32:12', 1, 'Test Blog Post 4', '2013-08-29 18:32:13', '2013-08-29-test-blog-post-4', 1)
2961
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2962
- Processing by BlogController#create_comment as HTML
2963
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-4"}
2964
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-4' LIMIT 1
2965
-  (0.1ms) SAVEPOINT active_record_1
2966
- SQL (0.2ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:32:13', 'http://test.host/blog/2013-08-29-test-blog-post-4', NULL, NULL, 1, '2013-08-29 18:32:13', 'Rails Testing', '0.0.0.0')
2967
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
2968
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2969
- Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.9ms)
2970
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
2971
-  (0.8ms) ROLLBACK
2972
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2973
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
2974
-  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;
2975
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
2976
-  (1.3ms) TRUNCATE TABLE `spud_post_categories_posts`;
2977
-  (1.0ms) TRUNCATE TABLE `spud_post_comments`;
2978
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
2979
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
2980
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
2981
-  (0.9ms) TRUNCATE TABLE `spud_users`;
2982
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2983
- Connecting to database specified by database.yml
2984
-  (0.2ms) BEGIN
2985
-  (0.2ms) SAVEPOINT active_record_1
2986
- SpudUser Exists (1.7ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
2987
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
2988
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b7527f520d5c6938d952dd27690966634936a954712c564675a6062db9962a172cf8328ada358e88dd0f7d4ac69c1e59d6f3ab310accc32e561472313082e362' LIMIT 1
2989
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
2990
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:53', 'ae776c072998fb7b69774ed5c5bd3da75aaf8f101792d819d2ae2af4e105694320b70752ea2fce51217b93a44eab4c59fabaa5aba3a5a264d6edae19a840fc8f', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'texpjj3Cus8JQVawSKi6', 'mhI4X3qeAfo2qvE1KbU', 'b7527f520d5c6938d952dd27690966634936a954712c564675a6062db9962a172cf8328ada358e88dd0f7d4ac69c1e59d6f3ab310accc32e561472313082e362', 'k3cF1', NULL, NULL, '2013-08-29 18:32:53')
2991
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2992
-  (0.1ms) SAVEPOINT active_record_1
2993
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
2994
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:53', 0, NULL, NULL, '2013-08-29 18:32:52', 1, 'Test Blog Post 1', '2013-08-29 18:32:53', '2013-08-29-test-blog-post-1', 1)
2995
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2996
-  (0.1ms) SAVEPOINT active_record_1
2997
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
2998
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
2999
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a30238a16bd65e12eff096bed332716bfeac9a1cc03e42301a2ca27ee26171efbb2061b523e2ce31e1a810e1b80f2f9888e026617a019c140f057e9d3bbf0b25' LIMIT 1
3000
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
3001
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:53', '8025831842d498fd40f8843f90a96176ceed79bdbac964bd400f3527c3bdb020a4592c1db4b08b0ef1fdad69a4918183bfad4ffaf95e3feb6cc034366e0fe14f', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'lffEEJOKEkRjheDiFaeM', '44zSnTq8VGhJK7WOLojh', 'a30238a16bd65e12eff096bed332716bfeac9a1cc03e42301a2ca27ee26171efbb2061b523e2ce31e1a810e1b80f2f9888e026617a019c140f057e9d3bbf0b25', 'k3cF2', NULL, NULL, '2013-08-29 18:32:53')
3002
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3003
-  (0.1ms) SAVEPOINT active_record_1
3004
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
3005
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:53', 0, NULL, NULL, '2013-08-29 18:32:52', 2, 'Test Blog Post 2', '2013-08-29 18:32:53', '2013-08-29-test-blog-post-2', 1)
3006
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3007
- Processing by BlogController#index as HTML
3008
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.7ms)
3009
- Completed 200 OK in 40ms (Views: 37.7ms | ActiveRecord: 0.0ms)
3010
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:32:53')
3011
-  (0.8ms) ROLLBACK
3012
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3013
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3014
-  (0.1ms) SELECT DATABASE() as db
3015
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
3016
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
3017
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
3018
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
3019
-  (1.1ms) TRUNCATE TABLE `spud_post_comments`;
3020
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3021
-  (0.7ms) TRUNCATE TABLE `spud_posts`;
3022
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
3023
-  (0.8ms) TRUNCATE TABLE `spud_users`;
3024
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3025
-  (0.0ms) BEGIN
3026
-  (0.1ms) SAVEPOINT active_record_1
3027
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
3028
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
3029
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '51d912c0af59f1d2ce1ebf25a7cac32b41640a6adfbf674172bf11ffcfdeb7e2d4278ade411be4e9515a3cf3ca212ea4d310bc99c2d473b1eec255eadd5c12a1' LIMIT 1
3030
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
3031
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:53', 'b1feca70445ef7f1f2a857f5e594551f0b233f3092bc6dd897b61196ae7447fbb5858d2048f2c4df8b71a9888d42f07c90b19a52c808800b2d9fb57155fc579d', '2013-08-29 18:32:53', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:32:53', 'john3doe3', 1, 'he4YBZDqqIe3o3MrOP0d', 'DsY1E2HeNHseQWdAihY', '51d912c0af59f1d2ce1ebf25a7cac32b41640a6adfbf674172bf11ffcfdeb7e2d4278ade411be4e9515a3cf3ca212ea4d310bc99c2d473b1eec255eadd5c12a1', 'k3cF3', NULL, NULL, '2013-08-29 18:32:53')
3032
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3033
-  (0.1ms) SAVEPOINT active_record_1
3034
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
3035
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:53', 0, NULL, NULL, '2013-08-29 18:32:52', 1, 'Test Blog Post 3', '2013-08-29 18:32:53', '2013-08-29-test-blog-post-3', 1)
3036
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3037
- Processing by BlogController#create_comment as HTML
3038
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-3"}
3039
- SpudPost Load (0.2ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
3040
-  (0.2ms) SAVEPOINT active_record_1
3041
- SQL (0.2ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:32:53', 'http://test.host/blog/2013-08-29-test-blog-post-3', NULL, NULL, 1, '2013-08-29 18:32:53', 'Rails Testing', '0.0.0.0')
3042
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3043
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3044
- Completed 200 OK in 37ms (Views: 1.4ms | ActiveRecord: 4.5ms)
3045
- SpudPostComment Load (0.3ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1
3046
-  (0.6ms) ROLLBACK
3047
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3048
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3049
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
3050
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3051
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3052
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
3053
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3054
-  (0.7ms) TRUNCATE TABLE `spud_posts`;
3055
-  (0.6ms) TRUNCATE TABLE `spud_user_settings`;
3056
-  (0.6ms) TRUNCATE TABLE `spud_users`;
3057
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
3058
-  (0.0ms) BEGIN
3059
-  (0.1ms) SAVEPOINT active_record_1
3060
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john4doe4@email.com' LIMIT 1
3061
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john4doe4' LIMIT 1
3062
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3c92cf5c0c14a43445f422914b85f44c940e6e90668603623931f8fe5cf792b22ea8f0129f540399d788d4f4c91c67c6ce439932f72a5fff10000ef01e836d65' LIMIT 1
3063
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF4' LIMIT 1
3064
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:32:53', 'e2c90f3becfa9e8a5b8d0eaea59ba23bd9764f6a832b537cf50dab1162b4c46837c4c684c70a1c4f26e04a4a2990d4e7c745f7c91648c0101ad206536693a8a9', '2013-08-29 18:32:53', '0.0.0.0', 'john4doe4@email.com', 0, 'John4', NULL, NULL, 'Doe4', '2013-08-29 18:32:53', 'john4doe4', 1, 'GnqoijTFRY5VsF3DTxn7', 'pVDbqpVy0KZqowRljaiU', '3c92cf5c0c14a43445f422914b85f44c940e6e90668603623931f8fe5cf792b22ea8f0129f540399d788d4f4c91c67c6ce439932f72a5fff10000ef01e836d65', 'k3cF4', NULL, NULL, '2013-08-29 18:32:53')
3065
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3066
-  (0.1ms) SAVEPOINT active_record_1
3067
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-4' LIMIT 1
3068
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:32:53', 0, NULL, NULL, '2013-08-29 18:32:52', 1, 'Test Blog Post 4', '2013-08-29 18:32:53', '2013-08-29-test-blog-post-4', 1)
3069
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3070
- Processing by BlogController#create_comment as HTML
3071
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-4"}
3072
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-4' LIMIT 1
3073
-  (0.1ms) SAVEPOINT active_record_1
3074
- SQL (0.2ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:32:53', 'http://test.host/blog/2013-08-29-test-blog-post-4', NULL, NULL, 1, '2013-08-29 18:32:53', 'Rails Testing', '0.0.0.0')
3075
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3076
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3077
- Completed 200 OK in 30ms (Views: 24.8ms | ActiveRecord: 0.9ms)
3078
- SpudPostComment Load (0.3ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
3079
-  (0.7ms) ROLLBACK
3080
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3081
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3082
-  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;
3083
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3084
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3085
-  (0.9ms) TRUNCATE TABLE `spud_post_comments`;
3086
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3087
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
3088
-  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
3089
-  (0.7ms) TRUNCATE TABLE `spud_users`;
3090
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3091
- Connecting to database specified by database.yml
3092
-  (0.1ms) BEGIN
3093
-  (0.2ms) SAVEPOINT active_record_1
3094
- SpudUser Exists (1.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
3095
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
3096
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8fd3aa47b2bf909f406ac01ebe87292a9d742c1ce9187da6f65ed7edc90456f298307d4aa7e99c50af71af5bd6416ebf9b30ed4c936101bee916cba9c0624842' LIMIT 1
3097
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
3098
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:18', '080edf193c47f1560f73c6ca3d3d66ba6301ed17e29ddbb9aaf8ecebfbffa855e697487bc64faa705cb92153dcb2a826c47549eaa88593706b04b5b954bb9315', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, '5tOxFTIbklS3RmWUqFxY', '9lgDwtzKXjqV5xeiyWGt', '8fd3aa47b2bf909f406ac01ebe87292a9d742c1ce9187da6f65ed7edc90456f298307d4aa7e99c50af71af5bd6416ebf9b30ed4c936101bee916cba9c0624842', 'k3cF1', NULL, NULL, '2013-08-29 18:34:18')
3099
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3100
-  (0.1ms) SAVEPOINT active_record_1
3101
- SpudPost Exists (0.3ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
3102
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:18', 0, NULL, NULL, '2013-08-29 18:34:18', 1, 'Test Blog Post 1', '2013-08-29 18:34:18', '2013-08-29-test-blog-post-1', 1)
3103
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3104
-  (0.1ms) SAVEPOINT active_record_1
3105
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
3106
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
3107
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1e96415bc726572697429bbada9768d1c62a558bdf10e34e40dc23adb1f5ecdbe73da16e5eb7c00410eed255cd2c02493eef48be7a6a210db2c950a33fbb607a' LIMIT 1
3108
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
3109
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:18', '63bf752be991abb5ad981a7d69b274413c20792a6ae18be289ba1255cee42960a60f1d51bf3f2df840683c06e301d6fbad2b4c3122a64c8792d51666536c63d2', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, '5Tn6Kvy9rokFmlBLh7j', 'AW0XJDsy0PTjkqN0Ab53', '1e96415bc726572697429bbada9768d1c62a558bdf10e34e40dc23adb1f5ecdbe73da16e5eb7c00410eed255cd2c02493eef48be7a6a210db2c950a33fbb607a', 'k3cF2', NULL, NULL, '2013-08-29 18:34:18')
3110
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3111
-  (0.1ms) SAVEPOINT active_record_1
3112
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
3113
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:18', 0, NULL, NULL, '2013-08-29 18:34:18', 2, 'Test Blog Post 2', '2013-08-29 18:34:18', '2013-08-29-test-blog-post-2', 1)
3114
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3115
- Processing by BlogController#index as HTML
3116
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.1ms)
3117
- Completed 200 OK in 36ms (Views: 33.5ms | ActiveRecord: 0.0ms)
3118
-  (0.4ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:34:18')
3119
-  (0.8ms) ROLLBACK
3120
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3121
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3122
-  (0.1ms) SELECT DATABASE() as db
3123
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
3124
-  (0.5ms) TRUNCATE TABLE `spud_admin_permissions`;
3125
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3126
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3127
-  (0.7ms) TRUNCATE TABLE `spud_post_comments`;
3128
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3129
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
3130
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
3131
-  (1.6ms) TRUNCATE TABLE `spud_users`;
3132
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3133
-  (0.0ms) BEGIN
3134
-  (0.1ms) SAVEPOINT active_record_1
3135
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
3136
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
3137
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b6edd3dcb957e2eaeadaf07ee9c705e035efa880c04e316273597ea74a1fce3bafe010a9561c809f9f79edc99c744c385e97d727262119ecc68862f27ff4024d' LIMIT 1
3138
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
3139
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:18', '4d8b8d7e3d781cabcda0f3462459210244d1c2d379a8150a68d3a3d6838dda8135ef1cb66af5133baae11b95574f287d316ca98aecb0fafbf8fe41c3aabf9db9', '2013-08-29 18:34:18', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:34:18', 'john3doe3', 1, 'mDZcxtV1DTLhlFEqm0B5', 'gT6SPTNLo9scngGsO', 'b6edd3dcb957e2eaeadaf07ee9c705e035efa880c04e316273597ea74a1fce3bafe010a9561c809f9f79edc99c744c385e97d727262119ecc68862f27ff4024d', 'k3cF3', NULL, NULL, '2013-08-29 18:34:18')
3140
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3141
-  (0.1ms) SAVEPOINT active_record_1
3142
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
3143
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:18', 0, NULL, NULL, '2013-08-29 18:34:18', 1, 'Test Blog Post 3', '2013-08-29 18:34:18', '2013-08-29-test-blog-post-3', 1)
3144
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3145
- Processing by BlogController#create_comment as HTML
3146
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-3"}
3147
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
3148
-  (0.2ms) SAVEPOINT active_record_1
3149
- SQL (0.3ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:34:18', 'http://test.host/blog/2013-08-29-test-blog-post-3', NULL, NULL, 1, '2013-08-29 18:34:18', 'Rails Testing', '0.0.0.0')
3150
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3151
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3152
- Completed 200 OK in 35ms (Views: 1.4ms | ActiveRecord: 2.4ms)
3153
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1
3154
-  (0.7ms) ROLLBACK
3155
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3156
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
3157
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
3158
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3159
-  (0.6ms) TRUNCATE TABLE `spud_post_categories_posts`;
3160
-  (0.7ms) TRUNCATE TABLE `spud_post_comments`;
3161
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3162
-  (0.8ms) TRUNCATE TABLE `spud_posts`;
3163
-  (0.5ms) TRUNCATE TABLE `spud_user_settings`;
3164
-  (0.9ms) TRUNCATE TABLE `spud_users`;
3165
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 1
3166
-  (0.1ms) BEGIN
3167
-  (0.1ms) SAVEPOINT active_record_1
3168
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john4doe4@email.com' LIMIT 1
3169
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john4doe4' LIMIT 1
3170
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fed2e432491ca6952ee387992aed5a6e89f4206ac360a92f5365c8c6d00fc981d4fbb0c2d887c8042ce6eb23e5cb988c3d7b567e28164815a3c6ca819a212e6a' LIMIT 1
3171
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF4' LIMIT 1
3172
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:18', '3601c2520ef80bae3f932896cf6f934f957771449e80d6c46d95780af52129640435e8fde469b689567b4e97b85c013255e9ea52c9ca8cb7b820d4da01b878e3', '2013-08-29 18:34:18', '0.0.0.0', 'john4doe4@email.com', 0, 'John4', NULL, NULL, 'Doe4', '2013-08-29 18:34:18', 'john4doe4', 1, 'EtTzG4B3CFhfw19T8HW2', 'gWYqxOY0IweNizn5GrD', 'fed2e432491ca6952ee387992aed5a6e89f4206ac360a92f5365c8c6d00fc981d4fbb0c2d887c8042ce6eb23e5cb988c3d7b567e28164815a3c6ca819a212e6a', 'k3cF4', NULL, NULL, '2013-08-29 18:34:18')
3173
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3174
-  (0.1ms) SAVEPOINT active_record_1
3175
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-4' LIMIT 1
3176
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:18', 0, NULL, NULL, '2013-08-29 18:34:18', 1, 'Test Blog Post 4', '2013-08-29 18:34:18', '2013-08-29-test-blog-post-4', 1)
3177
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3178
- Processing by BlogController#create_comment as HTML
3179
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-4"}
3180
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-4' LIMIT 1
3181
-  (0.1ms) SAVEPOINT active_record_1
3182
- SQL (0.2ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:34:18', 'http://test.host/blog/2013-08-29-test-blog-post-4', NULL, NULL, 1, '2013-08-29 18:34:18', 'Rails Testing', '0.0.0.0')
3183
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3184
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3185
- Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 1.0ms)
3186
- SpudPostComment Load (0.3ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
3187
-  (0.7ms) ROLLBACK
3188
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3189
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
3190
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
3191
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3192
-  (0.9ms) TRUNCATE TABLE `spud_post_categories_posts`;
3193
-  (0.6ms) TRUNCATE TABLE `spud_post_comments`;
3194
-  (0.6ms) TRUNCATE TABLE `spud_post_sites`;
3195
-  (0.9ms) TRUNCATE TABLE `spud_posts`;
3196
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
3197
-  (0.9ms) TRUNCATE TABLE `spud_users`;
3198
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3199
- Connecting to database specified by database.yml
3200
-  (0.1ms) BEGIN
3201
-  (0.1ms) SAVEPOINT active_record_1
3202
- SpudUser Exists (1.8ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john1doe1@email.com' LIMIT 1
3203
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john1doe1' LIMIT 1
3204
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8733b4324e3bc7c857643c26c21e417e91f3b6f18a0f02ba4280eda3b994e83f17040ab7c07f28e83f43f9e0322079c1350bc5dfd30289ad3e63b19fd63a2c16' LIMIT 1
3205
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF1' LIMIT 1
3206
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:38', '633c49cc18bb5fc3c299ab71ecd08ed09b4bbfef1a72732eca6b6772a589cd287e37128ecb260e7dabc38a6b616e9be7d31f2d2fd442d8a99a0cf5f3f424c1dd', NULL, NULL, 'john1doe1@email.com', 0, 'John1', NULL, NULL, 'Doe1', NULL, 'john1doe1', 0, 'QNxrc8DrFlJ110KZIPh', 'G662RVR68fEVKbN8D8ts', '8733b4324e3bc7c857643c26c21e417e91f3b6f18a0f02ba4280eda3b994e83f17040ab7c07f28e83f43f9e0322079c1350bc5dfd30289ad3e63b19fd63a2c16', 'k3cF1', NULL, NULL, '2013-08-29 18:34:38')
3207
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3208
-  (0.1ms) SAVEPOINT active_record_1
3209
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-1' LIMIT 1
3210
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:38', 0, NULL, NULL, '2013-08-29 18:34:38', 1, 'Test Blog Post 1', '2013-08-29 18:34:38', '2013-08-29-test-blog-post-1', 1)
3211
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3212
-  (0.1ms) SAVEPOINT active_record_1
3213
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john2doe2@email.com' LIMIT 1
3214
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john2doe2' LIMIT 1
3215
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8e74f1cb34778f292ba95cdf2d4ef8d61945bd131c2aa08f25e3ee1548a0bb5cefb0d8364b67da085ea0534c231407d983ca3ea1e7c7a532ef9ee64957be8dd8' LIMIT 1
3216
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF2' LIMIT 1
3217
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:38', 'a237cb85e4f84257515b4a484667e8c5f00ce4f77d95a88d1687982310cb8ca7706328104bdb8e58338a85638a807cae2cca99672f9ee1634cdd9dd091ab9358', NULL, NULL, 'john2doe2@email.com', 0, 'John2', NULL, NULL, 'Doe2', NULL, 'john2doe2', 0, 'QY4WZNQH6kDAUfJAxlfU', '8CGCGSqfY3I1eyWsLFM', '8e74f1cb34778f292ba95cdf2d4ef8d61945bd131c2aa08f25e3ee1548a0bb5cefb0d8364b67da085ea0534c231407d983ca3ea1e7c7a532ef9ee64957be8dd8', 'k3cF2', NULL, NULL, '2013-08-29 18:34:38')
3218
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3219
-  (0.1ms) SAVEPOINT active_record_1
3220
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-2' LIMIT 1
3221
- SQL (0.3ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:38', 0, NULL, NULL, '2013-08-29 18:34:38', 2, 'Test Blog Post 2', '2013-08-29 18:34:38', '2013-08-29-test-blog-post-2', 1)
3222
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3223
- Processing by BlogController#index as HTML
3224
- Rendered /Users/gregwoods/Source/twice_baked/tb_blog/app/views/blog/index.html.erb within layouts/application (2.2ms)
3225
- Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.0ms)
3226
-  (0.3ms) SELECT COUNT(*) FROM `spud_posts` WHERE `spud_posts`.`is_news` = 0 AND (visible = 1 AND published_at <= '2013-08-29 18:34:38')
3227
-  (0.9ms) ROLLBACK
3228
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3229
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3230
-  (0.1ms) SELECT DATABASE() as db
3231
-  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_blog_test'
3232
-  (0.7ms) TRUNCATE TABLE `spud_admin_permissions`;
3233
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3234
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3235
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
3236
-  (0.8ms) TRUNCATE TABLE `spud_post_sites`;
3237
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
3238
-  (0.7ms) TRUNCATE TABLE `spud_user_settings`;
3239
-  (0.9ms) TRUNCATE TABLE `spud_users`;
3240
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3241
-  (0.0ms) BEGIN
3242
-  (0.1ms) SAVEPOINT active_record_1
3243
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john3doe3@email.com' LIMIT 1
3244
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john3doe3' LIMIT 1
3245
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4d5f9e77a47580b0a99d600eea16ca579f5a7056e6c6f54576b5c2c8c2cc1c896bd2d74e665cded7c33952bc9d10172c491c2edf351ece8fe4a4460f23a3d4aa' LIMIT 1
3246
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF3' LIMIT 1
3247
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:39', 'bb96c6b5079e86fb25f9f0777e97c93ba77a2dee768bd1daf7410ef31d498bfa3a5abf6459468cf809465bde6926bf67666e71b8ecc6143f1d79cb9b0e98116b', '2013-08-29 18:34:39', '0.0.0.0', 'john3doe3@email.com', 0, 'John3', NULL, NULL, 'Doe3', '2013-08-29 18:34:39', 'john3doe3', 1, '7pAB7e23aBWnBgyHLh2', 'j9SHKCgalsrnfuAER', '4d5f9e77a47580b0a99d600eea16ca579f5a7056e6c6f54576b5c2c8c2cc1c896bd2d74e665cded7c33952bc9d10172c491c2edf351ece8fe4a4460f23a3d4aa', 'k3cF3', NULL, NULL, '2013-08-29 18:34:39')
3248
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3249
-  (0.1ms) SAVEPOINT active_record_1
3250
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-3' LIMIT 1
3251
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:39', 0, NULL, NULL, '2013-08-29 18:34:38', 1, 'Test Blog Post 3', '2013-08-29 18:34:39', '2013-08-29-test-blog-post-3', 1)
3252
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3253
- Processing by BlogController#create_comment as HTML
3254
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-3"}
3255
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-3' LIMIT 1
3256
-  (0.1ms) SAVEPOINT active_record_1
3257
- SQL (0.3ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:34:39', 'http://test.host/blog/2013-08-29-test-blog-post-3', NULL, NULL, 1, '2013-08-29 18:34:39', 'Rails Testing', '0.0.0.0')
3258
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3259
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3260
- Completed 200 OK in 38ms (Views: 1.4ms | ActiveRecord: 2.4ms)
3261
- SpudPostComment Load (0.3ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1
3262
-  (0.3ms) ROLLBACK
3263
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3264
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
3265
-  (0.7ms) TRUNCATE TABLE `spud_admin_permissions`;
3266
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3267
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3268
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
3269
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3270
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
3271
-  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
3272
-  (1.1ms) TRUNCATE TABLE `spud_users`;
3273
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3274
-  (0.1ms) BEGIN
3275
-  (0.1ms) SAVEPOINT active_record_1
3276
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john4doe4@email.com' LIMIT 1
3277
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john4doe4' LIMIT 1
3278
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b677789ff52832aa80c5827e5ff4776ace7da9b7076607775868f2c479e9c74f59df6e5b66e3334a6f00ad31d3a695a4ddae8ef7b7761b03dd14a8263fe87275' LIMIT 1
3279
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF4' LIMIT 1
3280
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:39', 'c87e271562f9fe98bcbe94bde8d3c5605439b948211d37564099f3dca1e6d96330ab4cbd33e3907401f2c85542f23711f8ae6cfea1fe884bca8a21e6baea7fd2', '2013-08-29 18:34:39', '0.0.0.0', 'john4doe4@email.com', 0, 'John4', NULL, NULL, 'Doe4', '2013-08-29 18:34:39', 'john4doe4', 1, 'FegXlszvjkDwNZ0mTJz', 'KfirKdP53kCwmLMjlifI', 'b677789ff52832aa80c5827e5ff4776ace7da9b7076607775868f2c479e9c74f59df6e5b66e3334a6f00ad31d3a695a4ddae8ef7b7761b03dd14a8263fe87275', 'k3cF4', NULL, NULL, '2013-08-29 18:34:39')
3281
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3282
-  (0.1ms) SAVEPOINT active_record_1
3283
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-4' LIMIT 1
3284
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:39', 0, NULL, NULL, '2013-08-29 18:34:38', 1, 'Test Blog Post 4', '2013-08-29 18:34:39', '2013-08-29-test-blog-post-4', 1)
3285
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3286
- Processing by BlogController#create_comment as HTML
3287
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-4"}
3288
- SpudPost Load (0.4ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-4' LIMIT 1
3289
-  (0.1ms) SAVEPOINT active_record_1
3290
- SQL (0.3ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (1, 'Test User', 'Lorem Ipsum', '2013-08-29 18:34:39', 'http://test.host/blog/2013-08-29-test-blog-post-4', NULL, NULL, 1, '2013-08-29 18:34:39', 'Rails Testing', '0.0.0.0')
3291
- SQL (0.2ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3292
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3293
- Completed 200 OK in 7ms (Views: 1.1ms | ActiveRecord: 1.1ms)
3294
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
3295
-  (0.4ms) ROLLBACK
3296
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3297
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3298
-  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;
3299
-  (0.8ms) TRUNCATE TABLE `spud_post_categories`;
3300
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3301
-  (0.8ms) TRUNCATE TABLE `spud_post_comments`;
3302
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3303
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
3304
-  (0.6ms) TRUNCATE TABLE `spud_user_settings`;
3305
-  (1.0ms) TRUNCATE TABLE `spud_users`;
3306
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
3307
-  (0.1ms) BEGIN
3308
-  (0.1ms) SAVEPOINT active_record_1
3309
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'john5doe5@email.com' LIMIT 1
3310
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'john5doe5' LIMIT 1
3311
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5b71b5ba8d14b7ad63460f3df51dc67e76e683c82dbfe0cb9565c71b7928260e121c8244953d306f97633bff98e0db7405620230c6701b793b8b0bc9375f9b99' LIMIT 1
3312
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'k3cF5' LIMIT 1
3313
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-08-29 18:34:39', '6a551f746edaa07bc3b9f2e329a1e3329644b5f544c0a8a275be8d364b881b79c1baf90f60cc76e1f0aba829646ecb532e07a4e17f11ba70d48d37ed0ceeb1f9', '2013-08-29 18:34:39', '0.0.0.0', 'john5doe5@email.com', 0, 'John5', NULL, NULL, 'Doe5', '2013-08-29 18:34:39', 'john5doe5', 1, 'aEan0qxXQUdldNZBa54', 'T8nqdgKXureDaljAARo4', '5b71b5ba8d14b7ad63460f3df51dc67e76e683c82dbfe0cb9565c71b7928260e121c8244953d306f97633bff98e0db7405620230c6701b793b8b0bc9375f9b99', 'k3cF5', NULL, NULL, '2013-08-29 18:34:39')
3314
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3315
-  (0.1ms) SAVEPOINT active_record_1
3316
- SpudPost Exists (0.2ms) SELECT 1 AS one FROM `spud_posts` WHERE `spud_posts`.`url_name` = BINARY '2013-08-29-test-blog-post-5' LIMIT 1
3317
- SQL (0.2ms) INSERT INTO `spud_posts` (`comments_count`, `comments_enabled`, `content`, `content_format`, `content_processed`, `created_at`, `is_news`, `meta_description`, `meta_keywords`, `published_at`, `spud_user_id`, `title`, `updated_at`, `url_name`, `visible`) VALUES (0, 1, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'HTML', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2013-08-29 18:34:39', 0, NULL, NULL, '2013-08-29 18:34:38', 1, 'Test Blog Post 5', '2013-08-29 18:34:39', '2013-08-29-test-blog-post-5', 1)
3318
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3319
- Processing by BlogController#create_comment as HTML
3320
- Parameters: {"spud_post_comment"=>{"author"=>"Test User", "content"=>"Lorem Ipsum"}, "id"=>"2013-08-29-test-blog-post-5"}
3321
- SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE `spud_posts`.`url_name` = '2013-08-29-test-blog-post-5' LIMIT 1
3322
-  (0.1ms) SAVEPOINT active_record_1
3323
- SQL (0.2ms) INSERT INTO `spud_post_comments` (`approved`, `author`, `content`, `created_at`, `permalink`, `referrer`, `spam`, `spud_post_id`, `updated_at`, `user_agent`, `user_ip`) VALUES (0, 'Test User', 'Lorem Ipsum', '2013-08-29 18:34:39', 'http://test.host/blog/2013-08-29-test-blog-post-5', NULL, NULL, 1, '2013-08-29 18:34:39', 'Rails Testing', '0.0.0.0')
3324
- SQL (0.9ms) UPDATE `spud_posts` SET `comments_count` = COALESCE(`comments_count`, 0) + 1 WHERE `spud_posts`.`id` = 1
3325
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3326
- Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 1.7ms)
3327
- SpudPostComment Load (0.2ms) SELECT `spud_post_comments`.* FROM `spud_post_comments` WHERE `spud_post_comments`.`spud_post_id` = 1 LIMIT 1
3328
-  (0.6ms) ROLLBACK
3329
-  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
3330
-  (0.0ms) SET FOREIGN_KEY_CHECKS = 0
3331
-  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;
3332
-  (0.9ms) TRUNCATE TABLE `spud_post_categories`;
3333
-  (0.7ms) TRUNCATE TABLE `spud_post_categories_posts`;
3334
-  (0.5ms) TRUNCATE TABLE `spud_post_comments`;
3335
-  (0.7ms) TRUNCATE TABLE `spud_post_sites`;
3336
-  (1.0ms) TRUNCATE TABLE `spud_posts`;
3337
-  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
3338
-  (0.7ms) TRUNCATE TABLE `spud_users`;
3339
-  (0.1ms) SET FOREIGN_KEY_CHECKS = 1