has_moderated 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module HasModerated
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/has_moderated.rb CHANGED
@@ -160,7 +160,7 @@ module HasModerated
160
160
  moderations = []
161
161
  self.changes.each_pair do |att_name, values|
162
162
  att_name = att_name.to_s
163
- if self.class.moderated_attributes.include?(att_name)
163
+ if self.class.moderated_attributes.include?(att_name) && !(values[0].blank? && values[1].blank?)
164
164
  moderations.push(Moderation.create!({
165
165
  :moderatable_type => self.class.to_s,
166
166
  :moderatable_id => self.id,
@@ -1259,3 +1259,18 @@ Migrating to Testmig (20110908032414)
1259
1259
   (66.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1260
1260
   (66.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1261
1261
   (66.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1262
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1263
+  (0.1ms) select sqlite_version(*)
1264
+  (107.1ms) CREATE TABLE "moderations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "moderatable_id" integer, "moderatable_type" varchar(255) NOT NULL, "attr_name" varchar(60) NOT NULL, "attr_value" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
1265
+  (64.5ms) CREATE TABLE "subtasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime, "task_all_id" integer)
1266
+  (72.1ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) 
1267
+  (54.8ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1268
+  (83.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1269
+  (0.1ms) PRAGMA index_list("schema_migrations")
1270
+  (71.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1271
+  (0.3ms) SELECT version FROM "schema_migrations"
1272
+  (64.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1273
+  (66.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1274
+  (66.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1275
+  (66.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1276
+  (66.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
@@ -14217,3 +14217,311 @@ Migrating to AddTaskAllIdToSubtasks (20110908025606)
14217
14217
   (0.1ms) SELECT COUNT(*) FROM "subtasks"
14218
14218
  Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14219
14219
  Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
14220
+  (0.1ms) SAVEPOINT active_record_1
14221
+ SQL (79.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14223
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14224
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
14225
+  (0.1ms) SAVEPOINT active_record_1
14226
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14228
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14229
+  (0.1ms) SAVEPOINT active_record_1
14230
+ SQL (19.4ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14232
+  (0.0ms) SAVEPOINT active_record_1
14233
+ SQL (0.2ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14235
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
14236
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
14237
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14238
+  (0.0ms) SAVEPOINT active_record_1
14239
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14241
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14242
+  (0.1ms) SAVEPOINT active_record_1
14243
+ SQL (0.4ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14245
+  (0.0ms) SAVEPOINT active_record_1
14246
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14248
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14249
+  (0.1ms) SAVEPOINT active_record_1
14250
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14252
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14253
+  (0.1ms) SAVEPOINT active_record_1
14254
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14256
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14257
+  (0.1ms) SAVEPOINT active_record_1
14258
+ SQL (0.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14260
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14261
+  (0.1ms) SAVEPOINT active_record_1
14262
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14264
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
14265
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14266
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14267
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
14268
+  (0.1ms) SAVEPOINT active_record_1
14269
+  (0.2ms) UPDATE "tasks" SET "updated_at" = '2011-09-28 20:08:10.703510', "title" = 'Hollywood Hills' WHERE "tasks"."id" = 1
14270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14271
+  (0.0ms) SAVEPOINT active_record_1
14272
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 5]]
14273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14274
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14275
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14276
+  (0.0ms) SAVEPOINT active_record_1
14277
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14279
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14280
+  (0.1ms) SAVEPOINT active_record_1
14281
+ SQL (0.2ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14283
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14284
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
14285
+  (0.0ms) SAVEPOINT active_record_1
14286
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14287
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14288
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14289
+  (0.1ms) SAVEPOINT active_record_1
14290
+ SQL (0.5ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14292
+  (0.1ms) SAVEPOINT active_record_1
14293
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14295
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14296
+  (0.1ms) SAVEPOINT active_record_1
14297
+ SQL (0.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14299
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14300
+  (0.1ms) SAVEPOINT active_record_1
14301
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
14302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14303
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14304
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14305
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
14306
+  (0.1ms) SAVEPOINT active_record_1
14307
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - created_at: \n task_id: \n title: Hollywood Hills\n updated_at: \n id: \n task_all_id: \n desc: \n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14309
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14310
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
14311
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14312
+  (0.1ms) SAVEPOINT active_record_1
14313
+ SQL (0.5ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14315
+  (0.1ms) SAVEPOINT active_record_1
14316
+ SQL (0.5ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", 1], ["title", "Hollywood Hills"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14318
+  (0.1ms) SAVEPOINT active_record_1
14319
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14321
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
14322
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14323
+  (0.2ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14324
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
14325
+  (0.1ms) SAVEPOINT active_record_1
14326
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: Hollywood Hills\n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14328
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
14329
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14330
+  (0.1ms) SAVEPOINT active_record_1
14331
+ SQL (0.5ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", "Hollywood Hills"], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14333
+  (0.0ms) SAVEPOINT active_record_1
14334
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14336
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
14337
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14338
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14339
+  (0.1ms) SAVEPOINT active_record_1
14340
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14342
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14343
+  (0.1ms) SAVEPOINT active_record_1
14344
+ SQL (0.5ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14346
+  (0.1ms) SAVEPOINT active_record_1
14347
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14349
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14350
+  (0.1ms) SAVEPOINT active_record_1
14351
+ SQL (0.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "desc"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14353
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
14354
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14355
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14356
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
14357
+  (0.1ms) SAVEPOINT active_record_1
14358
+  (0.2ms) UPDATE "tasks" SET "updated_at" = '2011-09-28 20:08:10.827065', "desc" = 'Hollywood Hills' WHERE "tasks"."id" = 1
14359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14360
+  (0.0ms) SAVEPOINT active_record_1
14361
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
14362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14363
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
14364
+  (0.1ms) SAVEPOINT active_record_1
14365
+ SQL (0.5ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14367
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
14368
+  (0.1ms) SAVEPOINT active_record_1
14369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14370
+  (0.0ms) SAVEPOINT active_record_1
14371
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hollywood Hills\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - 1\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14373
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14374
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" LIMIT 1
14375
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT 1
14376
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14377
+  (0.1ms) SAVEPOINT active_record_1
14378
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Hollywood Hills"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14380
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
14381
+  (0.1ms) SAVEPOINT active_record_1
14382
+  (0.2ms) UPDATE "subtasks" SET "task_id" = 1, "updated_at" = '2011-09-28 20:08:10.863353' WHERE "subtasks"."id" = 1
14383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14384
+  (0.0ms) SAVEPOINT active_record_1
14385
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14387
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" LIMIT 1
14388
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
14389
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14390
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14391
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
14392
+  (0.1ms) SAVEPOINT active_record_1
14393
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n value: \n:associations: \n :subtasks: \n - created_at: \n task_id: \n title: Hollywood Hills\n updated_at: \n id: \n task_all_id: \n desc: \n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "TaskAll"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14395
+  (0.1ms) SELECT COUNT(*) FROM "task_alls"
14396
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
14397
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14398
+  (0.1ms) SAVEPOINT active_record_1
14399
+ SQL (0.5ms) INSERT INTO "task_alls" ("created_at", "title", "updated_at", "value") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["value", nil]]
14400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14401
+  (0.1ms) SAVEPOINT active_record_1
14402
+ SQL (0.4ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["task_all_id", 1], ["task_id", nil], ["title", "Hollywood Hills"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14404
+  (0.0ms) SAVEPOINT active_record_1
14405
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14406
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14407
+  (0.1ms) SELECT COUNT(*) FROM "task_alls"
14408
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
14409
+ TaskAll Load (0.1ms) SELECT "task_alls".* FROM "task_alls" LIMIT 1
14410
+ TaskAll Load (0.1ms) SELECT "task_alls".* FROM "task_alls" LIMIT 1
14411
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_all_id" = 1 LIMIT 1
14412
+  (0.0ms) SAVEPOINT active_record_1
14413
+ SQL (0.5ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14415
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
14416
+  (0.1ms) SAVEPOINT active_record_1
14417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14418
+  (0.0ms) SAVEPOINT active_record_1
14419
+ SQL (0.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hollywood Hills\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - 1\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14421
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14422
+ SQL (0.1ms) DELETE FROM "subtasks"
14423
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
14424
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14425
+  (0.1ms) SAVEPOINT active_record_1
14426
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Hollywood Hills"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14428
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
14429
+  (0.1ms) SAVEPOINT active_record_1
14430
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14432
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14433
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14434
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
14435
+  (0.0ms) SAVEPOINT active_record_1
14436
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14438
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14439
+  (0.1ms) SAVEPOINT active_record_1
14440
+ SQL (0.4ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14442
+  (0.0ms) SAVEPOINT active_record_1
14443
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14445
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14446
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14447
+  (0.1ms) SAVEPOINT active_record_1
14448
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "destroy"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14450
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
14451
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14452
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
14453
+  (0.1ms) SAVEPOINT active_record_1
14454
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" WHERE "moderations"."moderatable_id" = 1 AND "moderations"."moderatable_type" = 'Task'
14455
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
14456
+ SQL (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 1]]
14457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14458
+  (0.0ms) SAVEPOINT active_record_1
14459
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
14460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14461
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
14462
+  (0.0ms) SAVEPOINT active_record_1
14463
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14465
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14466
+  (0.1ms) SAVEPOINT active_record_1
14467
+ SQL (0.4ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14469
+  (0.0ms) SAVEPOINT active_record_1
14470
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14472
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14473
+  (0.1ms) SAVEPOINT active_record_1
14474
+ SQL (1.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", {:associations=>{:subtasks=>[{"created_at"=>nil, "task_id"=>1, "title"=>"Hollywood Hills", "updated_at"=>nil, "id"=>nil, "task_all_id"=>nil, "desc"=>nil}]}}], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14476
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14477
+  (0.1ms) SAVEPOINT active_record_1
14478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14479
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14480
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
14481
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14482
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
14483
+  (0.1ms) SAVEPOINT active_record_1
14484
+ SQL (0.4ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", 1], ["title", "Hollywood Hills"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14486
+  (0.0ms) SAVEPOINT active_record_1
14487
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
14488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14489
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14490
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
14491
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14492
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
14493
+  (0.0ms) SAVEPOINT active_record_1
14494
+ SQL (0.5ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Hollywood Hills"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14496
+  (0.0ms) SAVEPOINT active_record_1
14497
+ SQL (0.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:10 UTC +00:00]]
14498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14499
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14500
+  (0.1ms) SAVEPOINT active_record_1
14501
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 28 Sep 2011 20:08:11 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Wed, 28 Sep 2011 20:08:11 UTC +00:00]]
14502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14503
+  (0.0ms) SAVEPOINT active_record_1
14504
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
14505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14506
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14507
+  (0.1ms) SAVEPOINT active_record_1
14508
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", {:associations=>{:subtasks=>[1]}}], ["created_at", Wed, 28 Sep 2011 20:08:11 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Wed, 28 Sep 2011 20:08:11 UTC +00:00]]
14509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14510
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14511
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
14512
+  (0.1ms) SAVEPOINT active_record_1
14513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14514
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14515
+ Moderation Load (0.2ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
14516
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
14517
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
14518
+  (0.1ms) SAVEPOINT active_record_1
14519
+  (0.2ms) UPDATE "subtasks" SET "task_id" = 1, "updated_at" = '2011-09-28 20:08:11.018188' WHERE "subtasks"."id" = 1
14520
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14521
+  (0.0ms) SAVEPOINT active_record_1
14522
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
14523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14524
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
14525
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
14526
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
14527
+ Subtask Load (0.2ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_moderated
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Berdajs