acts_as_audited_collection 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rdoc/task'
4
+ require 'rspec/core/rake_task'
4
5
 
5
6
  desc 'Default: run unit tests.'
6
7
  task :default => :test
@@ -22,11 +23,17 @@ RDoc::Task.new(:rdoc) do |rdoc|
22
23
  rdoc.rdoc_files.include('lib/**/*.rb')
23
24
  end
24
25
 
26
+ RSpec::Core::RakeTask.new do |t|
27
+ t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
28
+ t.pattern = 'spec/*_spec.rb'
29
+ end
30
+
25
31
  begin
26
32
  require 'jeweler'
27
33
  Jeweler::Tasks.new do |gem|
28
34
  gem.name = 'acts_as_audited_collection'
29
- gem.summary = 'Adds auditing capabilities to ActiveRecord associations, in a similar fashion to acts_as_audited.'
35
+ gem.summary = 'Extends ActiveRecord to allow auditing of associations'
36
+ gem.description = 'Adds auditing capabilities to ActiveRecord associations, in a similar fashion to acts_as_audited.'
30
37
  gem.files = Dir[
31
38
  '[a-zA-Z]*',
32
39
  'generators/**/*',
@@ -35,7 +42,7 @@ begin
35
42
  'spec/**/*'
36
43
  ]
37
44
  gem.authors = ['Shaun Mangelsdorf']
38
- gem.version = '0.4'
45
+ gem.version = '0.4.1'
39
46
  end
40
47
  rescue LoadError
41
48
  puts "Jeweler could not be sourced"
@@ -77,7 +77,7 @@ module ActiveRecord
77
77
 
78
78
  def without_collection_audit
79
79
  result = nil
80
- Thread.current[:collection_audit_enabled] = returning(Thread.current[:collection_audit_enabled]) do
80
+ Thread.current[:collection_audit_enabled] = Thread.current[:collection_audit_enabled].tap do
81
81
  Thread.current[:collection_audit_enabled] = false
82
82
  result = yield if block_given?
83
83
  end
data/spec/debug.log CHANGED
@@ -578,3 +578,3014 @@
578
578
  TestSoftDeleteGrandchild Load (0.1ms) SELECT * FROM `test_soft_delete_grandchildren` WHERE (`test_soft_delete_grandchildren`.`id` = 5) 
579
579
  TestChild Load (0.1ms) SELECT * FROM `test_children` WHERE (`test_children`.`id` = 30) 
580
580
  SQL (48.3ms) ROLLBACK
581
+ SQL (1.5ms) SHOW TABLES
582
+ SQL (120.2ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
583
+ SQL (2.0ms) SHOW TABLES
584
+ SQL (97.4ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
585
+ SQL (1.3ms) SHOW TABLES
586
+ SQL (98.5ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
587
+ SQL (1.6ms) SHOW TABLES
588
+ SQL (86.9ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
589
+ SQL (1.6ms) SHOW TABLES
590
+ SQL (86.8ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
591
+ SQL (2.2ms) SHOW TABLES
592
+ SQL (41.6ms) DROP TABLE `collection_audits`
593
+ SQL (99.9ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
594
+ SQL (1.4ms) SHOW TABLES
595
+ SQL (0.3ms) SELECT version FROM `schema_migrations`
596
+ SQL (53.2ms) INSERT INTO `schema_migrations` (version) VALUES ('0')
597
+ SQL (1.4ms) SHOW TABLES
598
+ SQL (43.7ms) DROP TABLE `test_parents`
599
+ SQL (100.3ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
600
+ SQL (2.2ms) SHOW TABLES
601
+ SQL (52.5ms) DROP TABLE `test_children`
602
+ SQL (99.4ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
603
+ SQL (1.4ms) SHOW TABLES
604
+ SQL (53.8ms) DROP TABLE `test_grandchildren`
605
+ SQL (111.1ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
606
+ SQL (1.4ms) SHOW TABLES
607
+ SQL (42.8ms) DROP TABLE `test_great_grandchildren`
608
+ SQL (111.0ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
609
+ SQL (1.6ms) SHOW TABLES
610
+ SQL (53.6ms) DROP TABLE `test_soft_delete_grandchildren`
611
+ SQL (111.3ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
612
+ SQL (2.2ms) SHOW TABLES
613
+ SQL (52.0ms) DROP TABLE `collection_audits`
614
+ SQL (99.9ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
615
+ SQL (1.3ms) SHOW TABLES
616
+ SQL (0.2ms) SELECT version FROM `schema_migrations`
617
+ SQL (0.1ms) BEGIN
618
+ SQL (0.0ms) ROLLBACK
619
+ SQL (0.0ms) BEGIN
620
+ SQL (0.1ms) ROLLBACK
621
+ SQL (0.0ms) BEGIN
622
+ SQL (0.1ms) ROLLBACK
623
+ SQL (0.0ms) BEGIN
624
+ SQL (0.2ms) ROLLBACK
625
+ SQL (0.0ms) BEGIN
626
+ SQL (0.0ms) ROLLBACK
627
+ SQL (0.0ms) BEGIN
628
+ SQL (0.0ms) ROLLBACK
629
+ SQL (0.0ms) BEGIN
630
+ SQL (0.0ms) ROLLBACK
631
+ SQL (0.0ms) BEGIN
632
+ SQL (0.0ms) ROLLBACK
633
+ SQL (0.0ms) BEGIN
634
+ SQL (0.0ms) ROLLBACK
635
+ SQL (0.0ms) BEGIN
636
+ SQL (0.0ms) ROLLBACK
637
+ SQL (0.0ms) BEGIN
638
+ SQL (0.1ms) SAVEPOINT active_record_1
639
+ SQL (1.3ms) SHOW TABLES
640
+ SQL (0.2ms) describe `test_parents`
641
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
642
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
643
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
644
+ SQL (0.1ms) SAVEPOINT active_record_1
645
+ SQL (0.3ms) describe `test_children`
646
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, 1, 'test child', NULL)
647
+ SQL (0.3ms) describe `collection_audits`
648
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 1, '2011-08-01 03:22:32', NULL, 'TestParent', 1, 'TestChild', NULL, 'add', 'test_children')
649
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestChild')
650
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
651
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
652
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
653
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 1 LIMIT 1
654
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
655
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 1 LIMIT 1
656
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
657
+ SQL (35.1ms) ROLLBACK
658
+ SQL (0.0ms) BEGIN
659
+ SQL (0.0ms) SAVEPOINT active_record_1
660
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
661
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
662
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
663
+ SQL (0.0ms) SAVEPOINT active_record_1
664
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, NULL, 'test child', NULL)
665
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
666
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
667
+ SQL (49.0ms) ROLLBACK
668
+ SQL (0.0ms) BEGIN
669
+ SQL (0.1ms) SAVEPOINT active_record_1
670
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, NULL, 'test child', NULL)
671
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
672
+ SQL (0.1ms) SAVEPOINT active_record_1
673
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
674
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
675
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
676
+ SQL (0.0ms) SAVEPOINT active_record_1
677
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 3, '2011-08-01 03:22:32', NULL, 'TestParent', 3, 'TestChild', NULL, 'add', 'test_children')
678
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:32', `test_parent_id` = 3 WHERE `test_children`.`id` = 3
679
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
680
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
681
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
682
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 3 LIMIT 1
683
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
684
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 3 LIMIT 1
685
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
686
+ SQL (39.7ms) ROLLBACK
687
+ SQL (0.0ms) BEGIN
688
+ SQL (0.0ms) SAVEPOINT active_record_1
689
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, NULL, 'test child', NULL)
690
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
691
+ SQL (0.1ms) SAVEPOINT active_record_1
692
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
693
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
694
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
695
+ SQL (0.0ms) SAVEPOINT active_record_1
696
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:32', `name` = 'new name' WHERE `test_children`.`id` = 4
697
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
698
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
699
+ SQL (47.5ms) ROLLBACK
700
+ SQL (0.1ms) BEGIN
701
+ SQL (0.1ms) SAVEPOINT active_record_1
702
+ AREL (0.3ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
703
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
704
+ SQL (0.1ms) SAVEPOINT active_record_1
705
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, 5, 'test child', NULL)
706
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 5, '2011-08-01 03:22:32', NULL, 'TestParent', 5, 'TestChild', NULL, 'add', 'test_children')
707
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestChild')
708
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
709
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
710
+ SQL (0.1ms) SAVEPOINT active_record_1
711
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 5, '2011-08-01 03:22:32', NULL, 'TestParent', 5, 'TestChild', NULL, 'remove', 'test_children')
712
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:32', `test_parent_id` = NULL WHERE `test_children`.`id` = 5
713
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
714
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
715
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
716
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 5 LIMIT 1
717
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
718
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 5 LIMIT 1
719
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
720
+ SQL (30.2ms) ROLLBACK
721
+ SQL (0.0ms) BEGIN
722
+ SQL (0.0ms) SAVEPOINT active_record_1
723
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
724
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
725
+ SQL (0.0ms) SAVEPOINT active_record_1
726
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, 6, 'test child', NULL)
727
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 6, '2011-08-01 03:22:32', NULL, 'TestParent', 6, 'TestChild', NULL, 'add', 'test_children')
728
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 6 AND `collection_audits`.child_record_type = 'TestChild')
729
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
730
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
731
+ SQL (0.1ms) SAVEPOINT active_record_1
732
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 6
733
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 6, '2011-08-01 03:22:32', NULL, 'TestParent', 6, 'TestChild', NULL, 'remove', 'test_children')
734
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
735
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
736
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
737
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
738
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 6 LIMIT 1
739
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
740
+ SQL (38.9ms) ROLLBACK
741
+ SQL (0.1ms) BEGIN
742
+ SQL (0.0ms) SAVEPOINT active_record_1
743
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, NULL, 'test child', NULL)
744
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
745
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
746
+ SQL (0.1ms) SAVEPOINT active_record_1
747
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 7
748
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
749
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
750
+ SQL (38.0ms) ROLLBACK
751
+ SQL (0.0ms) BEGIN
752
+ SQL (0.0ms) SAVEPOINT active_record_1
753
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
754
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
755
+ SQL (0.0ms) SAVEPOINT active_record_1
756
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, 7, 'test child', NULL)
757
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 8, '2011-08-01 03:22:32', NULL, 'TestParent', 7, 'TestChild', NULL, 'add', 'test_children')
758
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 8 AND `collection_audits`.child_record_type = 'TestChild')
759
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
760
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
761
+ SQL (36.0ms) ROLLBACK
762
+ SQL (0.1ms) BEGIN
763
+ SQL (0.1ms) SAVEPOINT active_record_1
764
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
765
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
766
+ SQL (0.2ms) SAVEPOINT active_record_1
767
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, 8, 'test child', NULL)
768
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 9, '2011-08-01 03:22:32', NULL, 'TestParent', 8, 'TestChild', NULL, 'add', 'test_children')
769
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 9 AND `collection_audits`.child_record_type = 'TestChild')
770
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
771
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
772
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 8 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
773
+ SQL (40.9ms) ROLLBACK
774
+ SQL (0.0ms) BEGIN
775
+ SQL (0.0ms) SAVEPOINT active_record_1
776
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:32', '2011-08-01 03:22:32')
777
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
778
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
779
+ SQL (0.1ms) SAVEPOINT active_record_1
780
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (9, '2011-08-01 03:22:32', '2011-08-01 03:22:32', NULL, NULL, NULL, 'test child', NULL)
781
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 10, '2011-08-01 03:22:32', NULL, 'TestParent', 9, 'TestChild', NULL, 'add', 'other_test_children')
782
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 10 AND `collection_audits`.child_record_type = 'TestChild')
783
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
784
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
785
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.other_test_parent_id = 9)
786
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.test_parent_id = 9)
787
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
788
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
789
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
790
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 10 LIMIT 1
791
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
792
+ SQL (44.3ms) ROLLBACK
793
+ SQL (0.0ms) BEGIN
794
+ SQL (0.0ms) SAVEPOINT active_record_1
795
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
796
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
797
+ SQL (0.0ms) SAVEPOINT active_record_1
798
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, 10, 'test child', NULL)
799
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 11, '2011-08-01 03:22:33', NULL, 'TestParent', 10, 'TestChild', NULL, 'add', 'test_children')
800
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 11 AND `collection_audits`.child_record_type = 'TestChild')
801
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
802
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
803
+ SQL (0.0ms) SAVEPOINT active_record_1
804
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 11, '2011-08-01 03:22:33', NULL, 'TestParent', 10, 'TestChild', NULL, 'remove', 'test_children')
805
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 11, '2011-08-01 03:22:33', NULL, 'TestParent', 10, 'TestChild', NULL, 'add', 'other_test_children')
806
+ AREL (0.2ms) UPDATE `test_children` SET `other_test_parent_id` = 10, `updated_at` = '2011-08-01 03:22:33', `test_parent_id` = NULL WHERE `test_children`.`id` = 11
807
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
808
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
809
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
810
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
811
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
812
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
813
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
814
+ SQL (34.0ms) ROLLBACK
815
+ SQL (0.1ms) BEGIN
816
+ SQL (0.1ms) SAVEPOINT active_record_1
817
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
818
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
819
+ SQL (0.1ms) SAVEPOINT active_record_1
820
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, 11, 'test child', NULL)
821
+ AREL (0.3ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 12, '2011-08-01 03:22:33', NULL, 'TestParent', 11, 'TestChild', NULL, 'add', 'test_children')
822
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 12 AND `collection_audits`.child_record_type = 'TestChild')
823
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
824
+ SQL (0.1ms) SAVEPOINT active_record_1
825
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('another parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
826
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
827
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
828
+ SQL (0.1ms) SAVEPOINT active_record_1
829
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 12, '2011-08-01 03:22:33', NULL, 'TestParent', 11, 'TestChild', NULL, 'remove', 'test_children')
830
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 12, '2011-08-01 03:22:33', NULL, 'TestParent', 12, 'TestChild', NULL, 'add', 'test_children')
831
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:33', `test_parent_id` = 12 WHERE `test_children`.`id` = 12
832
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
833
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
834
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 11 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
835
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
836
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
837
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 12 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
838
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
839
+ SQL (53.3ms) ROLLBACK
840
+ SQL (0.1ms) BEGIN
841
+ SQL (0.1ms) SAVEPOINT active_record_1
842
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
843
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
844
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
845
+ SQL (0.0ms) SAVEPOINT active_record_1
846
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, 13, 'test child', NULL)
847
+ SQL (0.2ms) RELEASE SAVEPOINT active_record_1
848
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
849
+ SQL (102.0ms) ROLLBACK
850
+ SQL (0.1ms) BEGIN
851
+ SQL (0.1ms) SAVEPOINT active_record_1
852
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
853
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
854
+ SQL (0.1ms) SAVEPOINT active_record_1
855
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, 14, 'test child', NULL)
856
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
857
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
858
+ SQL (0.0ms) SAVEPOINT active_record_1
859
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, 14, 'another child', NULL)
860
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 15, '2011-08-01 03:22:33', NULL, 'TestParent', 14, 'TestChild', NULL, 'add', 'test_children')
861
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 15 AND `collection_audits`.child_record_type = 'TestChild')
862
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
863
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
864
+ SQL (42.2ms) ROLLBACK
865
+ SQL (0.1ms) BEGIN
866
+ SQL (0.0ms) SAVEPOINT active_record_1
867
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
868
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
869
+ SQL (0.0ms) SAVEPOINT active_record_1
870
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (15, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, NULL, 'test child', NULL)
871
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 16, '2011-08-01 03:22:33', NULL, 'TestParent', 15, 'TestChild', NULL, 'add', 'other_test_children')
872
+ CollectionAudit Load (0.3ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 16 AND `collection_audits`.child_record_type = 'TestChild')
873
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
874
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
875
+ SQL (0.1ms) SAVEPOINT active_record_1
876
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 16, '2011-08-01 03:22:33', NULL, 'TestParent', 15, 'TestChild', NULL, 'modify', 'other_test_children')
877
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:33', `name` = 'new name' WHERE `test_children`.`id` = 16
878
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
879
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
880
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
881
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 16 LIMIT 1
882
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
883
+ TestParent Load (0.2ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 15 LIMIT 1
884
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
885
+ SQL (38.1ms) ROLLBACK
886
+ SQL (0.1ms) BEGIN
887
+ SQL (0.1ms) SAVEPOINT active_record_1
888
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
889
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
890
+ SQL (0.1ms) SAVEPOINT active_record_1
891
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, NULL, 'test child', 16)
892
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 17, '2011-08-01 03:22:33', NULL, 'TestParent', 16, 'TestChild', NULL, 'add', 'test_children_with_only')
893
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 17 AND `collection_audits`.child_record_type = 'TestChild')
894
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
895
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
896
+ SQL (0.1ms) SAVEPOINT active_record_1
897
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 17, '2011-08-01 03:22:33', NULL, 'TestParent', 16, 'TestChild', NULL, 'modify', 'test_children_with_only')
898
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:33', `name` = 'new name' WHERE `test_children`.`id` = 17
899
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
900
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
901
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
902
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 17 LIMIT 1
903
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
904
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 16 LIMIT 1
905
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
906
+ SQL (43.1ms) ROLLBACK
907
+ SQL (0.1ms) BEGIN
908
+ SQL (0.0ms) SAVEPOINT active_record_1
909
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
910
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
911
+ SQL (0.1ms) SAVEPOINT active_record_1
912
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, NULL, 'test child', 17)
913
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 18, '2011-08-01 03:22:33', NULL, 'TestParent', 17, 'TestChild', NULL, 'add', 'test_children_with_only')
914
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 18 AND `collection_audits`.child_record_type = 'TestChild')
915
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
916
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
917
+ SQL (0.1ms) SAVEPOINT active_record_1
918
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:33', `description` = 'new description' WHERE `test_children`.`id` = 18
919
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
920
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
921
+ SQL (43.4ms) ROLLBACK
922
+ SQL (0.0ms) BEGIN
923
+ SQL (0.0ms) SAVEPOINT active_record_1
924
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
925
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
926
+ SQL (0.1ms) SAVEPOINT active_record_1
927
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', 18, NULL, NULL, 'test child', NULL)
928
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 19, '2011-08-01 03:22:33', NULL, 'TestParent', 18, 'TestChild', NULL, 'add', 'test_children_with_except')
929
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 19 AND `collection_audits`.child_record_type = 'TestChild')
930
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
931
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
932
+ SQL (0.1ms) SAVEPOINT active_record_1
933
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:33', `name` = 'new name' WHERE `test_children`.`id` = 19
934
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
935
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
936
+ SQL (51.2ms) ROLLBACK
937
+ SQL (0.1ms) BEGIN
938
+ SQL (0.1ms) SAVEPOINT active_record_1
939
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
940
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
941
+ SQL (0.1ms) SAVEPOINT active_record_1
942
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:33', '2011-08-01 03:22:33', 19, NULL, NULL, 'test child', NULL)
943
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 20, '2011-08-01 03:22:33', NULL, 'TestParent', 19, 'TestChild', NULL, 'add', 'test_children_with_except')
944
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 20 AND `collection_audits`.child_record_type = 'TestChild')
945
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
946
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
947
+ SQL (0.2ms) SAVEPOINT active_record_1
948
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 20, '2011-08-01 03:22:33', NULL, 'TestParent', 19, 'TestChild', NULL, 'modify', 'test_children_with_except')
949
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:22:33', `description` = 'new name' WHERE `test_children`.`id` = 20
950
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
951
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
952
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
953
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 20 LIMIT 1
954
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
955
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 19 LIMIT 1
956
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
957
+ SQL (45.8ms) ROLLBACK
958
+ SQL (0.1ms) BEGIN
959
+ SQL (0.1ms) SAVEPOINT active_record_1
960
+ AREL (0.3ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
961
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
962
+ SQL (0.1ms) SAVEPOINT active_record_1
963
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (20, '2011-08-01 03:22:33', '2011-08-01 03:22:33', NULL, NULL, NULL, 'test child', NULL)
964
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 21, '2011-08-01 03:22:33', NULL, 'TestParent', 20, 'TestChild', NULL, 'add', 'other_test_children')
965
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 21 AND `collection_audits`.child_record_type = 'TestChild')
966
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
967
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
968
+ SQL (0.1ms) SAVEPOINT active_record_1
969
+ SQL (0.3ms) describe `test_grandchildren`
970
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `test_child_id`, `updated_at`, `created_at`) VALUES ('test grandchild', 21, '2011-08-01 03:22:33', '2011-08-01 03:22:33')
971
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 1, '2011-08-01 03:22:33', NULL, 'TestChild', 21, 'TestGrandchild', NULL, 'add', 'test_grandchildren')
972
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
973
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 21, '2011-08-01 03:22:33', 26, 'TestParent', 20, 'TestChild', NULL, 'modify', 'other_test_children')
974
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGrandchild')
975
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
976
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
977
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 2
978
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 1 LIMIT 1
979
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
980
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
981
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 20 LIMIT 1
982
+ SQL (47.8ms) ROLLBACK
983
+ SQL (0.1ms) BEGIN
984
+ SQL (0.0ms) SAVEPOINT active_record_1
985
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:33', '2011-08-01 03:22:33')
986
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
987
+ SQL (0.1ms) SAVEPOINT active_record_1
988
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (21, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test child', NULL)
989
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 22, '2011-08-01 03:22:34', NULL, 'TestParent', 21, 'TestChild', NULL, 'add', 'other_test_children')
990
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 22 AND `collection_audits`.child_record_type = 'TestChild')
991
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
992
+ SQL (0.1ms) SAVEPOINT active_record_1
993
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (21, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'another child', NULL)
994
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 23, '2011-08-01 03:22:34', NULL, 'TestParent', 21, 'TestChild', NULL, 'add', 'other_test_children')
995
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 23 AND `collection_audits`.child_record_type = 'TestChild')
996
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
997
+ SQL (0.1ms) SAVEPOINT active_record_1
998
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `test_child_id`, `updated_at`, `created_at`) VALUES ('test grandchild', 22, '2011-08-01 03:22:34', '2011-08-01 03:22:34')
999
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 2, '2011-08-01 03:22:34', NULL, 'TestChild', 22, 'TestGrandchild', NULL, 'add', 'test_grandchildren')
1000
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1001
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 22, '2011-08-01 03:22:34', 30, 'TestParent', 21, 'TestChild', NULL, 'modify', 'other_test_children')
1002
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 2 AND `collection_audits`.child_record_type = 'TestGrandchild')
1003
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1004
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1005
+ SQL (0.0ms) SAVEPOINT active_record_1
1006
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 2, '2011-08-01 03:22:34', NULL, 'TestChild', 22, 'TestGrandchild', NULL, 'remove', 'test_grandchildren')
1007
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1008
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 22, '2011-08-01 03:22:34', 32, 'TestParent', 21, 'TestChild', NULL, 'modify', 'other_test_children')
1009
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 2, '2011-08-01 03:22:34', NULL, 'TestChild', 23, 'TestGrandchild', NULL, 'add', 'test_grandchildren')
1010
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
1011
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 23, '2011-08-01 03:22:34', 34, 'TestParent', 21, 'TestChild', NULL, 'modify', 'other_test_children')
1012
+ AREL (0.1ms) UPDATE `test_grandchildren` SET `test_child_id` = 23, `updated_at` = '2011-08-01 03:22:34' WHERE `test_grandchildren`.`id` = 2
1013
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1014
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1015
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 4
1016
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
1017
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1018
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1019
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
1020
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
1021
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
1022
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
1023
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
1024
+ SQL (62.3ms) ROLLBACK
1025
+ SQL (0.1ms) BEGIN
1026
+ SQL (0.1ms) SAVEPOINT active_record_1
1027
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:34', '2011-08-01 03:22:34')
1028
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1029
+ SQL (0.1ms) SAVEPOINT active_record_1
1030
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (22, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test child', NULL)
1031
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 24, '2011-08-01 03:22:34', NULL, 'TestParent', 22, 'TestChild', NULL, 'add', 'other_test_children')
1032
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 24 AND `collection_audits`.child_record_type = 'TestChild')
1033
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1034
+ SQL (0.1ms) SAVEPOINT active_record_1
1035
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `test_child_id`, `updated_at`, `created_at`) VALUES ('test grandchild', 24, '2011-08-01 03:22:34', '2011-08-01 03:22:34')
1036
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 3, '2011-08-01 03:22:34', NULL, 'TestChild', 24, 'TestGrandchild', NULL, 'add', 'test_grandchildren')
1037
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1038
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 24, '2011-08-01 03:22:34', 37, 'TestParent', 22, 'TestChild', NULL, 'modify', 'other_test_children')
1039
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 3 AND `collection_audits`.child_record_type = 'TestGrandchild')
1040
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1041
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1042
+ SQL (0.1ms) SAVEPOINT active_record_1
1043
+ SQL (0.3ms) describe `test_great_grandchildren`
1044
+ AREL (0.1ms) INSERT INTO `test_great_grandchildren` (`created_at`, `updated_at`, `test_grandchild_id`, `name`) VALUES ('2011-08-01 03:22:34', '2011-08-01 03:22:34', 3, 'test great-grandchild')
1045
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 1, '2011-08-01 03:22:34', NULL, 'TestGrandchild', 3, 'TestGreatGrandchild', NULL, 'add', 'test_great_grandchildren')
1046
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
1047
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 3, '2011-08-01 03:22:34', 39, 'TestChild', 24, 'TestGrandchild', NULL, 'modify', 'test_grandchildren')
1048
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1049
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 24, '2011-08-01 03:22:34', 40, 'TestParent', 22, 'TestChild', NULL, 'modify', 'other_test_children')
1050
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGreatGrandchild')
1051
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1052
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1053
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 3
1054
+ TestGreatGrandchild Load (0.1ms) SELECT `test_great_grandchildren`.* FROM `test_great_grandchildren` WHERE `test_great_grandchildren`.`id` = 1 LIMIT 1
1055
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
1056
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
1057
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1058
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1059
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 22 LIMIT 1
1060
+ SQL (83.3ms) ROLLBACK
1061
+ SQL (0.0ms) BEGIN
1062
+ SQL (0.0ms) SAVEPOINT active_record_1
1063
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:34', '2011-08-01 03:22:34')
1064
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1065
+ SQL (0.0ms) SAVEPOINT active_record_1
1066
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (23, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test child', NULL)
1067
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 25, '2011-08-01 03:22:34', NULL, 'TestParent', 23, 'TestChild', NULL, 'add', 'other_test_children')
1068
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 25 AND `collection_audits`.child_record_type = 'TestChild')
1069
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1070
+ SQL (0.0ms) SAVEPOINT active_record_1
1071
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `test_child_id`, `updated_at`, `created_at`) VALUES ('test grandchild', 25, '2011-08-01 03:22:34', '2011-08-01 03:22:34')
1072
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 4, '2011-08-01 03:22:34', NULL, 'TestChild', 25, 'TestGrandchild', NULL, 'add', 'test_grandchildren')
1073
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 25 LIMIT 1
1074
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 25, '2011-08-01 03:22:34', 43, 'TestParent', 23, 'TestChild', NULL, 'modify', 'other_test_children')
1075
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 4 AND `collection_audits`.child_record_type = 'TestGrandchild')
1076
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1077
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 23 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children')) ORDER BY collection_audits.id DESC LIMIT 1
1078
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 25 AND `collection_audits`.parent_record_type = 'TestChild' AND (association = 'test_grandchildren')) ORDER BY collection_audits.id DESC LIMIT 1
1079
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 43 LIMIT 1
1080
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_audit_id = 43)
1081
+ SQL (51.3ms) ROLLBACK
1082
+ SQL (0.1ms) BEGIN
1083
+ SQL (0.1ms) SAVEPOINT active_record_1
1084
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test parent', NULL)
1085
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1086
+ SQL (0.1ms) SAVEPOINT active_record_1
1087
+ SQL (0.3ms) describe `test_soft_delete_grandchildren`
1088
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`updated_at`, `deleted`, `test_child_id`, `created_at`, `name`) VALUES ('2011-08-01 03:22:34', NULL, 26, '2011-08-01 03:22:34', 'test child')
1089
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 1, '2011-08-01 03:22:34', NULL, 'TestChild', 26, 'TestSoftDeleteGrandchild', NULL, 'add', 'test_soft_delete_grandchildren')
1090
+ TestChild Load (0.7ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
1091
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
1092
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1093
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1094
+ SQL (0.1ms) SAVEPOINT active_record_1
1095
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 1, '2011-08-01 03:22:34', NULL, 'TestChild', 26, 'TestSoftDeleteGrandchild', NULL, 'remove', 'test_soft_delete_grandchildren')
1096
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
1097
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:22:34', `deleted` = 1 WHERE `test_soft_delete_grandchildren`.`id` = 1
1098
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1099
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1100
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1101
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1102
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
1103
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1104
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 1 LIMIT 1
1105
+ SQL (46.9ms) ROLLBACK
1106
+ SQL (0.1ms) BEGIN
1107
+ SQL (0.1ms) SAVEPOINT active_record_1
1108
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test parent', NULL)
1109
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1110
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
1111
+ SQL (0.1ms) SAVEPOINT active_record_1
1112
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`updated_at`, `deleted`, `test_child_id`, `created_at`, `name`) VALUES ('2011-08-01 03:22:34', 1, 27, '2011-08-01 03:22:34', 'test child')
1113
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1114
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1115
+ SQL (46.3ms) ROLLBACK
1116
+ SQL (0.1ms) BEGIN
1117
+ SQL (0.1ms) SAVEPOINT active_record_1
1118
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test parent', NULL)
1119
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1120
+ SQL (0.1ms) SAVEPOINT active_record_1
1121
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`updated_at`, `deleted`, `test_child_id`, `created_at`, `name`) VALUES ('2011-08-01 03:22:34', 1, 28, '2011-08-01 03:22:34', 'test child')
1122
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1123
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1124
+ SQL (0.0ms) SAVEPOINT active_record_1
1125
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:22:34', `name` = 'test child with new name' WHERE `test_soft_delete_grandchildren`.`id` = 3
1126
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1127
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
1128
+ SQL (45.3ms) ROLLBACK
1129
+ SQL (0.0ms) BEGIN
1130
+ SQL (0.1ms) SAVEPOINT active_record_1
1131
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (NULL, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test parent', NULL)
1132
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1133
+ SQL (0.1ms) SAVEPOINT active_record_1
1134
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`updated_at`, `deleted`, `test_child_id`, `created_at`, `name`) VALUES ('2011-08-01 03:22:34', 1, 29, '2011-08-01 03:22:34', 'test child')
1135
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1136
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1137
+ SQL (0.0ms) SAVEPOINT active_record_1
1138
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 4, '2011-08-01 03:22:34', NULL, 'TestChild', 29, 'TestSoftDeleteGrandchild', NULL, 'add', 'test_soft_delete_grandchildren')
1139
+ TestChild Load (0.4ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
1140
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:22:34', `deleted` = 0 WHERE `test_soft_delete_grandchildren`.`id` = 4
1141
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1142
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1143
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1144
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1145
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
1146
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1147
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 4 LIMIT 1
1148
+ SQL (44.9ms) ROLLBACK
1149
+ SQL (0.0ms) BEGIN
1150
+ SQL (0.1ms) SAVEPOINT active_record_1
1151
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:22:34', '2011-08-01 03:22:34')
1152
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1153
+ SQL (0.0ms) SAVEPOINT active_record_1
1154
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `updated_at`, `created_at`, `test_parent_with_except_id`, `description`, `test_parent_id`, `name`, `test_parent_with_only_id`) VALUES (24, '2011-08-01 03:22:34', '2011-08-01 03:22:34', NULL, NULL, NULL, 'test child', NULL)
1155
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 30, '2011-08-01 03:22:34', NULL, 'TestParent', 24, 'TestChild', NULL, 'add', 'other_test_children')
1156
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 30 AND `collection_audits`.child_record_type = 'TestChild')
1157
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1158
+ SQL (0.0ms) SAVEPOINT active_record_1
1159
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`updated_at`, `deleted`, `test_child_id`, `created_at`, `name`) VALUES ('2011-08-01 03:22:34', NULL, 30, '2011-08-01 03:22:34', 'test grandchild')
1160
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 5, '2011-08-01 03:22:34', NULL, 'TestChild', 30, 'TestSoftDeleteGrandchild', NULL, 'add', 'test_soft_delete_grandchildren')
1161
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1162
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 30, '2011-08-01 03:22:34', 49, 'TestParent', 24, 'TestChild', NULL, 'modify', 'other_test_children')
1163
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
1164
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1165
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1166
+ SQL (0.1ms) SAVEPOINT active_record_1
1167
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 5, '2011-08-01 03:22:34', NULL, 'TestChild', 30, 'TestSoftDeleteGrandchild', NULL, 'remove', 'test_soft_delete_grandchildren')
1168
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1169
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_record_id`, `created_at`, `child_audit_id`, `parent_record_type`, `parent_record_id`, `child_record_type`, `user_id`, `action`, `association`) VALUES (NULL, 30, '2011-08-01 03:22:34', 51, 'TestParent', 24, 'TestChild', NULL, 'modify', 'other_test_children')
1170
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:22:34', `deleted` = 1 WHERE `test_soft_delete_grandchildren`.`id` = 5
1171
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1172
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1173
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1174
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1175
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 24 LIMIT 1
1176
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 51 LIMIT 1
1177
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 5 LIMIT 1
1178
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1179
+ SQL (44.6ms) ROLLBACK
1180
+ SQL (1.4ms) SHOW TABLES
1181
+ SQL (71.9ms) DROP TABLE `test_parents`
1182
+ SQL (111.1ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1183
+ SQL (1.4ms) SHOW TABLES
1184
+ SQL (53.9ms) DROP TABLE `test_children`
1185
+ SQL (88.9ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1186
+ SQL (1.4ms) SHOW TABLES
1187
+ SQL (164.8ms) DROP TABLE `test_grandchildren`
1188
+ SQL (88.9ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1189
+ SQL (1.6ms) SHOW TABLES
1190
+ SQL (42.5ms) DROP TABLE `test_great_grandchildren`
1191
+ SQL (89.1ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1192
+ SQL (2.0ms) SHOW TABLES
1193
+ SQL (52.2ms) DROP TABLE `test_soft_delete_grandchildren`
1194
+ SQL (100.2ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1195
+ SQL (4.1ms) SHOW TABLES
1196
+ SQL (49.4ms) DROP TABLE `collection_audits`
1197
+ SQL (110.8ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
1198
+ SQL (1.6ms) SHOW TABLES
1199
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
1200
+ SQL (1.3ms) SHOW TABLES
1201
+ SQL (63.3ms) DROP TABLE `test_parents`
1202
+ SQL (122.5ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1203
+ SQL (4.1ms) SHOW TABLES
1204
+ SQL (49.4ms) DROP TABLE `test_children`
1205
+ SQL (100.0ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1206
+ SQL (2.1ms) SHOW TABLES
1207
+ SQL (41.7ms) DROP TABLE `test_grandchildren`
1208
+ SQL (99.9ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1209
+ SQL (1.6ms) SHOW TABLES
1210
+ SQL (42.5ms) DROP TABLE `test_great_grandchildren`
1211
+ SQL (101.4ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1212
+ SQL (4.0ms) SHOW TABLES
1213
+ SQL (49.7ms) DROP TABLE `test_soft_delete_grandchildren`
1214
+ SQL (100.0ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1215
+ SQL (1.4ms) SHOW TABLES
1216
+ SQL (42.7ms) DROP TABLE `collection_audits`
1217
+ SQL (88.7ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
1218
+ SQL (1.3ms) SHOW TABLES
1219
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
1220
+ SQL (0.1ms) BEGIN
1221
+ SQL (0.1ms) ROLLBACK
1222
+ SQL (0.0ms) BEGIN
1223
+ SQL (0.0ms) ROLLBACK
1224
+ SQL (0.0ms) BEGIN
1225
+ SQL (0.1ms) ROLLBACK
1226
+ SQL (0.0ms) BEGIN
1227
+ SQL (0.1ms) ROLLBACK
1228
+ SQL (0.0ms) BEGIN
1229
+ SQL (0.0ms) ROLLBACK
1230
+ SQL (0.0ms) BEGIN
1231
+ SQL (0.0ms) ROLLBACK
1232
+ SQL (0.0ms) BEGIN
1233
+ SQL (0.0ms) ROLLBACK
1234
+ SQL (0.0ms) BEGIN
1235
+ SQL (0.1ms) ROLLBACK
1236
+ SQL (0.0ms) BEGIN
1237
+ SQL (0.0ms) ROLLBACK
1238
+ SQL (0.0ms) BEGIN
1239
+ SQL (0.1ms) ROLLBACK
1240
+ SQL (0.0ms) BEGIN
1241
+ SQL (0.1ms) SAVEPOINT active_record_1
1242
+ SQL (1.4ms) SHOW TABLES
1243
+ SQL (0.3ms) describe `test_parents`
1244
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1245
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1246
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
1247
+ SQL (0.1ms) SAVEPOINT active_record_1
1248
+ SQL (0.5ms) describe `test_children`
1249
+ AREL (0.2ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', 1, '2011-08-01 03:23:29')
1250
+ SQL (0.3ms) describe `collection_audits`
1251
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 1, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'add', NULL, 1)
1252
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestChild')
1253
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1254
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1255
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1256
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 1 LIMIT 1
1257
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1258
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 1 LIMIT 1
1259
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1260
+ SQL (46.4ms) ROLLBACK
1261
+ SQL (0.1ms) BEGIN
1262
+ SQL (0.1ms) SAVEPOINT active_record_1
1263
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1264
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1265
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1266
+ SQL (0.1ms) SAVEPOINT active_record_1
1267
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', NULL, '2011-08-01 03:23:29')
1268
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1269
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1270
+ SQL (47.9ms) ROLLBACK
1271
+ SQL (0.1ms) BEGIN
1272
+ SQL (0.1ms) SAVEPOINT active_record_1
1273
+ AREL (0.2ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', NULL, '2011-08-01 03:23:29')
1274
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1275
+ SQL (0.0ms) SAVEPOINT active_record_1
1276
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1277
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1278
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1279
+ SQL (0.1ms) SAVEPOINT active_record_1
1280
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 3, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'add', NULL, 3)
1281
+ AREL (0.2ms) UPDATE `test_children` SET `test_parent_id` = 3, `updated_at` = '2011-08-01 03:23:29' WHERE `test_children`.`id` = 3
1282
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1283
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1284
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1285
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 3 LIMIT 1
1286
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1287
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 3 LIMIT 1
1288
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1289
+ SQL (51.3ms) ROLLBACK
1290
+ SQL (0.0ms) BEGIN
1291
+ SQL (0.0ms) SAVEPOINT active_record_1
1292
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', NULL, '2011-08-01 03:23:29')
1293
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1294
+ SQL (0.1ms) SAVEPOINT active_record_1
1295
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1296
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1297
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1298
+ SQL (0.0ms) SAVEPOINT active_record_1
1299
+ AREL (0.1ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:23:29' WHERE `test_children`.`id` = 4
1300
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
1302
+ SQL (48.0ms) ROLLBACK
1303
+ SQL (0.0ms) BEGIN
1304
+ SQL (0.0ms) SAVEPOINT active_record_1
1305
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1306
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1307
+ SQL (0.1ms) SAVEPOINT active_record_1
1308
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', 5, '2011-08-01 03:23:29')
1309
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 5, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'add', NULL, 5)
1310
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestChild')
1311
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1312
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1313
+ SQL (0.0ms) SAVEPOINT active_record_1
1314
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 5, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'remove', NULL, 5)
1315
+ AREL (0.1ms) UPDATE `test_children` SET `test_parent_id` = NULL, `updated_at` = '2011-08-01 03:23:29' WHERE `test_children`.`id` = 5
1316
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1317
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1318
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1319
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 5 LIMIT 1
1320
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1321
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 5 LIMIT 1
1322
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1323
+ SQL (48.0ms) ROLLBACK
1324
+ SQL (0.1ms) BEGIN
1325
+ SQL (0.1ms) SAVEPOINT active_record_1
1326
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1327
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1328
+ SQL (0.0ms) SAVEPOINT active_record_1
1329
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', 6, '2011-08-01 03:23:29')
1330
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 6, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'add', NULL, 6)
1331
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 6 AND `collection_audits`.child_record_type = 'TestChild')
1332
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1333
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1334
+ SQL (0.0ms) SAVEPOINT active_record_1
1335
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 6
1336
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 6, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'remove', NULL, 6)
1337
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1338
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1339
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1340
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1341
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 6 LIMIT 1
1342
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1343
+ SQL (49.6ms) ROLLBACK
1344
+ SQL (0.1ms) BEGIN
1345
+ SQL (0.1ms) SAVEPOINT active_record_1
1346
+ AREL (0.2ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', NULL, '2011-08-01 03:23:29')
1347
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1348
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1349
+ SQL (0.0ms) SAVEPOINT active_record_1
1350
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 7
1351
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1352
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
1353
+ SQL (49.0ms) ROLLBACK
1354
+ SQL (0.1ms) BEGIN
1355
+ SQL (0.1ms) SAVEPOINT active_record_1
1356
+ AREL (0.4ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1357
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1358
+ SQL (0.2ms) SAVEPOINT active_record_1
1359
+ AREL (0.3ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', 7, '2011-08-01 03:23:29')
1360
+ AREL (0.3ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 8, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'add', NULL, 7)
1361
+ CollectionAudit Load (0.4ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 8 AND `collection_audits`.child_record_type = 'TestChild')
1362
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1363
+ CollectionAudit Load (0.3ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1364
+ SQL (47.0ms) ROLLBACK
1365
+ SQL (0.1ms) BEGIN
1366
+ SQL (0.0ms) SAVEPOINT active_record_1
1367
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:29', '2011-08-01 03:23:29')
1368
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1369
+ SQL (0.1ms) SAVEPOINT active_record_1
1370
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:29', 8, '2011-08-01 03:23:29')
1371
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 9, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:29', 'add', NULL, 8)
1372
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 9 AND `collection_audits`.child_record_type = 'TestChild')
1373
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1374
+ CollectionAudit Load (0.4ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1375
+ CollectionAudit Load (0.4ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 8 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1376
+ SQL (47.2ms) ROLLBACK
1377
+ SQL (0.1ms) BEGIN
1378
+ SQL (0.1ms) SAVEPOINT active_record_1
1379
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1380
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1381
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1382
+ SQL (0.1ms) SAVEPOINT active_record_1
1383
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 9, NULL, 'test child', NULL, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1384
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 10, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 9)
1385
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 10 AND `collection_audits`.child_record_type = 'TestChild')
1386
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1387
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1388
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.other_test_parent_id = 9)
1389
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.test_parent_id = 9)
1390
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
1391
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1392
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
1393
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 10 LIMIT 1
1394
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
1395
+ SQL (43.8ms) ROLLBACK
1396
+ SQL (0.0ms) BEGIN
1397
+ SQL (0.0ms) SAVEPOINT active_record_1
1398
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1399
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1400
+ SQL (0.0ms) SAVEPOINT active_record_1
1401
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:30', 10, '2011-08-01 03:23:30')
1402
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 11, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 10)
1403
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 11 AND `collection_audits`.child_record_type = 'TestChild')
1404
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1405
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1406
+ SQL (0.0ms) SAVEPOINT active_record_1
1407
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 11, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'remove', NULL, 10)
1408
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 11, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 10)
1409
+ AREL (0.2ms) UPDATE `test_children` SET `other_test_parent_id` = 10, `test_parent_id` = NULL, `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 11
1410
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1411
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1412
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1413
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
1414
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
1415
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
1416
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
1417
+ SQL (45.2ms) ROLLBACK
1418
+ SQL (0.1ms) BEGIN
1419
+ SQL (0.1ms) SAVEPOINT active_record_1
1420
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1421
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1422
+ SQL (0.0ms) SAVEPOINT active_record_1
1423
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:30', 11, '2011-08-01 03:23:30')
1424
+ AREL (0.3ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 12, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 11)
1425
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 12 AND `collection_audits`.child_record_type = 'TestChild')
1426
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1427
+ SQL (0.0ms) SAVEPOINT active_record_1
1428
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('another parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1429
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1430
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1431
+ SQL (0.1ms) SAVEPOINT active_record_1
1432
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 12, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'remove', NULL, 11)
1433
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 12, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 12)
1434
+ AREL (0.1ms) UPDATE `test_children` SET `test_parent_id` = 12, `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 12
1435
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1436
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1437
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 11 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1438
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
1439
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
1440
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 12 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1441
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
1442
+ SQL (43.9ms) ROLLBACK
1443
+ SQL (0.0ms) BEGIN
1444
+ SQL (0.0ms) SAVEPOINT active_record_1
1445
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1446
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1447
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1448
+ SQL (0.1ms) SAVEPOINT active_record_1
1449
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:30', 13, '2011-08-01 03:23:30')
1450
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1451
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1452
+ SQL (48.6ms) ROLLBACK
1453
+ SQL (0.0ms) BEGIN
1454
+ SQL (0.0ms) SAVEPOINT active_record_1
1455
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1456
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1457
+ SQL (0.0ms) SAVEPOINT active_record_1
1458
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', NULL, '2011-08-01 03:23:30', 14, '2011-08-01 03:23:30')
1459
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1460
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1461
+ SQL (0.0ms) SAVEPOINT active_record_1
1462
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'another child', NULL, '2011-08-01 03:23:30', 14, '2011-08-01 03:23:30')
1463
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children', 15, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 14)
1464
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 15 AND `collection_audits`.child_record_type = 'TestChild')
1465
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1466
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1467
+ SQL (42.1ms) ROLLBACK
1468
+ SQL (0.0ms) BEGIN
1469
+ SQL (0.0ms) SAVEPOINT active_record_1
1470
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1471
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1472
+ SQL (0.0ms) SAVEPOINT active_record_1
1473
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 15, NULL, 'test child', NULL, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1474
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 16, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 15)
1475
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 16 AND `collection_audits`.child_record_type = 'TestChild')
1476
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1477
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1478
+ SQL (0.0ms) SAVEPOINT active_record_1
1479
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 16, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'modify', NULL, 15)
1480
+ AREL (0.1ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 16
1481
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1482
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1483
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1484
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 16 LIMIT 1
1485
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1486
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 15 LIMIT 1
1487
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1488
+ SQL (47.3ms) ROLLBACK
1489
+ SQL (0.0ms) BEGIN
1490
+ SQL (0.0ms) SAVEPOINT active_record_1
1491
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1492
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1493
+ SQL (0.1ms) SAVEPOINT active_record_1
1494
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', 16, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1495
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children_with_only', 17, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 16)
1496
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 17 AND `collection_audits`.child_record_type = 'TestChild')
1497
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1498
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1499
+ SQL (0.0ms) SAVEPOINT active_record_1
1500
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children_with_only', 17, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'modify', NULL, 16)
1501
+ AREL (0.1ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 17
1502
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1503
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1504
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1505
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 17 LIMIT 1
1506
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1507
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 16 LIMIT 1
1508
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1509
+ SQL (146.6ms) ROLLBACK
1510
+ SQL (0.1ms) BEGIN
1511
+ SQL (0.1ms) SAVEPOINT active_record_1
1512
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1513
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1514
+ SQL (0.1ms) SAVEPOINT active_record_1
1515
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test child', 17, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1516
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children_with_only', 18, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 17)
1517
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 18 AND `collection_audits`.child_record_type = 'TestChild')
1518
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1519
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1520
+ SQL (0.0ms) SAVEPOINT active_record_1
1521
+ AREL (0.2ms) UPDATE `test_children` SET `description` = 'new description', `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 18
1522
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1523
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1524
+ SQL (42.1ms) ROLLBACK
1525
+ SQL (0.1ms) BEGIN
1526
+ SQL (0.0ms) SAVEPOINT active_record_1
1527
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1528
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1529
+ SQL (0.1ms) SAVEPOINT active_record_1
1530
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, 18, 'test child', NULL, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1531
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children_with_except', 19, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 18)
1532
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 19 AND `collection_audits`.child_record_type = 'TestChild')
1533
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1534
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1535
+ SQL (0.0ms) SAVEPOINT active_record_1
1536
+ AREL (0.1ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 19
1537
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1538
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1539
+ SQL (51.4ms) ROLLBACK
1540
+ SQL (0.1ms) BEGIN
1541
+ SQL (0.0ms) SAVEPOINT active_record_1
1542
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1543
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1544
+ SQL (0.0ms) SAVEPOINT active_record_1
1545
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, 19, 'test child', NULL, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1546
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children_with_except', 20, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 19)
1547
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 20 AND `collection_audits`.child_record_type = 'TestChild')
1548
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1549
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1550
+ SQL (0.1ms) SAVEPOINT active_record_1
1551
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_children_with_except', 20, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'modify', NULL, 19)
1552
+ AREL (0.1ms) UPDATE `test_children` SET `description` = 'new name', `updated_at` = '2011-08-01 03:23:30' WHERE `test_children`.`id` = 20
1553
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1554
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1555
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1556
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 20 LIMIT 1
1557
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1558
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 19 LIMIT 1
1559
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1560
+ SQL (47.9ms) ROLLBACK
1561
+ SQL (0.1ms) BEGIN
1562
+ SQL (0.1ms) SAVEPOINT active_record_1
1563
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:30', '2011-08-01 03:23:30')
1564
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1565
+ SQL (0.1ms) SAVEPOINT active_record_1
1566
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 20, NULL, 'test child', NULL, '2011-08-01 03:23:30', NULL, '2011-08-01 03:23:30')
1567
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 21, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'add', NULL, 20)
1568
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 21 AND `collection_audits`.child_record_type = 'TestChild')
1569
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1570
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1571
+ SQL (0.1ms) SAVEPOINT active_record_1
1572
+ SQL (0.2ms) describe `test_grandchildren`
1573
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`updated_at`, `created_at`, `name`, `test_child_id`) VALUES ('2011-08-01 03:23:30', '2011-08-01 03:23:30', 'test grandchild', 21)
1574
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 1, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:30', 'add', NULL, 21)
1575
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
1576
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 21, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:30', 'modify', 26, 20)
1577
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGrandchild')
1578
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1579
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1580
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 2
1581
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 1 LIMIT 1
1582
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
1583
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
1584
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 20 LIMIT 1
1585
+ SQL (51.3ms) ROLLBACK
1586
+ SQL (0.1ms) BEGIN
1587
+ SQL (0.2ms) SAVEPOINT active_record_1
1588
+ AREL (0.3ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:31', '2011-08-01 03:23:31')
1589
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1590
+ SQL (0.1ms) SAVEPOINT active_record_1
1591
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 21, NULL, 'test child', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1592
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 22, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'add', NULL, 21)
1593
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 22 AND `collection_audits`.child_record_type = 'TestChild')
1594
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1595
+ SQL (0.0ms) SAVEPOINT active_record_1
1596
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 21, NULL, 'another child', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1597
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 23, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'add', NULL, 21)
1598
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 23 AND `collection_audits`.child_record_type = 'TestChild')
1599
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1600
+ SQL (0.0ms) SAVEPOINT active_record_1
1601
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`updated_at`, `created_at`, `name`, `test_child_id`) VALUES ('2011-08-01 03:23:31', '2011-08-01 03:23:31', 'test grandchild', 22)
1602
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 2, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:31', 'add', NULL, 22)
1603
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1604
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 22, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 30, 21)
1605
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 2 AND `collection_audits`.child_record_type = 'TestGrandchild')
1606
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1607
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1608
+ SQL (0.1ms) SAVEPOINT active_record_1
1609
+ AREL (0.4ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 2, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:31', 'remove', NULL, 22)
1610
+ TestChild Load (0.4ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1611
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 22, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 32, 21)
1612
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 2, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:31', 'add', NULL, 23)
1613
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
1614
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 23, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 34, 21)
1615
+ AREL (0.1ms) UPDATE `test_grandchildren` SET `updated_at` = '2011-08-01 03:23:31', `test_child_id` = 23 WHERE `test_grandchildren`.`id` = 2
1616
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1617
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1618
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 4
1619
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
1620
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1621
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
1622
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
1623
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
1624
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
1625
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
1626
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
1627
+ SQL (148.6ms) ROLLBACK
1628
+ SQL (0.0ms) BEGIN
1629
+ SQL (0.0ms) SAVEPOINT active_record_1
1630
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:31', '2011-08-01 03:23:31')
1631
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1632
+ SQL (0.0ms) SAVEPOINT active_record_1
1633
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 22, NULL, 'test child', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1634
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 24, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'add', NULL, 22)
1635
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 24 AND `collection_audits`.child_record_type = 'TestChild')
1636
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1637
+ SQL (0.0ms) SAVEPOINT active_record_1
1638
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`updated_at`, `created_at`, `name`, `test_child_id`) VALUES ('2011-08-01 03:23:31', '2011-08-01 03:23:31', 'test grandchild', 24)
1639
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 3, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:31', 'add', NULL, 24)
1640
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1641
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 24, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 37, 22)
1642
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 3 AND `collection_audits`.child_record_type = 'TestGrandchild')
1643
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1644
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1645
+ SQL (0.1ms) SAVEPOINT active_record_1
1646
+ SQL (0.3ms) describe `test_great_grandchildren`
1647
+ AREL (0.1ms) INSERT INTO `test_great_grandchildren` (`created_at`, `name`, `test_grandchild_id`, `updated_at`) VALUES ('2011-08-01 03:23:31', 'test great-grandchild', 3, '2011-08-01 03:23:31')
1648
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_great_grandchildren', 1, NULL, 'TestGrandchild', 'TestGreatGrandchild', '2011-08-01 03:23:31', 'add', NULL, 3)
1649
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
1650
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 3, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:31', 'modify', 39, 24)
1651
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1652
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 24, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 40, 22)
1653
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGreatGrandchild')
1654
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1655
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1656
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 3
1657
+ TestGreatGrandchild Load (0.1ms) SELECT `test_great_grandchildren`.* FROM `test_great_grandchildren` WHERE `test_great_grandchildren`.`id` = 1 LIMIT 1
1658
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
1659
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
1660
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1661
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
1662
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 22 LIMIT 1
1663
+ SQL (69.6ms) ROLLBACK
1664
+ SQL (0.0ms) BEGIN
1665
+ SQL (0.0ms) SAVEPOINT active_record_1
1666
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:31', '2011-08-01 03:23:31')
1667
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1668
+ SQL (0.1ms) SAVEPOINT active_record_1
1669
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 23, NULL, 'test child', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1670
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 25, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'add', NULL, 23)
1671
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 25 AND `collection_audits`.child_record_type = 'TestChild')
1672
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1673
+ SQL (0.0ms) SAVEPOINT active_record_1
1674
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`updated_at`, `created_at`, `name`, `test_child_id`) VALUES ('2011-08-01 03:23:31', '2011-08-01 03:23:31', 'test grandchild', 25)
1675
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_grandchildren', 4, NULL, 'TestChild', 'TestGrandchild', '2011-08-01 03:23:31', 'add', NULL, 25)
1676
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 25 LIMIT 1
1677
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 25, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 43, 23)
1678
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 4 AND `collection_audits`.child_record_type = 'TestGrandchild')
1679
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1680
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 23 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children')) ORDER BY collection_audits.id DESC LIMIT 1
1681
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 25 AND `collection_audits`.parent_record_type = 'TestChild' AND (association = 'test_grandchildren')) ORDER BY collection_audits.id DESC LIMIT 1
1682
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 43 LIMIT 1
1683
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_audit_id = 43)
1684
+ SQL (53.3ms) ROLLBACK
1685
+ SQL (0.0ms) BEGIN
1686
+ SQL (0.1ms) SAVEPOINT active_record_1
1687
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test parent', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1688
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1689
+ SQL (0.1ms) SAVEPOINT active_record_1
1690
+ SQL (0.3ms) describe `test_soft_delete_grandchildren`
1691
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `test_child_id`, `updated_at`, `name`, `deleted`) VALUES ('2011-08-01 03:23:31', 26, '2011-08-01 03:23:31', 'test child', NULL)
1692
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_soft_delete_grandchildren', 1, NULL, 'TestChild', 'TestSoftDeleteGrandchild', '2011-08-01 03:23:31', 'add', NULL, 26)
1693
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
1694
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
1695
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1696
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1697
+ SQL (0.1ms) SAVEPOINT active_record_1
1698
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_soft_delete_grandchildren', 1, NULL, 'TestChild', 'TestSoftDeleteGrandchild', '2011-08-01 03:23:31', 'remove', NULL, 26)
1699
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
1700
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:23:31', `deleted` = 1 WHERE `test_soft_delete_grandchildren`.`id` = 1
1701
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1702
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1703
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1704
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1705
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
1706
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1707
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 1 LIMIT 1
1708
+ SQL (48.5ms) ROLLBACK
1709
+ SQL (0.0ms) BEGIN
1710
+ SQL (0.0ms) SAVEPOINT active_record_1
1711
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test parent', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1712
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1713
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1714
+ SQL (0.1ms) SAVEPOINT active_record_1
1715
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `test_child_id`, `updated_at`, `name`, `deleted`) VALUES ('2011-08-01 03:23:31', 27, '2011-08-01 03:23:31', 'test child', 1)
1716
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1717
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1718
+ SQL (59.7ms) ROLLBACK
1719
+ SQL (0.1ms) BEGIN
1720
+ SQL (0.1ms) SAVEPOINT active_record_1
1721
+ AREL (0.2ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test parent', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1722
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1723
+ SQL (0.1ms) SAVEPOINT active_record_1
1724
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `test_child_id`, `updated_at`, `name`, `deleted`) VALUES ('2011-08-01 03:23:31', 28, '2011-08-01 03:23:31', 'test child', 1)
1725
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1726
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1727
+ SQL (0.0ms) SAVEPOINT active_record_1
1728
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:23:31', `name` = 'test child with new name' WHERE `test_soft_delete_grandchildren`.`id` = 3
1729
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1730
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
1731
+ SQL (44.9ms) ROLLBACK
1732
+ SQL (0.1ms) BEGIN
1733
+ SQL (0.0ms) SAVEPOINT active_record_1
1734
+ AREL (0.2ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, NULL, NULL, 'test parent', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1735
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1736
+ SQL (0.0ms) SAVEPOINT active_record_1
1737
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `test_child_id`, `updated_at`, `name`, `deleted`) VALUES ('2011-08-01 03:23:31', 29, '2011-08-01 03:23:31', 'test child', 1)
1738
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1739
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1740
+ SQL (0.0ms) SAVEPOINT active_record_1
1741
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_soft_delete_grandchildren', 4, NULL, 'TestChild', 'TestSoftDeleteGrandchild', '2011-08-01 03:23:31', 'add', NULL, 29)
1742
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
1743
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:23:31', `deleted` = 0 WHERE `test_soft_delete_grandchildren`.`id` = 4
1744
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1745
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1746
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1747
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1748
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
1749
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1750
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 4 LIMIT 1
1751
+ SQL (48.5ms) ROLLBACK
1752
+ SQL (0.1ms) BEGIN
1753
+ SQL (0.0ms) SAVEPOINT active_record_1
1754
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `created_at`, `updated_at`) VALUES ('test parent', '2011-08-01 03:23:31', '2011-08-01 03:23:31')
1755
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1756
+ SQL (0.0ms) SAVEPOINT active_record_1
1757
+ AREL (0.1ms) INSERT INTO `test_children` (`description`, `other_test_parent_id`, `test_parent_with_except_id`, `name`, `test_parent_with_only_id`, `created_at`, `test_parent_id`, `updated_at`) VALUES (NULL, 24, NULL, 'test child', NULL, '2011-08-01 03:23:31', NULL, '2011-08-01 03:23:31')
1758
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 30, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'add', NULL, 24)
1759
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 30 AND `collection_audits`.child_record_type = 'TestChild')
1760
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1761
+ SQL (0.0ms) SAVEPOINT active_record_1
1762
+ AREL (0.3ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `test_child_id`, `updated_at`, `name`, `deleted`) VALUES ('2011-08-01 03:23:31', 30, '2011-08-01 03:23:31', 'test grandchild', NULL)
1763
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_soft_delete_grandchildren', 5, NULL, 'TestChild', 'TestSoftDeleteGrandchild', '2011-08-01 03:23:31', 'add', NULL, 30)
1764
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1765
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 30, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 49, 24)
1766
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
1767
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1768
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1769
+ SQL (0.0ms) SAVEPOINT active_record_1
1770
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'test_soft_delete_grandchildren', 5, NULL, 'TestChild', 'TestSoftDeleteGrandchild', '2011-08-01 03:23:31', 'remove', NULL, 30)
1771
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1772
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `association`, `child_record_id`, `user_id`, `parent_record_type`, `child_record_type`, `created_at`, `action`, `child_audit_id`, `parent_record_id`) VALUES (NULL, 'other_test_children', 30, NULL, 'TestParent', 'TestChild', '2011-08-01 03:23:31', 'modify', 51, 24)
1773
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:23:31', `deleted` = 1 WHERE `test_soft_delete_grandchildren`.`id` = 5
1774
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1775
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1776
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1777
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1778
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 24 LIMIT 1
1779
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 51 LIMIT 1
1780
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 5 LIMIT 1
1781
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
1782
+ SQL (51.7ms) ROLLBACK
1783
+ SQL (1.4ms) SHOW TABLES
1784
+ SQL (119.9ms) DROP TABLE `test_parents`
1785
+ SQL (189.1ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1786
+ SQL (1.4ms) SHOW TABLES
1787
+ SQL (42.5ms) DROP TABLE `test_children`
1788
+ SQL (144.4ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1789
+ SQL (1.6ms) SHOW TABLES
1790
+ SQL (53.7ms) DROP TABLE `test_grandchildren`
1791
+ SQL (100.3ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1792
+ SQL (1.5ms) SHOW TABLES
1793
+ SQL (42.2ms) DROP TABLE `test_great_grandchildren`
1794
+ SQL (100.0ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1795
+ SQL (4.2ms) SHOW TABLES
1796
+ SQL (49.7ms) DROP TABLE `test_soft_delete_grandchildren`
1797
+ SQL (100.0ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1798
+ SQL (1.6ms) SHOW TABLES
1799
+ SQL (41.4ms) DROP TABLE `collection_audits`
1800
+ SQL (88.5ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
1801
+ SQL (1.6ms) SHOW TABLES
1802
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
1803
+ SQL (1.3ms) SHOW TABLES
1804
+ SQL (59.5ms) DROP TABLE `test_parents`
1805
+ SQL (122.2ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1806
+ SQL (1.4ms) SHOW TABLES
1807
+ SQL (53.8ms) DROP TABLE `test_children`
1808
+ SQL (99.9ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1809
+ SQL (1.4ms) SHOW TABLES
1810
+ SQL (42.9ms) DROP TABLE `test_grandchildren`
1811
+ SQL (110.8ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1812
+ SQL (1.6ms) SHOW TABLES
1813
+ SQL (53.6ms) DROP TABLE `test_great_grandchildren`
1814
+ SQL (99.9ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1815
+ SQL (1.6ms) SHOW TABLES
1816
+ SQL (53.6ms) DROP TABLE `test_soft_delete_grandchildren`
1817
+ SQL (100.2ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1818
+ SQL (2.2ms) SHOW TABLES
1819
+ SQL (52.0ms) DROP TABLE `collection_audits`
1820
+ SQL (99.9ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
1821
+ SQL (1.6ms) SHOW TABLES
1822
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
1823
+ SQL (0.1ms) BEGIN
1824
+ SQL (0.0ms) ROLLBACK
1825
+ SQL (0.0ms) BEGIN
1826
+ SQL (0.0ms) ROLLBACK
1827
+ SQL (0.0ms) BEGIN
1828
+ SQL (0.0ms) ROLLBACK
1829
+ SQL (0.0ms) BEGIN
1830
+ SQL (0.0ms) ROLLBACK
1831
+ SQL (0.0ms) BEGIN
1832
+ SQL (0.1ms) ROLLBACK
1833
+ SQL (0.0ms) BEGIN
1834
+ SQL (0.0ms) ROLLBACK
1835
+ SQL (0.0ms) BEGIN
1836
+ SQL (0.0ms) ROLLBACK
1837
+ SQL (0.0ms) BEGIN
1838
+ SQL (0.1ms) ROLLBACK
1839
+ SQL (0.0ms) BEGIN
1840
+ SQL (0.1ms) ROLLBACK
1841
+ SQL (0.0ms) BEGIN
1842
+ SQL (0.1ms) ROLLBACK
1843
+ SQL (0.0ms) BEGIN
1844
+ SQL (0.1ms) SAVEPOINT active_record_1
1845
+ SQL (1.3ms) SHOW TABLES
1846
+ SQL (0.3ms) describe `test_parents`
1847
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:15', '2011-08-01 03:26:15')
1848
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1849
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1850
+ SQL (0.1ms) SAVEPOINT active_record_1
1851
+ SQL (0.3ms) describe `test_children`
1852
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:15', NULL, NULL, NULL, '2011-08-01 03:26:15', 1, 'test child')
1853
+ SQL (0.3ms) describe `collection_audits`
1854
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 1, 'TestChild', 'TestParent', 1, '2011-08-01 03:26:15', 'add', NULL)
1855
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestChild')
1856
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1857
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1858
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1859
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 1 LIMIT 1
1860
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1861
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 1 LIMIT 1
1862
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1863
+ SQL (132.7ms) ROLLBACK
1864
+ SQL (0.1ms) BEGIN
1865
+ SQL (0.0ms) SAVEPOINT active_record_1
1866
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:15', '2011-08-01 03:26:15')
1867
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1868
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
1869
+ SQL (0.1ms) SAVEPOINT active_record_1
1870
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:15', NULL, NULL, NULL, '2011-08-01 03:26:15', NULL, 'test child')
1871
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1872
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1873
+ SQL (47.4ms) ROLLBACK
1874
+ SQL (0.1ms) BEGIN
1875
+ SQL (0.1ms) SAVEPOINT active_record_1
1876
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:15', NULL, NULL, NULL, '2011-08-01 03:26:15', NULL, 'test child')
1877
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1878
+ SQL (0.1ms) SAVEPOINT active_record_1
1879
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:15', '2011-08-01 03:26:15')
1880
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1881
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1882
+ SQL (0.0ms) SAVEPOINT active_record_1
1883
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 3, 'TestChild', 'TestParent', 3, '2011-08-01 03:26:15', 'add', NULL)
1884
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:15', `test_parent_id` = 3 WHERE `test_children`.`id` = 3
1885
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1886
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1887
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1888
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 3 LIMIT 1
1889
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1890
+ TestParent Load (0.2ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 3 LIMIT 1
1891
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1892
+ SQL (51.0ms) ROLLBACK
1893
+ SQL (0.1ms) BEGIN
1894
+ SQL (0.1ms) SAVEPOINT active_record_1
1895
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:15', NULL, NULL, NULL, '2011-08-01 03:26:15', NULL, 'test child')
1896
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1897
+ SQL (0.1ms) SAVEPOINT active_record_1
1898
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:15', '2011-08-01 03:26:15')
1899
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1900
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1901
+ SQL (0.0ms) SAVEPOINT active_record_1
1902
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:15', `name` = 'new name' WHERE `test_children`.`id` = 4
1903
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1904
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
1905
+ SQL (47.4ms) ROLLBACK
1906
+ SQL (0.1ms) BEGIN
1907
+ SQL (0.1ms) SAVEPOINT active_record_1
1908
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:15', '2011-08-01 03:26:15')
1909
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1910
+ SQL (0.0ms) SAVEPOINT active_record_1
1911
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:15', NULL, NULL, NULL, '2011-08-01 03:26:15', 5, 'test child')
1912
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 5, 'TestChild', 'TestParent', 5, '2011-08-01 03:26:15', 'add', NULL)
1913
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestChild')
1914
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1915
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1916
+ SQL (0.1ms) SAVEPOINT active_record_1
1917
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 5, 'TestChild', 'TestParent', 5, '2011-08-01 03:26:15', 'remove', NULL)
1918
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:15', `test_parent_id` = NULL WHERE `test_children`.`id` = 5
1919
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1920
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1921
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1922
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 5 LIMIT 1
1923
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1924
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 5 LIMIT 1
1925
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1926
+ SQL (47.4ms) ROLLBACK
1927
+ SQL (0.1ms) BEGIN
1928
+ SQL (0.1ms) SAVEPOINT active_record_1
1929
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
1930
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1931
+ SQL (0.1ms) SAVEPOINT active_record_1
1932
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 6, 'test child')
1933
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 6, 'TestChild', 'TestParent', 6, '2011-08-01 03:26:16', 'add', NULL)
1934
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 6 AND `collection_audits`.child_record_type = 'TestChild')
1935
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1936
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1937
+ SQL (0.1ms) SAVEPOINT active_record_1
1938
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 6
1939
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 6, 'TestChild', 'TestParent', 6, '2011-08-01 03:26:16', 'remove', NULL)
1940
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1941
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1942
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1943
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1944
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 6 LIMIT 1
1945
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1946
+ SQL (46.8ms) ROLLBACK
1947
+ SQL (0.1ms) BEGIN
1948
+ SQL (0.0ms) SAVEPOINT active_record_1
1949
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', NULL, 'test child')
1950
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1951
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1952
+ SQL (0.0ms) SAVEPOINT active_record_1
1953
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 7
1954
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1955
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1956
+ SQL (49.4ms) ROLLBACK
1957
+ SQL (0.0ms) BEGIN
1958
+ SQL (0.0ms) SAVEPOINT active_record_1
1959
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
1960
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1961
+ SQL (0.1ms) SAVEPOINT active_record_1
1962
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 7, 'test child')
1963
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 7, 'TestChild', 'TestParent', 8, '2011-08-01 03:26:16', 'add', NULL)
1964
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 8 AND `collection_audits`.child_record_type = 'TestChild')
1965
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1966
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1967
+ SQL (43.4ms) ROLLBACK
1968
+ SQL (0.0ms) BEGIN
1969
+ SQL (0.0ms) SAVEPOINT active_record_1
1970
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
1971
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1972
+ SQL (0.1ms) SAVEPOINT active_record_1
1973
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 8, 'test child')
1974
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 8, 'TestChild', 'TestParent', 9, '2011-08-01 03:26:16', 'add', NULL)
1975
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 9 AND `collection_audits`.child_record_type = 'TestChild')
1976
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
1977
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
1978
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 8 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1979
+ SQL (40.8ms) ROLLBACK
1980
+ SQL (0.1ms) BEGIN
1981
+ SQL (0.1ms) SAVEPOINT active_record_1
1982
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
1983
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1984
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1985
+ SQL (0.1ms) SAVEPOINT active_record_1
1986
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (9, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', NULL, 'test child')
1987
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 9, 'TestChild', 'TestParent', 10, '2011-08-01 03:26:16', 'add', NULL)
1988
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 10 AND `collection_audits`.child_record_type = 'TestChild')
1989
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
1990
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
1991
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.other_test_parent_id = 9)
1992
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.test_parent_id = 9)
1993
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
1994
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
1995
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
1996
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 10 LIMIT 1
1997
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
1998
+ SQL (54.7ms) ROLLBACK
1999
+ SQL (0.1ms) BEGIN
2000
+ SQL (0.1ms) SAVEPOINT active_record_1
2001
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2002
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2003
+ SQL (0.0ms) SAVEPOINT active_record_1
2004
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 10, 'test child')
2005
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 10, 'TestChild', 'TestParent', 11, '2011-08-01 03:26:16', 'add', NULL)
2006
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 11 AND `collection_audits`.child_record_type = 'TestChild')
2007
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2008
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2009
+ SQL (0.1ms) SAVEPOINT active_record_1
2010
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 10, 'TestChild', 'TestParent', 11, '2011-08-01 03:26:16', 'remove', NULL)
2011
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 10, 'TestChild', 'TestParent', 11, '2011-08-01 03:26:16', 'add', NULL)
2012
+ AREL (0.4ms) UPDATE `test_children` SET `other_test_parent_id` = 10, `updated_at` = '2011-08-01 03:26:16', `test_parent_id` = NULL WHERE `test_children`.`id` = 11
2013
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2014
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2015
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2016
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
2017
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
2018
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
2019
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
2020
+ SQL (53.9ms) ROLLBACK
2021
+ SQL (0.1ms) BEGIN
2022
+ SQL (0.1ms) SAVEPOINT active_record_1
2023
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2024
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2025
+ SQL (0.0ms) SAVEPOINT active_record_1
2026
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 11, 'test child')
2027
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 11, 'TestChild', 'TestParent', 12, '2011-08-01 03:26:16', 'add', NULL)
2028
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 12 AND `collection_audits`.child_record_type = 'TestChild')
2029
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2030
+ SQL (0.1ms) SAVEPOINT active_record_1
2031
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('another parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2032
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2033
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2034
+ SQL (0.1ms) SAVEPOINT active_record_1
2035
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 11, 'TestChild', 'TestParent', 12, '2011-08-01 03:26:16', 'remove', NULL)
2036
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 12, 'TestChild', 'TestParent', 12, '2011-08-01 03:26:16', 'add', NULL)
2037
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:16', `test_parent_id` = 12 WHERE `test_children`.`id` = 12
2038
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2039
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2040
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 11 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2041
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
2042
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
2043
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 12 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2044
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
2045
+ SQL (64.0ms) ROLLBACK
2046
+ SQL (0.0ms) BEGIN
2047
+ SQL (0.0ms) SAVEPOINT active_record_1
2048
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2049
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2050
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2051
+ SQL (0.1ms) SAVEPOINT active_record_1
2052
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 13, 'test child')
2053
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2054
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2055
+ SQL (48.6ms) ROLLBACK
2056
+ SQL (0.1ms) BEGIN
2057
+ SQL (0.1ms) SAVEPOINT active_record_1
2058
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2059
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2060
+ SQL (0.1ms) SAVEPOINT active_record_1
2061
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 14, 'test child')
2062
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2063
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2064
+ SQL (0.1ms) SAVEPOINT active_record_1
2065
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', 14, 'another child')
2066
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children', 14, 'TestChild', 'TestParent', 15, '2011-08-01 03:26:16', 'add', NULL)
2067
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 15 AND `collection_audits`.child_record_type = 'TestChild')
2068
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2069
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2070
+ SQL (39.1ms) ROLLBACK
2071
+ SQL (0.1ms) BEGIN
2072
+ SQL (0.1ms) SAVEPOINT active_record_1
2073
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2074
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2075
+ SQL (0.0ms) SAVEPOINT active_record_1
2076
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (15, '2011-08-01 03:26:16', NULL, NULL, NULL, '2011-08-01 03:26:16', NULL, 'test child')
2077
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 15, 'TestChild', 'TestParent', 16, '2011-08-01 03:26:16', 'add', NULL)
2078
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 16 AND `collection_audits`.child_record_type = 'TestChild')
2079
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2080
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2081
+ SQL (0.0ms) SAVEPOINT active_record_1
2082
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 15, 'TestChild', 'TestParent', 16, '2011-08-01 03:26:16', 'modify', NULL)
2083
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:16', `name` = 'new name' WHERE `test_children`.`id` = 16
2084
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2085
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2086
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2087
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 16 LIMIT 1
2088
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2089
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 15 LIMIT 1
2090
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2091
+ SQL (47.1ms) ROLLBACK
2092
+ SQL (0.1ms) BEGIN
2093
+ SQL (0.1ms) SAVEPOINT active_record_1
2094
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2095
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2096
+ SQL (0.1ms) SAVEPOINT active_record_1
2097
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', 16, NULL, NULL, '2011-08-01 03:26:16', NULL, 'test child')
2098
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children_with_only', 16, 'TestChild', 'TestParent', 17, '2011-08-01 03:26:16', 'add', NULL)
2099
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 17 AND `collection_audits`.child_record_type = 'TestChild')
2100
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2101
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2102
+ SQL (0.1ms) SAVEPOINT active_record_1
2103
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children_with_only', 16, 'TestChild', 'TestParent', 17, '2011-08-01 03:26:16', 'modify', NULL)
2104
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:16', `name` = 'new name' WHERE `test_children`.`id` = 17
2105
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2106
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2107
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2108
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 17 LIMIT 1
2109
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2110
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 16 LIMIT 1
2111
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2112
+ SQL (46.6ms) ROLLBACK
2113
+ SQL (0.1ms) BEGIN
2114
+ SQL (0.1ms) SAVEPOINT active_record_1
2115
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2116
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2117
+ SQL (0.1ms) SAVEPOINT active_record_1
2118
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', 17, NULL, NULL, '2011-08-01 03:26:16', NULL, 'test child')
2119
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children_with_only', 17, 'TestChild', 'TestParent', 18, '2011-08-01 03:26:16', 'add', NULL)
2120
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 18 AND `collection_audits`.child_record_type = 'TestChild')
2121
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2122
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2123
+ SQL (0.0ms) SAVEPOINT active_record_1
2124
+ AREL (0.2ms) UPDATE `test_children` SET `description` = 'new description', `updated_at` = '2011-08-01 03:26:16' WHERE `test_children`.`id` = 18
2125
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2126
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2127
+ SQL (50.3ms) ROLLBACK
2128
+ SQL (0.0ms) BEGIN
2129
+ SQL (0.1ms) SAVEPOINT active_record_1
2130
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2131
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2132
+ SQL (0.0ms) SAVEPOINT active_record_1
2133
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:16', NULL, 18, NULL, '2011-08-01 03:26:16', NULL, 'test child')
2134
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children_with_except', 18, 'TestChild', 'TestParent', 19, '2011-08-01 03:26:16', 'add', NULL)
2135
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 19 AND `collection_audits`.child_record_type = 'TestChild')
2136
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2137
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2138
+ SQL (0.0ms) SAVEPOINT active_record_1
2139
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:26:16', `name` = 'new name' WHERE `test_children`.`id` = 19
2140
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2141
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2142
+ SQL (42.3ms) ROLLBACK
2143
+ SQL (0.0ms) BEGIN
2144
+ SQL (0.0ms) SAVEPOINT active_record_1
2145
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:16', '2011-08-01 03:26:16')
2146
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2147
+ SQL (0.0ms) SAVEPOINT active_record_1
2148
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:17', NULL, 19, NULL, '2011-08-01 03:26:17', NULL, 'test child')
2149
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children_with_except', 19, 'TestChild', 'TestParent', 20, '2011-08-01 03:26:17', 'add', NULL)
2150
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 20 AND `collection_audits`.child_record_type = 'TestChild')
2151
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2152
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2153
+ SQL (0.0ms) SAVEPOINT active_record_1
2154
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_children_with_except', 19, 'TestChild', 'TestParent', 20, '2011-08-01 03:26:17', 'modify', NULL)
2155
+ AREL (0.1ms) UPDATE `test_children` SET `description` = 'new name', `updated_at` = '2011-08-01 03:26:17' WHERE `test_children`.`id` = 20
2156
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2157
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2158
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2159
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 20 LIMIT 1
2160
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2161
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 19 LIMIT 1
2162
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2163
+ SQL (48.3ms) ROLLBACK
2164
+ SQL (0.1ms) BEGIN
2165
+ SQL (0.0ms) SAVEPOINT active_record_1
2166
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2167
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2168
+ SQL (0.1ms) SAVEPOINT active_record_1
2169
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (20, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test child')
2170
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 20, 'TestChild', 'TestParent', 21, '2011-08-01 03:26:17', 'add', NULL)
2171
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 21 AND `collection_audits`.child_record_type = 'TestChild')
2172
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2173
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2174
+ SQL (0.1ms) SAVEPOINT active_record_1
2175
+ SQL (0.7ms) describe `test_grandchildren`
2176
+ AREL (0.3ms) INSERT INTO `test_grandchildren` (`test_child_id`, `updated_at`, `name`, `created_at`) VALUES (21, '2011-08-01 03:26:17', 'test grandchild', '2011-08-01 03:26:17')
2177
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_grandchildren', 21, 'TestGrandchild', 'TestChild', 1, '2011-08-01 03:26:17', 'add', NULL)
2178
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
2179
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 26, 'other_test_children', 20, 'TestChild', 'TestParent', 21, '2011-08-01 03:26:17', 'modify', NULL)
2180
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGrandchild')
2181
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2182
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2183
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 2
2184
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 1 LIMIT 1
2185
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
2186
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
2187
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 20 LIMIT 1
2188
+ SQL (59.6ms) ROLLBACK
2189
+ SQL (0.0ms) BEGIN
2190
+ SQL (0.0ms) SAVEPOINT active_record_1
2191
+ AREL (0.5ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2192
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2193
+ SQL (0.1ms) SAVEPOINT active_record_1
2194
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (21, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test child')
2195
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 21, 'TestChild', 'TestParent', 22, '2011-08-01 03:26:17', 'add', NULL)
2196
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 22 AND `collection_audits`.child_record_type = 'TestChild')
2197
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2198
+ SQL (0.1ms) SAVEPOINT active_record_1
2199
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (21, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'another child')
2200
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 21, 'TestChild', 'TestParent', 23, '2011-08-01 03:26:17', 'add', NULL)
2201
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 23 AND `collection_audits`.child_record_type = 'TestChild')
2202
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2203
+ SQL (0.0ms) SAVEPOINT active_record_1
2204
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `updated_at`, `name`, `created_at`) VALUES (22, '2011-08-01 03:26:17', 'test grandchild', '2011-08-01 03:26:17')
2205
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_grandchildren', 22, 'TestGrandchild', 'TestChild', 2, '2011-08-01 03:26:17', 'add', NULL)
2206
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2207
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 30, 'other_test_children', 21, 'TestChild', 'TestParent', 22, '2011-08-01 03:26:17', 'modify', NULL)
2208
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 2 AND `collection_audits`.child_record_type = 'TestGrandchild')
2209
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2210
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2211
+ SQL (0.1ms) SAVEPOINT active_record_1
2212
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_grandchildren', 22, 'TestGrandchild', 'TestChild', 2, '2011-08-01 03:26:17', 'remove', NULL)
2213
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2214
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 32, 'other_test_children', 21, 'TestChild', 'TestParent', 22, '2011-08-01 03:26:17', 'modify', NULL)
2215
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_grandchildren', 23, 'TestGrandchild', 'TestChild', 2, '2011-08-01 03:26:17', 'add', NULL)
2216
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
2217
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 34, 'other_test_children', 21, 'TestChild', 'TestParent', 23, '2011-08-01 03:26:17', 'modify', NULL)
2218
+ AREL (0.1ms) UPDATE `test_grandchildren` SET `test_child_id` = 23, `updated_at` = '2011-08-01 03:26:17' WHERE `test_grandchildren`.`id` = 2
2219
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2220
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2221
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 4
2222
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
2223
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2224
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2225
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
2226
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
2227
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
2228
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
2229
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
2230
+ SQL (140.7ms) ROLLBACK
2231
+ SQL (0.1ms) BEGIN
2232
+ SQL (0.1ms) SAVEPOINT active_record_1
2233
+ AREL (0.2ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2234
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2235
+ SQL (0.1ms) SAVEPOINT active_record_1
2236
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (22, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test child')
2237
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 22, 'TestChild', 'TestParent', 24, '2011-08-01 03:26:17', 'add', NULL)
2238
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 24 AND `collection_audits`.child_record_type = 'TestChild')
2239
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2240
+ SQL (0.1ms) SAVEPOINT active_record_1
2241
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `updated_at`, `name`, `created_at`) VALUES (24, '2011-08-01 03:26:17', 'test grandchild', '2011-08-01 03:26:17')
2242
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_grandchildren', 24, 'TestGrandchild', 'TestChild', 3, '2011-08-01 03:26:17', 'add', NULL)
2243
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2244
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 37, 'other_test_children', 22, 'TestChild', 'TestParent', 24, '2011-08-01 03:26:17', 'modify', NULL)
2245
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 3 AND `collection_audits`.child_record_type = 'TestGrandchild')
2246
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2247
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2248
+ SQL (0.1ms) SAVEPOINT active_record_1
2249
+ SQL (0.5ms) describe `test_great_grandchildren`
2250
+ AREL (0.1ms) INSERT INTO `test_great_grandchildren` (`test_grandchild_id`, `updated_at`, `created_at`, `name`) VALUES (3, '2011-08-01 03:26:17', '2011-08-01 03:26:17', 'test great-grandchild')
2251
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_great_grandchildren', 3, 'TestGreatGrandchild', 'TestGrandchild', 1, '2011-08-01 03:26:17', 'add', NULL)
2252
+ TestGrandchild Load (0.2ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
2253
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 39, 'test_grandchildren', 24, 'TestGrandchild', 'TestChild', 3, '2011-08-01 03:26:17', 'modify', NULL)
2254
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2255
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 40, 'other_test_children', 22, 'TestChild', 'TestParent', 24, '2011-08-01 03:26:17', 'modify', NULL)
2256
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGreatGrandchild')
2257
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2258
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2259
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 3
2260
+ TestGreatGrandchild Load (0.1ms) SELECT `test_great_grandchildren`.* FROM `test_great_grandchildren` WHERE `test_great_grandchildren`.`id` = 1 LIMIT 1
2261
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
2262
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
2263
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2264
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2265
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 22 LIMIT 1
2266
+ SQL (61.6ms) ROLLBACK
2267
+ SQL (0.1ms) BEGIN
2268
+ SQL (0.1ms) SAVEPOINT active_record_1
2269
+ AREL (0.1ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2270
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2271
+ SQL (0.1ms) SAVEPOINT active_record_1
2272
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (23, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test child')
2273
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 23, 'TestChild', 'TestParent', 25, '2011-08-01 03:26:17', 'add', NULL)
2274
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 25 AND `collection_audits`.child_record_type = 'TestChild')
2275
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2276
+ SQL (0.1ms) SAVEPOINT active_record_1
2277
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `updated_at`, `name`, `created_at`) VALUES (25, '2011-08-01 03:26:17', 'test grandchild', '2011-08-01 03:26:17')
2278
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_grandchildren', 25, 'TestGrandchild', 'TestChild', 4, '2011-08-01 03:26:17', 'add', NULL)
2279
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 25 LIMIT 1
2280
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 43, 'other_test_children', 23, 'TestChild', 'TestParent', 25, '2011-08-01 03:26:17', 'modify', NULL)
2281
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 4 AND `collection_audits`.child_record_type = 'TestGrandchild')
2282
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2283
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 23 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children')) ORDER BY collection_audits.id DESC LIMIT 1
2284
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 25 AND `collection_audits`.parent_record_type = 'TestChild' AND (association = 'test_grandchildren')) ORDER BY collection_audits.id DESC LIMIT 1
2285
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 43 LIMIT 1
2286
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_audit_id = 43)
2287
+ SQL (41.5ms) ROLLBACK
2288
+ SQL (0.0ms) BEGIN
2289
+ SQL (0.0ms) SAVEPOINT active_record_1
2290
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test parent')
2291
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2292
+ SQL (0.1ms) SAVEPOINT active_record_1
2293
+ SQL (0.3ms) describe `test_soft_delete_grandchildren`
2294
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `deleted`, `created_at`, `updated_at`) VALUES (26, 'test child', NULL, '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2295
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_soft_delete_grandchildren', 26, 'TestSoftDeleteGrandchild', 'TestChild', 1, '2011-08-01 03:26:17', 'add', NULL)
2296
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
2297
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
2298
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2299
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2300
+ SQL (0.1ms) SAVEPOINT active_record_1
2301
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_soft_delete_grandchildren', 26, 'TestSoftDeleteGrandchild', 'TestChild', 1, '2011-08-01 03:26:17', 'remove', NULL)
2302
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
2303
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `deleted` = 1, `updated_at` = '2011-08-01 03:26:17' WHERE `test_soft_delete_grandchildren`.`id` = 1
2304
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2305
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2306
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2307
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2308
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
2309
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2310
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 1 LIMIT 1
2311
+ SQL (46.6ms) ROLLBACK
2312
+ SQL (0.1ms) BEGIN
2313
+ SQL (0.1ms) SAVEPOINT active_record_1
2314
+ AREL (0.4ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test parent')
2315
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2316
+ SQL (0.4ms) SELECT COUNT(*) FROM `collection_audits`
2317
+ SQL (0.2ms) SAVEPOINT active_record_1
2318
+ AREL (0.3ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `deleted`, `created_at`, `updated_at`) VALUES (27, 'test child', 1, '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2319
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2320
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2321
+ SQL (60.2ms) ROLLBACK
2322
+ SQL (0.1ms) BEGIN
2323
+ SQL (0.1ms) SAVEPOINT active_record_1
2324
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:17', NULL, NULL, NULL, '2011-08-01 03:26:17', NULL, 'test parent')
2325
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2326
+ SQL (0.0ms) SAVEPOINT active_record_1
2327
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `deleted`, `created_at`, `updated_at`) VALUES (28, 'test child', 1, '2011-08-01 03:26:17', '2011-08-01 03:26:17')
2328
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2329
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2330
+ SQL (0.1ms) SAVEPOINT active_record_1
2331
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `name` = 'test child with new name', `updated_at` = '2011-08-01 03:26:17' WHERE `test_soft_delete_grandchildren`.`id` = 3
2332
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2333
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2334
+ SQL (34.1ms) ROLLBACK
2335
+ SQL (0.0ms) BEGIN
2336
+ SQL (0.0ms) SAVEPOINT active_record_1
2337
+ AREL (0.2ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (NULL, '2011-08-01 03:26:18', NULL, NULL, NULL, '2011-08-01 03:26:18', NULL, 'test parent')
2338
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2339
+ SQL (0.0ms) SAVEPOINT active_record_1
2340
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `deleted`, `created_at`, `updated_at`) VALUES (29, 'test child', 1, '2011-08-01 03:26:18', '2011-08-01 03:26:18')
2341
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2342
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2343
+ SQL (0.1ms) SAVEPOINT active_record_1
2344
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_soft_delete_grandchildren', 29, 'TestSoftDeleteGrandchild', 'TestChild', 4, '2011-08-01 03:26:18', 'add', NULL)
2345
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
2346
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `deleted` = 0, `updated_at` = '2011-08-01 03:26:18' WHERE `test_soft_delete_grandchildren`.`id` = 4
2347
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2348
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2349
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2350
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2351
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
2352
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2353
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 4 LIMIT 1
2354
+ SQL (47.7ms) ROLLBACK
2355
+ SQL (0.1ms) BEGIN
2356
+ SQL (0.1ms) SAVEPOINT active_record_1
2357
+ AREL (0.3ms) INSERT INTO `test_parents` (`name`, `updated_at`, `created_at`) VALUES ('test parent', '2011-08-01 03:26:18', '2011-08-01 03:26:18')
2358
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2359
+ SQL (0.1ms) SAVEPOINT active_record_1
2360
+ AREL (0.1ms) INSERT INTO `test_children` (`other_test_parent_id`, `created_at`, `test_parent_with_only_id`, `test_parent_with_except_id`, `description`, `updated_at`, `test_parent_id`, `name`) VALUES (24, '2011-08-01 03:26:18', NULL, NULL, NULL, '2011-08-01 03:26:18', NULL, 'test child')
2361
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'other_test_children', 24, 'TestChild', 'TestParent', 30, '2011-08-01 03:26:18', 'add', NULL)
2362
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 30 AND `collection_audits`.child_record_type = 'TestChild')
2363
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2364
+ SQL (0.0ms) SAVEPOINT active_record_1
2365
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `deleted`, `created_at`, `updated_at`) VALUES (30, 'test grandchild', NULL, '2011-08-01 03:26:18', '2011-08-01 03:26:18')
2366
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_soft_delete_grandchildren', 30, 'TestSoftDeleteGrandchild', 'TestChild', 5, '2011-08-01 03:26:18', 'add', NULL)
2367
+ TestChild Load (0.4ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2368
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 49, 'other_test_children', 24, 'TestChild', 'TestParent', 30, '2011-08-01 03:26:18', 'modify', NULL)
2369
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
2370
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2371
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2372
+ SQL (0.0ms) SAVEPOINT active_record_1
2373
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, NULL, 'test_soft_delete_grandchildren', 30, 'TestSoftDeleteGrandchild', 'TestChild', 5, '2011-08-01 03:26:18', 'remove', NULL)
2374
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2375
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_type`, `child_audit_id`, `association`, `parent_record_id`, `child_record_type`, `parent_record_type`, `child_record_id`, `created_at`, `action`, `user_id`) VALUES (NULL, 51, 'other_test_children', 24, 'TestChild', 'TestParent', 30, '2011-08-01 03:26:18', 'modify', NULL)
2376
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `deleted` = 1, `updated_at` = '2011-08-01 03:26:18' WHERE `test_soft_delete_grandchildren`.`id` = 5
2377
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2378
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2379
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2380
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2381
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 24 LIMIT 1
2382
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 51 LIMIT 1
2383
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 5 LIMIT 1
2384
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2385
+ SQL (36.6ms) ROLLBACK
2386
+ SQL (1.3ms) SHOW TABLES
2387
+ SQL (72.4ms) DROP TABLE `test_parents`
2388
+ SQL (100.0ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2389
+ SQL (2.1ms) SHOW TABLES
2390
+ SQL (41.6ms) DROP TABLE `test_children`
2391
+ SQL (99.9ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2392
+ SQL (1.6ms) SHOW TABLES
2393
+ SQL (42.4ms) DROP TABLE `test_grandchildren`
2394
+ SQL (123.6ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2395
+ SQL (1.3ms) SHOW TABLES
2396
+ SQL (42.9ms) DROP TABLE `test_great_grandchildren`
2397
+ SQL (88.7ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2398
+ SQL (1.6ms) SHOW TABLES
2399
+ SQL (109.0ms) DROP TABLE `test_soft_delete_grandchildren`
2400
+ SQL (100.3ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2401
+ SQL (2.2ms) SHOW TABLES
2402
+ SQL (52.0ms) DROP TABLE `collection_audits`
2403
+ SQL (100.1ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
2404
+ SQL (1.7ms) SHOW TABLES
2405
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
2406
+ SQL (1.3ms) SHOW TABLES
2407
+ SQL (51.7ms) DROP TABLE `test_parents`
2408
+ SQL (122.3ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2409
+ SQL (1.4ms) SHOW TABLES
2410
+ SQL (53.7ms) DROP TABLE `test_children`
2411
+ SQL (88.9ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2412
+ SQL (4.0ms) SHOW TABLES
2413
+ SQL (49.8ms) DROP TABLE `test_grandchildren`
2414
+ SQL (89.1ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2415
+ SQL (4.0ms) SHOW TABLES
2416
+ SQL (38.8ms) DROP TABLE `test_great_grandchildren`
2417
+ SQL (99.9ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2418
+ SQL (2.1ms) SHOW TABLES
2419
+ SQL (52.6ms) DROP TABLE `test_soft_delete_grandchildren`
2420
+ SQL (100.0ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2421
+ SQL (1.6ms) SHOW TABLES
2422
+ SQL (42.4ms) DROP TABLE `collection_audits`
2423
+ SQL (77.6ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
2424
+ SQL (1.4ms) SHOW TABLES
2425
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
2426
+ SQL (0.1ms) BEGIN
2427
+ SQL (0.0ms) ROLLBACK
2428
+ SQL (0.0ms) BEGIN
2429
+ SQL (0.1ms) ROLLBACK
2430
+ SQL (0.1ms) BEGIN
2431
+ SQL (0.1ms) ROLLBACK
2432
+ SQL (0.0ms) BEGIN
2433
+ SQL (0.0ms) ROLLBACK
2434
+ SQL (0.0ms) BEGIN
2435
+ SQL (0.0ms) ROLLBACK
2436
+ SQL (0.0ms) BEGIN
2437
+ SQL (0.0ms) ROLLBACK
2438
+ SQL (0.0ms) BEGIN
2439
+ SQL (0.0ms) ROLLBACK
2440
+ SQL (0.0ms) BEGIN
2441
+ SQL (0.1ms) ROLLBACK
2442
+ SQL (0.0ms) BEGIN
2443
+ SQL (0.0ms) ROLLBACK
2444
+ SQL (0.0ms) BEGIN
2445
+ SQL (0.0ms) ROLLBACK
2446
+ SQL (0.0ms) BEGIN
2447
+ SQL (0.1ms) SAVEPOINT active_record_1
2448
+ SQL (1.4ms) SHOW TABLES
2449
+ SQL (0.2ms) describe `test_parents`
2450
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:38', 'test parent', '2011-08-01 03:27:38')
2451
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2452
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2453
+ SQL (0.1ms) SAVEPOINT active_record_1
2454
+ SQL (0.3ms) describe `test_children`
2455
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:38', '2011-08-01 03:27:38', NULL, NULL, 'test child', NULL, NULL, 1)
2456
+ SQL (0.3ms) describe `collection_audits`
2457
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 1, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 1, NULL)
2458
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestChild')
2459
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2460
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2461
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2462
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 1 LIMIT 1
2463
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2464
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 1 LIMIT 1
2465
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2466
+ SQL (47.2ms) ROLLBACK
2467
+ SQL (0.0ms) BEGIN
2468
+ SQL (0.1ms) SAVEPOINT active_record_1
2469
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2470
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2471
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2472
+ SQL (0.1ms) SAVEPOINT active_record_1
2473
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, NULL)
2474
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2475
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2476
+ SQL (49.2ms) ROLLBACK
2477
+ SQL (0.0ms) BEGIN
2478
+ SQL (0.0ms) SAVEPOINT active_record_1
2479
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, NULL)
2480
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2481
+ SQL (0.0ms) SAVEPOINT active_record_1
2482
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2483
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2484
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2485
+ SQL (0.1ms) SAVEPOINT active_record_1
2486
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 3, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 3, NULL)
2487
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:39', `test_parent_id` = 3 WHERE `test_children`.`id` = 3
2488
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2489
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2490
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2491
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 3 LIMIT 1
2492
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2493
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 3 LIMIT 1
2494
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2495
+ SQL (40.7ms) ROLLBACK
2496
+ SQL (0.0ms) BEGIN
2497
+ SQL (0.0ms) SAVEPOINT active_record_1
2498
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, NULL)
2499
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2500
+ SQL (0.0ms) SAVEPOINT active_record_1
2501
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2502
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2503
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2504
+ SQL (0.0ms) SAVEPOINT active_record_1
2505
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:39', `name` = 'new name' WHERE `test_children`.`id` = 4
2506
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2507
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2508
+ SQL (48.4ms) ROLLBACK
2509
+ SQL (0.1ms) BEGIN
2510
+ SQL (0.1ms) SAVEPOINT active_record_1
2511
+ AREL (0.3ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2512
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2513
+ SQL (0.1ms) SAVEPOINT active_record_1
2514
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 5)
2515
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 5, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 5, NULL)
2516
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestChild')
2517
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2518
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2519
+ SQL (0.1ms) SAVEPOINT active_record_1
2520
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 5, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'remove', 'TestParent', 5, NULL)
2521
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:39', `test_parent_id` = NULL WHERE `test_children`.`id` = 5
2522
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2523
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2524
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2525
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 5 LIMIT 1
2526
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2527
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 5 LIMIT 1
2528
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2529
+ SQL (31.6ms) ROLLBACK
2530
+ SQL (0.0ms) BEGIN
2531
+ SQL (0.0ms) SAVEPOINT active_record_1
2532
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2533
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2534
+ SQL (0.1ms) SAVEPOINT active_record_1
2535
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 6)
2536
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 6, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 6, NULL)
2537
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 6 AND `collection_audits`.child_record_type = 'TestChild')
2538
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2539
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2540
+ SQL (0.0ms) SAVEPOINT active_record_1
2541
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 6
2542
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 6, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'remove', 'TestParent', 6, NULL)
2543
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2544
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2545
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2546
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2547
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 6 LIMIT 1
2548
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2549
+ SQL (36.5ms) ROLLBACK
2550
+ SQL (0.1ms) BEGIN
2551
+ SQL (0.1ms) SAVEPOINT active_record_1
2552
+ AREL (0.2ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, NULL)
2553
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2554
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2555
+ SQL (0.1ms) SAVEPOINT active_record_1
2556
+ AREL (0.2ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 7
2557
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2558
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2559
+ SQL (46.9ms) ROLLBACK
2560
+ SQL (0.0ms) BEGIN
2561
+ SQL (0.0ms) SAVEPOINT active_record_1
2562
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2563
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2564
+ SQL (0.0ms) SAVEPOINT active_record_1
2565
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 7)
2566
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 7, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 8, NULL)
2567
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 8 AND `collection_audits`.child_record_type = 'TestChild')
2568
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2569
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2570
+ SQL (44.5ms) ROLLBACK
2571
+ SQL (0.0ms) BEGIN
2572
+ SQL (0.0ms) SAVEPOINT active_record_1
2573
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2574
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2575
+ SQL (0.1ms) SAVEPOINT active_record_1
2576
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 8)
2577
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 8, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 9, NULL)
2578
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 9 AND `collection_audits`.child_record_type = 'TestChild')
2579
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2580
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2581
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 8 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2582
+ SQL (31.7ms) ROLLBACK
2583
+ SQL (0.1ms) BEGIN
2584
+ SQL (0.1ms) SAVEPOINT active_record_1
2585
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2586
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2587
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2588
+ SQL (0.0ms) SAVEPOINT active_record_1
2589
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, 9, 'test child', NULL, NULL, NULL)
2590
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 9, '2011-08-01 03:27:39', 'other_test_children', 'TestChild', 'add', 'TestParent', 10, NULL)
2591
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 10 AND `collection_audits`.child_record_type = 'TestChild')
2592
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2593
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2594
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.other_test_parent_id = 9)
2595
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.test_parent_id = 9)
2596
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
2597
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2598
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
2599
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 10 LIMIT 1
2600
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
2601
+ SQL (41.5ms) ROLLBACK
2602
+ SQL (0.1ms) BEGIN
2603
+ SQL (0.1ms) SAVEPOINT active_record_1
2604
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2605
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2606
+ SQL (0.0ms) SAVEPOINT active_record_1
2607
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 10)
2608
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 10, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 11, NULL)
2609
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 11 AND `collection_audits`.child_record_type = 'TestChild')
2610
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2611
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2612
+ SQL (0.1ms) SAVEPOINT active_record_1
2613
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 10, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'remove', 'TestParent', 11, NULL)
2614
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 10, '2011-08-01 03:27:39', 'other_test_children', 'TestChild', 'add', 'TestParent', 11, NULL)
2615
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:39', `other_test_parent_id` = 10, `test_parent_id` = NULL WHERE `test_children`.`id` = 11
2616
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2617
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2618
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2619
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
2620
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
2621
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
2622
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
2623
+ SQL (33.5ms) ROLLBACK
2624
+ SQL (0.0ms) BEGIN
2625
+ SQL (0.1ms) SAVEPOINT active_record_1
2626
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2627
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2628
+ SQL (0.1ms) SAVEPOINT active_record_1
2629
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 11)
2630
+ AREL (0.3ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 11, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 12, NULL)
2631
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 12 AND `collection_audits`.child_record_type = 'TestChild')
2632
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2633
+ SQL (0.0ms) SAVEPOINT active_record_1
2634
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'another parent', '2011-08-01 03:27:39')
2635
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2636
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2637
+ SQL (0.0ms) SAVEPOINT active_record_1
2638
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 11, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'remove', 'TestParent', 12, NULL)
2639
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 12, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 12, NULL)
2640
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:39', `test_parent_id` = 12 WHERE `test_children`.`id` = 12
2641
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2642
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2643
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 11 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2644
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
2645
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
2646
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 12 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
2647
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
2648
+ SQL (42.1ms) ROLLBACK
2649
+ SQL (0.1ms) BEGIN
2650
+ SQL (0.3ms) SAVEPOINT active_record_1
2651
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2652
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2653
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2654
+ SQL (0.1ms) SAVEPOINT active_record_1
2655
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 13)
2656
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2657
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2658
+ SQL (44.2ms) ROLLBACK
2659
+ SQL (0.0ms) BEGIN
2660
+ SQL (0.0ms) SAVEPOINT active_record_1
2661
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:39', 'test parent', '2011-08-01 03:27:39')
2662
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2663
+ SQL (0.0ms) SAVEPOINT active_record_1
2664
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'test child', NULL, NULL, 14)
2665
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2666
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2667
+ SQL (0.0ms) SAVEPOINT active_record_1
2668
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:39', '2011-08-01 03:27:39', NULL, NULL, 'another child', NULL, NULL, 14)
2669
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 14, '2011-08-01 03:27:39', 'test_children', 'TestChild', 'add', 'TestParent', 15, NULL)
2670
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 15 AND `collection_audits`.child_record_type = 'TestChild')
2671
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2672
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2673
+ SQL (96.3ms) ROLLBACK
2674
+ SQL (0.1ms) BEGIN
2675
+ SQL (0.0ms) SAVEPOINT active_record_1
2676
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2677
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2678
+ SQL (0.1ms) SAVEPOINT active_record_1
2679
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, 15, 'test child', NULL, NULL, NULL)
2680
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 15, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'add', 'TestParent', 16, NULL)
2681
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 16 AND `collection_audits`.child_record_type = 'TestChild')
2682
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2683
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2684
+ SQL (0.0ms) SAVEPOINT active_record_1
2685
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 15, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 16, NULL)
2686
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:40', `name` = 'new name' WHERE `test_children`.`id` = 16
2687
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2688
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2689
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2690
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 16 LIMIT 1
2691
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2692
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 15 LIMIT 1
2693
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2694
+ SQL (43.1ms) ROLLBACK
2695
+ SQL (0.0ms) BEGIN
2696
+ SQL (0.1ms) SAVEPOINT active_record_1
2697
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2698
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2699
+ SQL (0.1ms) SAVEPOINT active_record_1
2700
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', 16, NULL, 'test child', NULL, NULL, NULL)
2701
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 16, '2011-08-01 03:27:40', 'test_children_with_only', 'TestChild', 'add', 'TestParent', 17, NULL)
2702
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 17 AND `collection_audits`.child_record_type = 'TestChild')
2703
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2704
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2705
+ SQL (0.1ms) SAVEPOINT active_record_1
2706
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 16, '2011-08-01 03:27:40', 'test_children_with_only', 'TestChild', 'modify', 'TestParent', 17, NULL)
2707
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:40', `name` = 'new name' WHERE `test_children`.`id` = 17
2708
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2709
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2710
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2711
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 17 LIMIT 1
2712
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2713
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 16 LIMIT 1
2714
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2715
+ SQL (46.7ms) ROLLBACK
2716
+ SQL (0.0ms) BEGIN
2717
+ SQL (0.1ms) SAVEPOINT active_record_1
2718
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2719
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2720
+ SQL (0.0ms) SAVEPOINT active_record_1
2721
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', 17, NULL, 'test child', NULL, NULL, NULL)
2722
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 17, '2011-08-01 03:27:40', 'test_children_with_only', 'TestChild', 'add', 'TestParent', 18, NULL)
2723
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 18 AND `collection_audits`.child_record_type = 'TestChild')
2724
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2725
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2726
+ SQL (0.0ms) SAVEPOINT active_record_1
2727
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:40', `description` = 'new description' WHERE `test_children`.`id` = 18
2728
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2729
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2730
+ SQL (32.1ms) ROLLBACK
2731
+ SQL (0.0ms) BEGIN
2732
+ SQL (0.0ms) SAVEPOINT active_record_1
2733
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2734
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2735
+ SQL (0.0ms) SAVEPOINT active_record_1
2736
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, NULL, 'test child', NULL, 18, NULL)
2737
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 18, '2011-08-01 03:27:40', 'test_children_with_except', 'TestChild', 'add', 'TestParent', 19, NULL)
2738
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 19 AND `collection_audits`.child_record_type = 'TestChild')
2739
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2740
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2741
+ SQL (0.0ms) SAVEPOINT active_record_1
2742
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:40', `name` = 'new name' WHERE `test_children`.`id` = 19
2743
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2744
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2745
+ SQL (42.0ms) ROLLBACK
2746
+ SQL (0.1ms) BEGIN
2747
+ SQL (0.1ms) SAVEPOINT active_record_1
2748
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2749
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2750
+ SQL (0.1ms) SAVEPOINT active_record_1
2751
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, NULL, 'test child', NULL, 19, NULL)
2752
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 19, '2011-08-01 03:27:40', 'test_children_with_except', 'TestChild', 'add', 'TestParent', 20, NULL)
2753
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 20 AND `collection_audits`.child_record_type = 'TestChild')
2754
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2755
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2756
+ SQL (0.1ms) SAVEPOINT active_record_1
2757
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 19, '2011-08-01 03:27:40', 'test_children_with_except', 'TestChild', 'modify', 'TestParent', 20, NULL)
2758
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:27:40', `description` = 'new name' WHERE `test_children`.`id` = 20
2759
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2760
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2761
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2762
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 20 LIMIT 1
2763
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2764
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 19 LIMIT 1
2765
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2766
+ SQL (44.8ms) ROLLBACK
2767
+ SQL (0.0ms) BEGIN
2768
+ SQL (0.0ms) SAVEPOINT active_record_1
2769
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2770
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2771
+ SQL (0.0ms) SAVEPOINT active_record_1
2772
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, 20, 'test child', NULL, NULL, NULL)
2773
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 20, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'add', 'TestParent', 21, NULL)
2774
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 21 AND `collection_audits`.child_record_type = 'TestChild')
2775
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2776
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2777
+ SQL (0.1ms) SAVEPOINT active_record_1
2778
+ SQL (0.3ms) describe `test_grandchildren`
2779
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `name`, `created_at`, `updated_at`) VALUES (21, 'test grandchild', '2011-08-01 03:27:40', '2011-08-01 03:27:40')
2780
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 21, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'add', 'TestChild', 1, NULL)
2781
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
2782
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 20, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 21, 26)
2783
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGrandchild')
2784
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2785
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2786
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 2
2787
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 1 LIMIT 1
2788
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
2789
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
2790
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 20 LIMIT 1
2791
+ SQL (34.2ms) ROLLBACK
2792
+ SQL (0.0ms) BEGIN
2793
+ SQL (0.0ms) SAVEPOINT active_record_1
2794
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2795
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2796
+ SQL (0.0ms) SAVEPOINT active_record_1
2797
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, 21, 'test child', NULL, NULL, NULL)
2798
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 21, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'add', 'TestParent', 22, NULL)
2799
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 22 AND `collection_audits`.child_record_type = 'TestChild')
2800
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2801
+ SQL (0.0ms) SAVEPOINT active_record_1
2802
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, 21, 'another child', NULL, NULL, NULL)
2803
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 21, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'add', 'TestParent', 23, NULL)
2804
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 23 AND `collection_audits`.child_record_type = 'TestChild')
2805
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2806
+ SQL (0.0ms) SAVEPOINT active_record_1
2807
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `name`, `created_at`, `updated_at`) VALUES (22, 'test grandchild', '2011-08-01 03:27:40', '2011-08-01 03:27:40')
2808
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 22, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'add', 'TestChild', 2, NULL)
2809
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2810
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 21, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 22, 30)
2811
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 2 AND `collection_audits`.child_record_type = 'TestGrandchild')
2812
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2813
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2814
+ SQL (0.0ms) SAVEPOINT active_record_1
2815
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 22, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'remove', 'TestChild', 2, NULL)
2816
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2817
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 21, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 22, 32)
2818
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 23, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'add', 'TestChild', 2, NULL)
2819
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
2820
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 21, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 23, 34)
2821
+ AREL (0.1ms) UPDATE `test_grandchildren` SET `test_child_id` = 23, `updated_at` = '2011-08-01 03:27:40' WHERE `test_grandchildren`.`id` = 2
2822
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2823
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2824
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 4
2825
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
2826
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2827
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
2828
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
2829
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
2830
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
2831
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
2832
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
2833
+ SQL (48.1ms) ROLLBACK
2834
+ SQL (0.1ms) BEGIN
2835
+ SQL (0.1ms) SAVEPOINT active_record_1
2836
+ AREL (0.3ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2837
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2838
+ SQL (0.1ms) SAVEPOINT active_record_1
2839
+ AREL (0.3ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, 22, 'test child', NULL, NULL, NULL)
2840
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 22, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'add', 'TestParent', 24, NULL)
2841
+ CollectionAudit Load (0.3ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 24 AND `collection_audits`.child_record_type = 'TestChild')
2842
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2843
+ SQL (0.0ms) SAVEPOINT active_record_1
2844
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `name`, `created_at`, `updated_at`) VALUES (24, 'test grandchild', '2011-08-01 03:27:40', '2011-08-01 03:27:40')
2845
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 24, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'add', 'TestChild', 3, NULL)
2846
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2847
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 22, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 24, 37)
2848
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 3 AND `collection_audits`.child_record_type = 'TestGrandchild')
2849
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2850
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2851
+ SQL (0.0ms) SAVEPOINT active_record_1
2852
+ SQL (0.3ms) describe `test_great_grandchildren`
2853
+ AREL (0.1ms) INSERT INTO `test_great_grandchildren` (`created_at`, `name`, `test_grandchild_id`, `updated_at`) VALUES ('2011-08-01 03:27:40', 'test great-grandchild', 3, '2011-08-01 03:27:40')
2854
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 3, '2011-08-01 03:27:40', 'test_great_grandchildren', 'TestGreatGrandchild', 'add', 'TestGrandchild', 1, NULL)
2855
+ TestGrandchild Load (0.2ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
2856
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 24, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'modify', 'TestChild', 3, 39)
2857
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2858
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 22, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 24, 40)
2859
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGreatGrandchild')
2860
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2861
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2862
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 3
2863
+ TestGreatGrandchild Load (0.1ms) SELECT `test_great_grandchildren`.* FROM `test_great_grandchildren` WHERE `test_great_grandchildren`.`id` = 1 LIMIT 1
2864
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
2865
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
2866
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2867
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
2868
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 22 LIMIT 1
2869
+ SQL (43.6ms) ROLLBACK
2870
+ SQL (0.0ms) BEGIN
2871
+ SQL (0.1ms) SAVEPOINT active_record_1
2872
+ AREL (0.3ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:40', 'test parent', '2011-08-01 03:27:40')
2873
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2874
+ SQL (0.1ms) SAVEPOINT active_record_1
2875
+ AREL (0.2ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, 23, 'test child', NULL, NULL, NULL)
2876
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 23, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'add', 'TestParent', 25, NULL)
2877
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 25 AND `collection_audits`.child_record_type = 'TestChild')
2878
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2879
+ SQL (0.0ms) SAVEPOINT active_record_1
2880
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`test_child_id`, `name`, `created_at`, `updated_at`) VALUES (25, 'test grandchild', '2011-08-01 03:27:40', '2011-08-01 03:27:40')
2881
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 25, '2011-08-01 03:27:40', 'test_grandchildren', 'TestGrandchild', 'add', 'TestChild', 4, NULL)
2882
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 25 LIMIT 1
2883
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 23, '2011-08-01 03:27:40', 'other_test_children', 'TestChild', 'modify', 'TestParent', 25, 43)
2884
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 4 AND `collection_audits`.child_record_type = 'TestGrandchild')
2885
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2886
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 23 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children')) ORDER BY collection_audits.id DESC LIMIT 1
2887
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 25 AND `collection_audits`.parent_record_type = 'TestChild' AND (association = 'test_grandchildren')) ORDER BY collection_audits.id DESC LIMIT 1
2888
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 43 LIMIT 1
2889
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_audit_id = 43)
2890
+ SQL (59.3ms) ROLLBACK
2891
+ SQL (0.0ms) BEGIN
2892
+ SQL (0.0ms) SAVEPOINT active_record_1
2893
+ AREL (0.2ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, NULL, 'test parent', NULL, NULL, NULL)
2894
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2895
+ SQL (0.1ms) SAVEPOINT active_record_1
2896
+ SQL (0.3ms) describe `test_soft_delete_grandchildren`
2897
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `created_at`, `deleted`, `updated_at`) VALUES (26, 'test child', '2011-08-01 03:27:40', NULL, '2011-08-01 03:27:40')
2898
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 26, '2011-08-01 03:27:40', 'test_soft_delete_grandchildren', 'TestSoftDeleteGrandchild', 'add', 'TestChild', 1, NULL)
2899
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
2900
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
2901
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2902
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2903
+ SQL (0.0ms) SAVEPOINT active_record_1
2904
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 26, '2011-08-01 03:27:40', 'test_soft_delete_grandchildren', 'TestSoftDeleteGrandchild', 'remove', 'TestChild', 1, NULL)
2905
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
2906
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `deleted` = 1, `updated_at` = '2011-08-01 03:27:40' WHERE `test_soft_delete_grandchildren`.`id` = 1
2907
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2908
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2909
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2910
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2911
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
2912
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2913
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 1 LIMIT 1
2914
+ SQL (48.0ms) ROLLBACK
2915
+ SQL (0.0ms) BEGIN
2916
+ SQL (0.0ms) SAVEPOINT active_record_1
2917
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:40', '2011-08-01 03:27:40', NULL, NULL, 'test parent', NULL, NULL, NULL)
2918
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2919
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2920
+ SQL (0.0ms) SAVEPOINT active_record_1
2921
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `created_at`, `deleted`, `updated_at`) VALUES (27, 'test child', '2011-08-01 03:27:40', 1, '2011-08-01 03:27:40')
2922
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2923
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2924
+ SQL (48.1ms) ROLLBACK
2925
+ SQL (0.0ms) BEGIN
2926
+ SQL (0.1ms) SAVEPOINT active_record_1
2927
+ AREL (0.2ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:41', '2011-08-01 03:27:41', NULL, NULL, 'test parent', NULL, NULL, NULL)
2928
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2929
+ SQL (0.0ms) SAVEPOINT active_record_1
2930
+ AREL (0.2ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `created_at`, `deleted`, `updated_at`) VALUES (28, 'test child', '2011-08-01 03:27:41', 1, '2011-08-01 03:27:41')
2931
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2932
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
2933
+ SQL (0.1ms) SAVEPOINT active_record_1
2934
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `name` = 'test child with new name', `updated_at` = '2011-08-01 03:27:41' WHERE `test_soft_delete_grandchildren`.`id` = 3
2935
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2936
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
2937
+ SQL (50.7ms) ROLLBACK
2938
+ SQL (0.1ms) BEGIN
2939
+ SQL (0.1ms) SAVEPOINT active_record_1
2940
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:41', '2011-08-01 03:27:41', NULL, NULL, 'test parent', NULL, NULL, NULL)
2941
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2942
+ SQL (0.0ms) SAVEPOINT active_record_1
2943
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `created_at`, `deleted`, `updated_at`) VALUES (29, 'test child', '2011-08-01 03:27:41', 1, '2011-08-01 03:27:41')
2944
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2945
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2946
+ SQL (0.0ms) SAVEPOINT active_record_1
2947
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 29, '2011-08-01 03:27:41', 'test_soft_delete_grandchildren', 'TestSoftDeleteGrandchild', 'add', 'TestChild', 4, NULL)
2948
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
2949
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `deleted` = 0, `updated_at` = '2011-08-01 03:27:41' WHERE `test_soft_delete_grandchildren`.`id` = 4
2950
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2951
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2952
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2953
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2954
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
2955
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2956
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 4 LIMIT 1
2957
+ SQL (44.0ms) ROLLBACK
2958
+ SQL (0.0ms) BEGIN
2959
+ SQL (0.0ms) SAVEPOINT active_record_1
2960
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `name`, `created_at`) VALUES ('2011-08-01 03:27:41', 'test parent', '2011-08-01 03:27:41')
2961
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2962
+ SQL (0.1ms) SAVEPOINT active_record_1
2963
+ AREL (0.1ms) INSERT INTO `test_children` (`updated_at`, `created_at`, `test_parent_with_only_id`, `other_test_parent_id`, `name`, `description`, `test_parent_with_except_id`, `test_parent_id`) VALUES ('2011-08-01 03:27:41', '2011-08-01 03:27:41', NULL, 24, 'test child', NULL, NULL, NULL)
2964
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 24, '2011-08-01 03:27:41', 'other_test_children', 'TestChild', 'add', 'TestParent', 30, NULL)
2965
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 30 AND `collection_audits`.child_record_type = 'TestChild')
2966
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2967
+ SQL (0.0ms) SAVEPOINT active_record_1
2968
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`test_child_id`, `name`, `created_at`, `deleted`, `updated_at`) VALUES (30, 'test grandchild', '2011-08-01 03:27:41', NULL, '2011-08-01 03:27:41')
2969
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 30, '2011-08-01 03:27:41', 'test_soft_delete_grandchildren', 'TestSoftDeleteGrandchild', 'add', 'TestChild', 5, NULL)
2970
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2971
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 24, '2011-08-01 03:27:41', 'other_test_children', 'TestChild', 'modify', 'TestParent', 30, 49)
2972
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
2973
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
2974
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2975
+ SQL (0.0ms) SAVEPOINT active_record_1
2976
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 30, '2011-08-01 03:27:41', 'test_soft_delete_grandchildren', 'TestSoftDeleteGrandchild', 'remove', 'TestChild', 5, NULL)
2977
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2978
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `user_type`, `parent_record_id`, `created_at`, `association`, `child_record_type`, `action`, `parent_record_type`, `child_record_id`, `child_audit_id`) VALUES (NULL, NULL, 24, '2011-08-01 03:27:41', 'other_test_children', 'TestChild', 'modify', 'TestParent', 30, 51)
2979
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `deleted` = 1, `updated_at` = '2011-08-01 03:27:41' WHERE `test_soft_delete_grandchildren`.`id` = 5
2980
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
2981
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
2982
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
2983
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2984
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 24 LIMIT 1
2985
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 51 LIMIT 1
2986
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 5 LIMIT 1
2987
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
2988
+ SQL (49.7ms) ROLLBACK
2989
+ SQL (1.3ms) SHOW TABLES
2990
+ SQL (79.3ms) DROP TABLE `test_parents`
2991
+ SQL (122.4ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2992
+ SQL (1.4ms) SHOW TABLES
2993
+ SQL (42.7ms) DROP TABLE `test_children`
2994
+ SQL (100.2ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2995
+ SQL (4.1ms) SHOW TABLES
2996
+ SQL (49.6ms) DROP TABLE `test_grandchildren`
2997
+ SQL (122.4ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
2998
+ SQL (4.1ms) SHOW TABLES
2999
+ SQL (49.7ms) DROP TABLE `test_great_grandchildren`
3000
+ SQL (111.1ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3001
+ SQL (1.6ms) SHOW TABLES
3002
+ SQL (42.7ms) DROP TABLE `test_soft_delete_grandchildren`
3003
+ SQL (177.7ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3004
+ SQL (1.4ms) SHOW TABLES
3005
+ SQL (42.7ms) DROP TABLE `collection_audits`
3006
+ SQL (99.8ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
3007
+ SQL (1.4ms) SHOW TABLES
3008
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
3009
+ SQL (1.3ms) SHOW TABLES
3010
+ SQL (52.6ms) DROP TABLE `test_parents`
3011
+ SQL (122.4ms) CREATE TABLE `test_parents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3012
+ SQL (4.2ms) SHOW TABLES
3013
+ SQL (49.4ms) DROP TABLE `test_children`
3014
+ SQL (99.9ms) CREATE TABLE `test_children` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` varchar(255), `test_parent_id` int(11), `other_test_parent_id` int(11), `test_parent_with_only_id` int(11), `test_parent_with_except_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3015
+ SQL (1.4ms) SHOW TABLES
3016
+ SQL (53.9ms) DROP TABLE `test_grandchildren`
3017
+ SQL (88.9ms) CREATE TABLE `test_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3018
+ SQL (1.4ms) SHOW TABLES
3019
+ SQL (31.6ms) DROP TABLE `test_great_grandchildren`
3020
+ SQL (88.7ms) CREATE TABLE `test_great_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `test_grandchild_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3021
+ SQL (1.6ms) SHOW TABLES
3022
+ SQL (42.5ms) DROP TABLE `test_soft_delete_grandchildren`
3023
+ SQL (111.2ms) CREATE TABLE `test_soft_delete_grandchildren` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `deleted` tinyint(1), `test_child_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
3024
+ SQL (4.1ms) SHOW TABLES
3025
+ SQL (49.2ms) DROP TABLE `collection_audits`
3026
+ SQL (99.9ms) CREATE TABLE `collection_audits` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_record_id` int(11), `parent_record_type` varchar(255), `child_record_id` int(11), `child_record_type` varchar(255), `user_id` int(11), `user_type` varchar(255), `child_audit_id` int(11), `action` varchar(255), `association` varchar(255), `created_at` datetime) ENGINE=InnoDB
3027
+ SQL (1.4ms) SHOW TABLES
3028
+ SQL (0.1ms) SELECT version FROM `schema_migrations`
3029
+ SQL (0.1ms) BEGIN
3030
+ SQL (0.0ms) ROLLBACK
3031
+ SQL (0.0ms) BEGIN
3032
+ SQL (0.1ms) ROLLBACK
3033
+ SQL (0.0ms) BEGIN
3034
+ SQL (0.1ms) ROLLBACK
3035
+ SQL (0.0ms) BEGIN
3036
+ SQL (0.0ms) ROLLBACK
3037
+ SQL (0.0ms) BEGIN
3038
+ SQL (0.0ms) ROLLBACK
3039
+ SQL (0.0ms) BEGIN
3040
+ SQL (0.0ms) ROLLBACK
3041
+ SQL (0.0ms) BEGIN
3042
+ SQL (0.0ms) ROLLBACK
3043
+ SQL (0.0ms) BEGIN
3044
+ SQL (0.1ms) ROLLBACK
3045
+ SQL (0.0ms) BEGIN
3046
+ SQL (0.0ms) ROLLBACK
3047
+ SQL (0.1ms) BEGIN
3048
+ SQL (0.0ms) ROLLBACK
3049
+ SQL (0.0ms) BEGIN
3050
+ SQL (0.1ms) SAVEPOINT active_record_1
3051
+ SQL (1.4ms) SHOW TABLES
3052
+ SQL (0.3ms) describe `test_parents`
3053
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3054
+ SQL (0.2ms) RELEASE SAVEPOINT active_record_1
3055
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3056
+ SQL (0.1ms) SAVEPOINT active_record_1
3057
+ SQL (0.4ms) describe `test_children`
3058
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', 1, NULL)
3059
+ SQL (0.3ms) describe `collection_audits`
3060
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 1, 'add', 1, NULL)
3061
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestChild')
3062
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3063
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3064
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3065
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 1 LIMIT 1
3066
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3067
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 1 LIMIT 1
3068
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3069
+ SQL (79.5ms) ROLLBACK
3070
+ SQL (0.1ms) BEGIN
3071
+ SQL (0.0ms) SAVEPOINT active_record_1
3072
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3073
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3074
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3075
+ SQL (0.1ms) SAVEPOINT active_record_1
3076
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', NULL, NULL)
3077
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3078
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3079
+ SQL (39.4ms) ROLLBACK
3080
+ SQL (0.0ms) BEGIN
3081
+ SQL (0.1ms) SAVEPOINT active_record_1
3082
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', NULL, NULL)
3083
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3084
+ SQL (0.0ms) SAVEPOINT active_record_1
3085
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3086
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3087
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3088
+ SQL (0.1ms) SAVEPOINT active_record_1
3089
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 3, 'add', 3, NULL)
3090
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:28:25', `test_parent_id` = 3 WHERE `test_children`.`id` = 3
3091
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3092
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3093
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3094
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 3 LIMIT 1
3095
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3096
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 3 LIMIT 1
3097
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3098
+ SQL (41.0ms) ROLLBACK
3099
+ SQL (0.0ms) BEGIN
3100
+ SQL (0.1ms) SAVEPOINT active_record_1
3101
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', NULL, NULL)
3102
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3103
+ SQL (0.0ms) SAVEPOINT active_record_1
3104
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3105
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3106
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3107
+ SQL (0.0ms) SAVEPOINT active_record_1
3108
+ AREL (0.2ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:28:25' WHERE `test_children`.`id` = 4
3109
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3111
+ SQL (48.0ms) ROLLBACK
3112
+ SQL (0.0ms) BEGIN
3113
+ SQL (0.0ms) SAVEPOINT active_record_1
3114
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3115
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3116
+ SQL (0.0ms) SAVEPOINT active_record_1
3117
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', 5, NULL)
3118
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 5, 'add', 5, NULL)
3119
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestChild')
3120
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3121
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3122
+ SQL (0.0ms) SAVEPOINT active_record_1
3123
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 5, 'remove', 5, NULL)
3124
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:28:25', `test_parent_id` = NULL WHERE `test_children`.`id` = 5
3125
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3126
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3127
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3128
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 5 LIMIT 1
3129
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3130
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 5 LIMIT 1
3131
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3132
+ SQL (47.1ms) ROLLBACK
3133
+ SQL (0.0ms) BEGIN
3134
+ SQL (0.0ms) SAVEPOINT active_record_1
3135
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3136
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3137
+ SQL (0.0ms) SAVEPOINT active_record_1
3138
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', 6, NULL)
3139
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 6, 'add', 6, NULL)
3140
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 6 AND `collection_audits`.child_record_type = 'TestChild')
3141
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3142
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3143
+ SQL (0.0ms) SAVEPOINT active_record_1
3144
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 6
3145
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 6, 'remove', 6, NULL)
3146
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3147
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3148
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3149
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3150
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 6 LIMIT 1
3151
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3152
+ SQL (49.4ms) ROLLBACK
3153
+ SQL (0.1ms) BEGIN
3154
+ SQL (0.1ms) SAVEPOINT active_record_1
3155
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', NULL, NULL)
3156
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3157
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3158
+ SQL (0.1ms) SAVEPOINT active_record_1
3159
+ AREL (0.1ms) DELETE FROM `test_children` WHERE `test_children`.`id` = 7
3160
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3161
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3162
+ SQL (48.6ms) ROLLBACK
3163
+ SQL (0.0ms) BEGIN
3164
+ SQL (0.0ms) SAVEPOINT active_record_1
3165
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3166
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3167
+ SQL (0.0ms) SAVEPOINT active_record_1
3168
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', 7, NULL)
3169
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 8, 'add', 7, NULL)
3170
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 8 AND `collection_audits`.child_record_type = 'TestChild')
3171
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3172
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3173
+ SQL (45.8ms) ROLLBACK
3174
+ SQL (0.0ms) BEGIN
3175
+ SQL (0.0ms) SAVEPOINT active_record_1
3176
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:25', '2011-08-01 03:28:25', 'test parent')
3177
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3178
+ SQL (0.0ms) SAVEPOINT active_record_1
3179
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:25', 'test child', '2011-08-01 03:28:25', 8, NULL)
3180
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:25', 'test_children', 9, 'add', 8, NULL)
3181
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 9 AND `collection_audits`.child_record_type = 'TestChild')
3182
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3183
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3184
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 8 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
3185
+ SQL (43.3ms) ROLLBACK
3186
+ SQL (0.0ms) BEGIN
3187
+ SQL (0.0ms) SAVEPOINT active_record_1
3188
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3189
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3190
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
3191
+ SQL (0.1ms) SAVEPOINT active_record_1
3192
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 9, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3193
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'other_test_children', 10, 'add', 9, NULL)
3194
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 10 AND `collection_audits`.child_record_type = 'TestChild')
3195
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3196
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3197
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.other_test_parent_id = 9)
3198
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE (`test_children`.test_parent_id = 9)
3199
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
3200
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
3201
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 9 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
3202
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 10 LIMIT 1
3203
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 9 LIMIT 1
3204
+ SQL (51.5ms) ROLLBACK
3205
+ SQL (0.1ms) BEGIN
3206
+ SQL (0.0ms) SAVEPOINT active_record_1
3207
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3208
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3209
+ SQL (0.1ms) SAVEPOINT active_record_1
3210
+ AREL (0.2ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', 10, NULL)
3211
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children', 11, 'add', 10, NULL)
3212
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 11 AND `collection_audits`.child_record_type = 'TestChild')
3213
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3214
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3215
+ SQL (0.1ms) SAVEPOINT active_record_1
3216
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children', 11, 'remove', 10, NULL)
3217
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'other_test_children', 11, 'add', 10, NULL)
3218
+ AREL (0.2ms) UPDATE `test_children` SET `other_test_parent_id` = 10, `updated_at` = '2011-08-01 03:28:26', `test_parent_id` = NULL WHERE `test_children`.`id` = 11
3219
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3220
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3221
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
3222
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
3223
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
3224
+ CollectionAudit Load (0.3ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 10 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children'))
3225
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 11 LIMIT 1
3226
+ SQL (50.7ms) ROLLBACK
3227
+ SQL (0.1ms) BEGIN
3228
+ SQL (0.0ms) SAVEPOINT active_record_1
3229
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3230
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3231
+ SQL (0.1ms) SAVEPOINT active_record_1
3232
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', 11, NULL)
3233
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children', 12, 'add', 11, NULL)
3234
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 12 AND `collection_audits`.child_record_type = 'TestChild')
3235
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3236
+ SQL (0.0ms) SAVEPOINT active_record_1
3237
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'another parent')
3238
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3239
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3240
+ SQL (0.1ms) SAVEPOINT active_record_1
3241
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children', 12, 'remove', 11, NULL)
3242
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children', 12, 'add', 12, NULL)
3243
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:28:26', `test_parent_id` = 12 WHERE `test_children`.`id` = 12
3244
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3245
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3246
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 11 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
3247
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
3248
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
3249
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 12 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'test_children'))
3250
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 12 LIMIT 1
3251
+ SQL (56.0ms) ROLLBACK
3252
+ SQL (0.0ms) BEGIN
3253
+ SQL (0.0ms) SAVEPOINT active_record_1
3254
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3255
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3256
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
3257
+ SQL (0.1ms) SAVEPOINT active_record_1
3258
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', 13, NULL)
3259
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3260
+ SQL (0.0ms) SELECT COUNT(*) FROM `collection_audits`
3261
+ SQL (47.5ms) ROLLBACK
3262
+ SQL (0.1ms) BEGIN
3263
+ SQL (0.1ms) SAVEPOINT active_record_1
3264
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3265
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3266
+ SQL (0.0ms) SAVEPOINT active_record_1
3267
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', 14, NULL)
3268
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3269
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3270
+ SQL (0.0ms) SAVEPOINT active_record_1
3271
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:26', 'another child', '2011-08-01 03:28:26', 14, NULL)
3272
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children', 15, 'add', 14, NULL)
3273
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 15 AND `collection_audits`.child_record_type = 'TestChild')
3274
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3275
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3276
+ SQL (41.5ms) ROLLBACK
3277
+ SQL (0.1ms) BEGIN
3278
+ SQL (0.0ms) SAVEPOINT active_record_1
3279
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3280
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3281
+ SQL (0.0ms) SAVEPOINT active_record_1
3282
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 15, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3283
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'other_test_children', 16, 'add', 15, NULL)
3284
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 16 AND `collection_audits`.child_record_type = 'TestChild')
3285
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3286
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3287
+ SQL (0.0ms) SAVEPOINT active_record_1
3288
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'other_test_children', 16, 'modify', 15, NULL)
3289
+ AREL (0.1ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:28:26' WHERE `test_children`.`id` = 16
3290
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3291
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3292
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3293
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 16 LIMIT 1
3294
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3295
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 15 LIMIT 1
3296
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3297
+ SQL (47.6ms) ROLLBACK
3298
+ SQL (0.1ms) BEGIN
3299
+ SQL (0.1ms) SAVEPOINT active_record_1
3300
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3301
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3302
+ SQL (0.1ms) SAVEPOINT active_record_1
3303
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, 16, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3304
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children_with_only', 17, 'add', 16, NULL)
3305
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 17 AND `collection_audits`.child_record_type = 'TestChild')
3306
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3307
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3308
+ SQL (0.1ms) SAVEPOINT active_record_1
3309
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children_with_only', 17, 'modify', 16, NULL)
3310
+ AREL (0.2ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:28:26' WHERE `test_children`.`id` = 17
3311
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3312
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3313
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3314
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 17 LIMIT 1
3315
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3316
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 16 LIMIT 1
3317
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3318
+ SQL (99.4ms) ROLLBACK
3319
+ SQL (0.0ms) BEGIN
3320
+ SQL (0.0ms) SAVEPOINT active_record_1
3321
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3322
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3323
+ SQL (0.0ms) SAVEPOINT active_record_1
3324
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, 17, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3325
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children_with_only', 18, 'add', 17, NULL)
3326
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 18 AND `collection_audits`.child_record_type = 'TestChild')
3327
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3328
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3329
+ SQL (0.0ms) SAVEPOINT active_record_1
3330
+ AREL (0.2ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:28:26', `description` = 'new description' WHERE `test_children`.`id` = 18
3331
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3332
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3333
+ SQL (54.1ms) ROLLBACK
3334
+ SQL (0.0ms) BEGIN
3335
+ SQL (0.0ms) SAVEPOINT active_record_1
3336
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3337
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3338
+ SQL (0.1ms) SAVEPOINT active_record_1
3339
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (18, NULL, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3340
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children_with_except', 19, 'add', 18, NULL)
3341
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 19 AND `collection_audits`.child_record_type = 'TestChild')
3342
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3343
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3344
+ SQL (0.1ms) SAVEPOINT active_record_1
3345
+ AREL (0.1ms) UPDATE `test_children` SET `name` = 'new name', `updated_at` = '2011-08-01 03:28:26' WHERE `test_children`.`id` = 19
3346
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3347
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3348
+ SQL (42.4ms) ROLLBACK
3349
+ SQL (0.0ms) BEGIN
3350
+ SQL (0.0ms) SAVEPOINT active_record_1
3351
+ AREL (0.2ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3352
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3353
+ SQL (0.0ms) SAVEPOINT active_record_1
3354
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (19, NULL, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3355
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children_with_except', 20, 'add', 19, NULL)
3356
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 20 AND `collection_audits`.child_record_type = 'TestChild')
3357
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3358
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
3359
+ SQL (0.1ms) SAVEPOINT active_record_1
3360
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'test_children_with_except', 20, 'modify', 19, NULL)
3361
+ AREL (0.1ms) UPDATE `test_children` SET `updated_at` = '2011-08-01 03:28:26', `description` = 'new name' WHERE `test_children`.`id` = 20
3362
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3363
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3364
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3365
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 20 LIMIT 1
3366
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3367
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 19 LIMIT 1
3368
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3369
+ SQL (47.0ms) ROLLBACK
3370
+ SQL (0.0ms) BEGIN
3371
+ SQL (0.0ms) SAVEPOINT active_record_1
3372
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3373
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3374
+ SQL (0.0ms) SAVEPOINT active_record_1
3375
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 20, NULL, '2011-08-01 03:28:26', 'test child', '2011-08-01 03:28:26', NULL, NULL)
3376
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'other_test_children', 21, 'add', 20, NULL)
3377
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 21 AND `collection_audits`.child_record_type = 'TestChild')
3378
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3379
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3380
+ SQL (0.1ms) SAVEPOINT active_record_1
3381
+ SQL (0.2ms) describe `test_grandchildren`
3382
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `updated_at`, `test_child_id`, `created_at`) VALUES ('test grandchild', '2011-08-01 03:28:26', 21, '2011-08-01 03:28:26')
3383
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:26', 'test_grandchildren', 1, 'add', 21, NULL)
3384
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
3385
+ AREL (0.4ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 26, 'TestChild', 'TestParent', '2011-08-01 03:28:26', 'other_test_children', 21, 'modify', 20, NULL)
3386
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGrandchild')
3387
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3388
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3389
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 2
3390
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 1 LIMIT 1
3391
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
3392
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 21 LIMIT 1
3393
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 20 LIMIT 1
3394
+ SQL (53.7ms) ROLLBACK
3395
+ SQL (0.0ms) BEGIN
3396
+ SQL (0.0ms) SAVEPOINT active_record_1
3397
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:26', '2011-08-01 03:28:26', 'test parent')
3398
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3399
+ SQL (0.1ms) SAVEPOINT active_record_1
3400
+ AREL (0.2ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 21, NULL, '2011-08-01 03:28:27', 'test child', '2011-08-01 03:28:27', NULL, NULL)
3401
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 22, 'add', 21, NULL)
3402
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 22 AND `collection_audits`.child_record_type = 'TestChild')
3403
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3404
+ SQL (0.1ms) SAVEPOINT active_record_1
3405
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 21, NULL, '2011-08-01 03:28:27', 'another child', '2011-08-01 03:28:27', NULL, NULL)
3406
+ AREL (0.2ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 23, 'add', 21, NULL)
3407
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 23 AND `collection_audits`.child_record_type = 'TestChild')
3408
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3409
+ SQL (0.1ms) SAVEPOINT active_record_1
3410
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `updated_at`, `test_child_id`, `created_at`) VALUES ('test grandchild', '2011-08-01 03:28:27', 22, '2011-08-01 03:28:27')
3411
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_grandchildren', 2, 'add', 22, NULL)
3412
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
3413
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 30, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 22, 'modify', 21, NULL)
3414
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 2 AND `collection_audits`.child_record_type = 'TestGrandchild')
3415
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3416
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3417
+ SQL (0.1ms) SAVEPOINT active_record_1
3418
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_grandchildren', 2, 'remove', 22, NULL)
3419
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
3420
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 32, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 22, 'modify', 21, NULL)
3421
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_grandchildren', 2, 'add', 23, NULL)
3422
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
3423
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 34, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 23, 'modify', 21, NULL)
3424
+ AREL (0.1ms) UPDATE `test_grandchildren` SET `updated_at` = '2011-08-01 03:28:27', `test_child_id` = 23 WHERE `test_grandchildren`.`id` = 2
3425
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3426
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3427
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 4
3428
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
3429
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
3430
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 22 LIMIT 1
3431
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
3432
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 2 LIMIT 1
3433
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
3434
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 23 LIMIT 1
3435
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 21 LIMIT 1
3436
+ SQL (128.5ms) ROLLBACK
3437
+ SQL (0.1ms) BEGIN
3438
+ SQL (0.1ms) SAVEPOINT active_record_1
3439
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:27', '2011-08-01 03:28:27', 'test parent')
3440
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3441
+ SQL (0.0ms) SAVEPOINT active_record_1
3442
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 22, NULL, '2011-08-01 03:28:27', 'test child', '2011-08-01 03:28:27', NULL, NULL)
3443
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 24, 'add', 22, NULL)
3444
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 24 AND `collection_audits`.child_record_type = 'TestChild')
3445
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3446
+ SQL (0.0ms) SAVEPOINT active_record_1
3447
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `updated_at`, `test_child_id`, `created_at`) VALUES ('test grandchild', '2011-08-01 03:28:27', 24, '2011-08-01 03:28:27')
3448
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_grandchildren', 3, 'add', 24, NULL)
3449
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
3450
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 37, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 24, 'modify', 22, NULL)
3451
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 3 AND `collection_audits`.child_record_type = 'TestGrandchild')
3452
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3453
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3454
+ SQL (0.1ms) SAVEPOINT active_record_1
3455
+ SQL (0.3ms) describe `test_great_grandchildren`
3456
+ AREL (0.1ms) INSERT INTO `test_great_grandchildren` (`test_grandchild_id`, `name`, `created_at`, `updated_at`) VALUES (3, 'test great-grandchild', '2011-08-01 03:28:27', '2011-08-01 03:28:27')
3457
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGreatGrandchild', 'TestGrandchild', '2011-08-01 03:28:27', 'test_great_grandchildren', 1, 'add', 3, NULL)
3458
+ TestGrandchild Load (0.2ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
3459
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 39, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_grandchildren', 3, 'modify', 24, NULL)
3460
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
3461
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 40, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 24, 'modify', 22, NULL)
3462
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestGreatGrandchild')
3463
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3464
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3465
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY id desc LIMIT 3
3466
+ TestGreatGrandchild Load (0.1ms) SELECT `test_great_grandchildren`.* FROM `test_great_grandchildren` WHERE `test_great_grandchildren`.`id` = 1 LIMIT 1
3467
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
3468
+ TestGrandchild Load (0.1ms) SELECT `test_grandchildren`.* FROM `test_grandchildren` WHERE `test_grandchildren`.`id` = 3 LIMIT 1
3469
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
3470
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 24 LIMIT 1
3471
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 22 LIMIT 1
3472
+ SQL (41.0ms) ROLLBACK
3473
+ SQL (0.0ms) BEGIN
3474
+ SQL (0.0ms) SAVEPOINT active_record_1
3475
+ AREL (0.1ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:27', '2011-08-01 03:28:27', 'test parent')
3476
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3477
+ SQL (0.0ms) SAVEPOINT active_record_1
3478
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 23, NULL, '2011-08-01 03:28:27', 'test child', '2011-08-01 03:28:27', NULL, NULL)
3479
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 25, 'add', 23, NULL)
3480
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 25 AND `collection_audits`.child_record_type = 'TestChild')
3481
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3482
+ SQL (0.1ms) SAVEPOINT active_record_1
3483
+ AREL (0.1ms) INSERT INTO `test_grandchildren` (`name`, `updated_at`, `test_child_id`, `created_at`) VALUES ('test grandchild', '2011-08-01 03:28:27', 25, '2011-08-01 03:28:27')
3484
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_grandchildren', 4, 'add', 25, NULL)
3485
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 25 LIMIT 1
3486
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 43, 'TestChild', 'TestParent', '2011-08-01 03:28:27', 'other_test_children', 25, 'modify', 23, NULL)
3487
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 4 AND `collection_audits`.child_record_type = 'TestGrandchild')
3488
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3489
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 23 AND `collection_audits`.parent_record_type = 'TestParent' AND (association = 'other_test_children')) ORDER BY collection_audits.id DESC LIMIT 1
3490
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.parent_record_id = 25 AND `collection_audits`.parent_record_type = 'TestChild' AND (association = 'test_grandchildren')) ORDER BY collection_audits.id DESC LIMIT 1
3491
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 43 LIMIT 1
3492
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_audit_id = 43)
3493
+ SQL (53.7ms) ROLLBACK
3494
+ SQL (0.1ms) BEGIN
3495
+ SQL (0.1ms) SAVEPOINT active_record_1
3496
+ AREL (0.2ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:27', 'test parent', '2011-08-01 03:28:27', NULL, NULL)
3497
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3498
+ SQL (0.1ms) SAVEPOINT active_record_1
3499
+ SQL (0.3ms) describe `test_soft_delete_grandchildren`
3500
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `updated_at`, `name`, `test_child_id`, `deleted`) VALUES ('2011-08-01 03:28:27', '2011-08-01 03:28:27', 'test child', 26, NULL)
3501
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestSoftDeleteGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_soft_delete_grandchildren', 1, 'add', 26, NULL)
3502
+ TestChild Load (0.2ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
3503
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 1 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
3504
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3505
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3506
+ SQL (0.1ms) SAVEPOINT active_record_1
3507
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestSoftDeleteGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_soft_delete_grandchildren', 1, 'remove', 26, NULL)
3508
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
3509
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:28:27', `deleted` = 1 WHERE `test_soft_delete_grandchildren`.`id` = 1
3510
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3511
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3512
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3513
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3514
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 26 LIMIT 1
3515
+ CollectionAudit Load (0.3ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3516
+ TestSoftDeleteGrandchild Load (0.2ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 1 LIMIT 1
3517
+ SQL (203.2ms) ROLLBACK
3518
+ SQL (0.1ms) BEGIN
3519
+ SQL (0.1ms) SAVEPOINT active_record_1
3520
+ AREL (0.2ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:27', 'test parent', '2011-08-01 03:28:27', NULL, NULL)
3521
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3522
+ SQL (0.2ms) SELECT COUNT(*) FROM `collection_audits`
3523
+ SQL (0.1ms) SAVEPOINT active_record_1
3524
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `updated_at`, `name`, `test_child_id`, `deleted`) VALUES ('2011-08-01 03:28:27', '2011-08-01 03:28:27', 'test child', 27, 1)
3525
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3526
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3527
+ SQL (47.0ms) ROLLBACK
3528
+ SQL (0.1ms) BEGIN
3529
+ SQL (0.1ms) SAVEPOINT active_record_1
3530
+ AREL (0.2ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:27', 'test parent', '2011-08-01 03:28:27', NULL, NULL)
3531
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3532
+ SQL (0.1ms) SAVEPOINT active_record_1
3533
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `updated_at`, `name`, `test_child_id`, `deleted`) VALUES ('2011-08-01 03:28:27', '2011-08-01 03:28:27', 'test child', 28, 1)
3534
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3535
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3536
+ SQL (0.1ms) SAVEPOINT active_record_1
3537
+ AREL (0.2ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:28:27', `name` = 'test child with new name' WHERE `test_soft_delete_grandchildren`.`id` = 3
3538
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3539
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3540
+ SQL (56.2ms) ROLLBACK
3541
+ SQL (0.1ms) BEGIN
3542
+ SQL (0.1ms) SAVEPOINT active_record_1
3543
+ AREL (0.2ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, NULL, NULL, '2011-08-01 03:28:27', 'test parent', '2011-08-01 03:28:27', NULL, NULL)
3544
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3545
+ SQL (0.1ms) SAVEPOINT active_record_1
3546
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `updated_at`, `name`, `test_child_id`, `deleted`) VALUES ('2011-08-01 03:28:27', '2011-08-01 03:28:27', 'test child', 29, 1)
3547
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3548
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3549
+ SQL (0.0ms) SAVEPOINT active_record_1
3550
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestSoftDeleteGrandchild', 'TestChild', '2011-08-01 03:28:27', 'test_soft_delete_grandchildren', 4, 'add', 29, NULL)
3551
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
3552
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:28:27', `deleted` = 0 WHERE `test_soft_delete_grandchildren`.`id` = 4
3553
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3554
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3555
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3556
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3557
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 29 LIMIT 1
3558
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3559
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 4 LIMIT 1
3560
+ SQL (44.3ms) ROLLBACK
3561
+ SQL (0.1ms) BEGIN
3562
+ SQL (0.1ms) SAVEPOINT active_record_1
3563
+ AREL (0.3ms) INSERT INTO `test_parents` (`updated_at`, `created_at`, `name`) VALUES ('2011-08-01 03:28:28', '2011-08-01 03:28:28', 'test parent')
3564
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3565
+ SQL (0.1ms) SAVEPOINT active_record_1
3566
+ AREL (0.1ms) INSERT INTO `test_children` (`test_parent_with_except_id`, `other_test_parent_id`, `test_parent_with_only_id`, `created_at`, `name`, `updated_at`, `test_parent_id`, `description`) VALUES (NULL, 24, NULL, '2011-08-01 03:28:28', 'test child', '2011-08-01 03:28:28', NULL, NULL)
3567
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestChild', 'TestParent', '2011-08-01 03:28:28', 'other_test_children', 30, 'add', 24, NULL)
3568
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 30 AND `collection_audits`.child_record_type = 'TestChild')
3569
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3570
+ SQL (0.1ms) SAVEPOINT active_record_1
3571
+ AREL (0.1ms) INSERT INTO `test_soft_delete_grandchildren` (`created_at`, `updated_at`, `name`, `test_child_id`, `deleted`) VALUES ('2011-08-01 03:28:28', '2011-08-01 03:28:28', 'test grandchild', 30, NULL)
3572
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestSoftDeleteGrandchild', 'TestChild', '2011-08-01 03:28:28', 'test_soft_delete_grandchildren', 5, 'add', 30, NULL)
3573
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
3574
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 49, 'TestChild', 'TestParent', '2011-08-01 03:28:28', 'other_test_children', 30, 'modify', 24, NULL)
3575
+ CollectionAudit Load (0.2ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE (`collection_audits`.child_record_id = 5 AND `collection_audits`.child_record_type = 'TestSoftDeleteGrandchild')
3576
+ SQL (0.1ms) RELEASE SAVEPOINT active_record_1
3577
+ SQL (0.1ms) SELECT COUNT(*) FROM `collection_audits`
3578
+ SQL (0.1ms) SAVEPOINT active_record_1
3579
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, NULL, 'TestSoftDeleteGrandchild', 'TestChild', '2011-08-01 03:28:28', 'test_soft_delete_grandchildren', 5, 'remove', 30, NULL)
3580
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
3581
+ AREL (0.1ms) INSERT INTO `collection_audits` (`user_id`, `child_audit_id`, `child_record_type`, `parent_record_type`, `created_at`, `association`, `child_record_id`, `action`, `parent_record_id`, `user_type`) VALUES (NULL, 51, 'TestChild', 'TestParent', '2011-08-01 03:28:28', 'other_test_children', 30, 'modify', 24, NULL)
3582
+ AREL (0.1ms) UPDATE `test_soft_delete_grandchildren` SET `updated_at` = '2011-08-01 03:28:28', `deleted` = 1 WHERE `test_soft_delete_grandchildren`.`id` = 5
3583
+ SQL (0.0ms) RELEASE SAVEPOINT active_record_1
3584
+ SQL (0.3ms) SELECT COUNT(*) FROM `collection_audits`
3585
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` ORDER BY collection_audits.id DESC LIMIT 1
3586
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
3587
+ TestParent Load (0.1ms) SELECT `test_parents`.* FROM `test_parents` WHERE `test_parents`.`id` = 24 LIMIT 1
3588
+ CollectionAudit Load (0.1ms) SELECT `collection_audits`.* FROM `collection_audits` WHERE `collection_audits`.`id` = 51 LIMIT 1
3589
+ TestSoftDeleteGrandchild Load (0.1ms) SELECT `test_soft_delete_grandchildren`.* FROM `test_soft_delete_grandchildren` WHERE `test_soft_delete_grandchildren`.`id` = 5 LIMIT 1
3590
+ TestChild Load (0.1ms) SELECT `test_children`.* FROM `test_children` WHERE `test_children`.`id` = 30 LIMIT 1
3591
+ SQL (37.9ms) ROLLBACK