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