redirector 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14580,3 +14580,884 @@ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
14580
14580
   (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL
14581
14581
   (8.2ms) TRUNCATE TABLE "request_environment_rules", "redirect_rules" RESTART IDENTITY CASCADE;
14582
14582
   (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL
14583
+ Connecting to database specified by database.yml
14584
+  (0.1ms) BEGIN
14585
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14586
+  (0.1ms) ROLLBACK
14587
+  (0.1ms) BEGIN
14588
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14589
+  (0.2ms) ROLLBACK
14590
+  (0.1ms) BEGIN
14591
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14592
+  (0.1ms) ROLLBACK
14593
+  (0.0ms) BEGIN
14594
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14595
+  (0.1ms) ROLLBACK
14596
+  (0.1ms) BEGIN
14597
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14598
+  (0.1ms) ROLLBACK
14599
+  (0.1ms) BEGIN
14600
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14601
+  (0.1ms) ROLLBACK
14602
+  (0.1ms) BEGIN
14603
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14604
+  (0.1ms) ROLLBACK
14605
+  (0.1ms) BEGIN
14606
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14607
+  (0.2ms) ROLLBACK
14608
+  (0.2ms) BEGIN
14609
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14610
+  (0.2ms) ROLLBACK
14611
+  (0.1ms) BEGIN
14612
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14613
+  (0.2ms) ROLLBACK
14614
+  (0.1ms) BEGIN
14615
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14616
+  (0.1ms) ROLLBACK
14617
+  (0.1ms) BEGIN
14618
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14619
+  (0.1ms) ROLLBACK
14620
+  (0.1ms) BEGIN
14621
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14622
+  (0.1ms) ROLLBACK
14623
+  (0.1ms) BEGIN
14624
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14625
+  (0.1ms) ROLLBACK
14626
+  (0.1ms) BEGIN
14627
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14628
+  (0.1ms) ROLLBACK
14629
+  (0.1ms) BEGIN
14630
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14631
+  (0.1ms) ROLLBACK
14632
+  (0.1ms) BEGIN
14633
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14634
+  (0.1ms) ROLLBACK
14635
+  (0.1ms) BEGIN
14636
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14637
+  (0.1ms) ROLLBACK
14638
+  (0.1ms) BEGIN
14639
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14640
+  (0.2ms) ROLLBACK
14641
+  (0.3ms) BEGIN
14642
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14643
+  (0.1ms) ROLLBACK
14644
+  (0.1ms) BEGIN
14645
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14646
+  (0.2ms) ROLLBACK
14647
+  (0.1ms) BEGIN
14648
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14649
+  (0.1ms) ROLLBACK
14650
+  (0.1ms) BEGIN
14651
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14652
+  (0.2ms) ROLLBACK
14653
+  (0.2ms) BEGIN
14654
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14655
+  (0.1ms) ROLLBACK
14656
+  (0.1ms) BEGIN
14657
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14658
+  (0.1ms) ROLLBACK
14659
+  (0.1ms) BEGIN
14660
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14661
+  (0.1ms) ROLLBACK
14662
+  (0.0ms) BEGIN
14663
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14664
+  (0.9ms) ROLLBACK
14665
+  (0.2ms) BEGIN
14666
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14667
+  (0.2ms) ROLLBACK
14668
+  (0.1ms) BEGIN
14669
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14670
+  (0.1ms) ROLLBACK
14671
+  (0.1ms) BEGIN
14672
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14673
+  (0.3ms) ROLLBACK
14674
+  (0.1ms) BEGIN
14675
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14676
+  (0.2ms) ROLLBACK
14677
+  (0.0ms) BEGIN
14678
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14679
+  (0.2ms) ROLLBACK
14680
+  (0.1ms) BEGIN
14681
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14682
+  (0.1ms) ROLLBACK
14683
+  (0.1ms) BEGIN
14684
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14685
+  (0.1ms) ROLLBACK
14686
+  (0.1ms) BEGIN
14687
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14688
+  (0.1ms) ROLLBACK
14689
+  (0.1ms) BEGIN
14690
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14691
+  (0.2ms) ROLLBACK
14692
+  (0.1ms) BEGIN
14693
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14694
+  (0.3ms) ROLLBACK
14695
+  (0.1ms) BEGIN
14696
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14697
+  (0.2ms) ROLLBACK
14698
+  (0.1ms) BEGIN
14699
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14700
+  (0.1ms) ROLLBACK
14701
+  (0.1ms) BEGIN
14702
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14703
+  (0.1ms) ROLLBACK
14704
+  (0.1ms) BEGIN
14705
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14706
+  (0.3ms) ROLLBACK
14707
+  (0.1ms) BEGIN
14708
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14709
+  (0.1ms) ROLLBACK
14710
+  (0.1ms) BEGIN
14711
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14712
+  (0.1ms) ROLLBACK
14713
+  (0.1ms) BEGIN
14714
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14715
+  (0.1ms) ROLLBACK
14716
+  (0.1ms) BEGIN
14717
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14718
+  (0.1ms) ROLLBACK
14719
+  (0.1ms) BEGIN
14720
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14721
+  (0.1ms) ROLLBACK
14722
+  (0.1ms) BEGIN
14723
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14724
+  (0.1ms) ROLLBACK
14725
+  (0.1ms) BEGIN
14726
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14727
+  (0.2ms) ROLLBACK
14728
+  (0.1ms) BEGIN
14729
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14730
+  (0.1ms) ROLLBACK
14731
+  (0.1ms) BEGIN
14732
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14733
+  (0.1ms) ROLLBACK
14734
+  (0.1ms) BEGIN
14735
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14736
+  (0.2ms) ROLLBACK
14737
+  (0.1ms) BEGIN
14738
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14739
+  (0.2ms) ROLLBACK
14740
+  (0.2ms) BEGIN
14741
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14742
+  (0.2ms) ROLLBACK
14743
+  (1.4ms) BEGIN
14744
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14745
+  (0.6ms) ROLLBACK
14746
+  (0.1ms) BEGIN
14747
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14748
+  (0.2ms) ROLLBACK
14749
+  (0.2ms) BEGIN
14750
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14751
+  (0.1ms) ROLLBACK
14752
+  (0.1ms) BEGIN
14753
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14754
+  (0.1ms) ROLLBACK
14755
+  (0.0ms) BEGIN
14756
+ Mysql2::Error: Table 'redirector_dummy_test.request_environment_rules' doesn't exist: SHOW FULL FIELDS FROM `request_environment_rules`
14757
+  (0.2ms) ROLLBACK
14758
+  (0.1ms) BEGIN
14759
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14760
+  (0.1ms) ROLLBACK
14761
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
14762
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
14763
+  (0.4ms) SELECT DATABASE() as db
14764
+  (38.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
14765
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
14766
+  (0.3ms) BEGIN
14767
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14768
+  (0.1ms) ROLLBACK
14769
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
14770
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
14771
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
14772
+  (0.1ms) BEGIN
14773
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14774
+  (0.1ms) ROLLBACK
14775
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
14776
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
14777
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
14778
+  (0.1ms) BEGIN
14779
+ Mysql2::Error: Table 'redirector_dummy_test.redirect_rules' doesn't exist: SHOW FULL FIELDS FROM `redirect_rules`
14780
+  (0.1ms) ROLLBACK
14781
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
14782
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
14783
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
14784
+ Connecting to database specified by database.yml
14785
+  (166.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
14786
+  (472.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
14787
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
14788
+ Migrating to CreateRedirectRules (20120815212612)
14789
+  (175.5ms) CREATE TABLE `redirect_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `source` varchar(255) NOT NULL, `source_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `source_is_case_sensitive` tinyint(1) DEFAULT 0 NOT NULL, `destination` varchar(255) NOT NULL, `active` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
14790
+  (283.8ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
14791
+  (193.6ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
14792
+  (236.9ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
14793
+  (233.6ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
14794
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612')
14795
+ Migrating to CreateRequestEnvironmentRules (20120823163756)
14796
+  (323.9ms) CREATE TABLE `request_environment_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `redirect_rule_id` int(11) NOT NULL, `environment_key_name` varchar(255) NOT NULL, `environment_value` varchar(255) NOT NULL, `environment_value_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `environment_value_is_case_sensitive` tinyint(1) DEFAULT 1 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
14797
+  (228.0ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
14798
+  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
14799
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
14800
+ Connecting to database specified by database.yml
14801
+  (0.1ms) BEGIN
14802
+  (0.1ms) SAVEPOINT active_record_1
14803
+ SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14805
+  (0.4ms) ROLLBACK
14806
+  (0.1ms) BEGIN
14807
+  (0.1ms) SAVEPOINT active_record_1
14808
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14810
+  (0.4ms) ROLLBACK
14811
+  (0.1ms) BEGIN
14812
+  (0.2ms) SAVEPOINT active_record_1
14813
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14815
+  (0.4ms) ROLLBACK
14816
+  (0.1ms) BEGIN
14817
+  (0.2ms) SAVEPOINT active_record_1
14818
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14820
+  (24.5ms) ROLLBACK
14821
+  (0.1ms) BEGIN
14822
+  (0.1ms) SAVEPOINT active_record_1
14823
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14824
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14825
+  (5.4ms) ROLLBACK
14826
+  (0.1ms) BEGIN
14827
+  (0.1ms) SAVEPOINT active_record_1
14828
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14830
+  (0.4ms) ROLLBACK
14831
+  (0.1ms) BEGIN
14832
+  (0.1ms) SAVEPOINT active_record_1
14833
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14835
+  (0.6ms) ROLLBACK
14836
+  (0.1ms) BEGIN
14837
+  (0.1ms) SAVEPOINT active_record_1
14838
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14840
+  (0.5ms) ROLLBACK
14841
+  (0.1ms) BEGIN
14842
+  (0.2ms) SAVEPOINT active_record_1
14843
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14845
+  (0.5ms) ROLLBACK
14846
+  (0.1ms) BEGIN
14847
+  (0.2ms) SAVEPOINT active_record_1
14848
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14850
+  (0.4ms) ROLLBACK
14851
+  (0.1ms) BEGIN
14852
+  (0.1ms) SAVEPOINT active_record_1
14853
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14855
+  (0.5ms) ROLLBACK
14856
+  (0.1ms) BEGIN
14857
+  (0.1ms) SAVEPOINT active_record_1
14858
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14860
+  (0.5ms) ROLLBACK
14861
+  (0.1ms) BEGIN
14862
+  (0.1ms) SAVEPOINT active_record_1
14863
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14865
+  (0.6ms) ROLLBACK
14866
+  (0.1ms) BEGIN
14867
+  (0.2ms) SAVEPOINT active_record_1
14868
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14870
+  (0.9ms) ROLLBACK
14871
+  (0.1ms) BEGIN
14872
+  (0.1ms) SAVEPOINT active_record_1
14873
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14875
+  (0.4ms) ROLLBACK
14876
+  (0.1ms) BEGIN
14877
+  (0.1ms) SAVEPOINT active_record_1
14878
+ SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14880
+  (0.4ms) ROLLBACK
14881
+  (0.1ms) BEGIN
14882
+  (0.1ms) SAVEPOINT active_record_1
14883
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14885
+  (0.4ms) ROLLBACK
14886
+  (0.1ms) BEGIN
14887
+  (0.1ms) SAVEPOINT active_record_1
14888
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14890
+  (0.5ms) ROLLBACK
14891
+  (0.1ms) BEGIN
14892
+  (0.1ms) SAVEPOINT active_record_1
14893
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14895
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14896
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
14897
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14898
+  (0.6ms) ROLLBACK
14899
+  (0.1ms) BEGIN
14900
+  (0.1ms) SAVEPOINT active_record_1
14901
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14903
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14904
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
14905
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14906
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (20)
14907
+  (0.6ms) ROLLBACK
14908
+  (0.1ms) BEGIN
14909
+  (0.1ms) SAVEPOINT active_record_1
14910
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14912
+  (0.1ms) SAVEPOINT active_record_1
14913
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-28 19:49:20')
14914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14915
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14916
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
14917
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14918
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (22)
14919
+  (0.7ms) ROLLBACK
14920
+  (0.1ms) BEGIN
14921
+  (0.1ms) SAVEPOINT active_record_1
14922
+ SQL (1.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14923
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14924
+  (0.1ms) SAVEPOINT active_record_1
14925
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-28 19:49:20')
14926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14927
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14928
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
14929
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14930
+  (0.5ms) ROLLBACK
14931
+  (0.1ms) BEGIN
14932
+  (0.2ms) SAVEPOINT active_record_1
14933
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14935
+  (0.1ms) SAVEPOINT active_record_1
14936
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:20')
14937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14938
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14939
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
14940
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14941
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (26)
14942
+  (0.5ms) ROLLBACK
14943
+  (0.1ms) BEGIN
14944
+  (0.3ms) SAVEPOINT active_record_1
14945
+ SQL (1.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14947
+  (0.1ms) SAVEPOINT active_record_1
14948
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:20')
14949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14950
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14951
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
14952
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14953
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (28)
14954
+  (0.8ms) ROLLBACK
14955
+  (0.1ms) BEGIN
14956
+  (0.1ms) SAVEPOINT active_record_1
14957
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14959
+  (0.2ms) SAVEPOINT active_record_1
14960
+ SQL (1.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-28 19:49:20')
14961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14962
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14963
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
14964
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14965
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (29)
14966
+  (0.4ms) ROLLBACK
14967
+  (0.1ms) BEGIN
14968
+  (0.1ms) SAVEPOINT active_record_1
14969
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14971
+  (0.1ms) SAVEPOINT active_record_1
14972
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-28 19:49:20')
14973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14974
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14975
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
14976
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14977
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (30)
14978
+  (0.5ms) ROLLBACK
14979
+  (0.1ms) BEGIN
14980
+  (0.1ms) SAVEPOINT active_record_1
14981
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14982
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14983
+  (0.2ms) SAVEPOINT active_record_1
14984
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-28 19:49:20')
14985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14986
+  (0.2ms) SAVEPOINT active_record_1
14987
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-28 19:49:20')
14988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14989
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
14990
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
14991
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14992
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (31)
14993
+  (0.6ms) ROLLBACK
14994
+  (0.1ms) BEGIN
14995
+  (0.1ms) SAVEPOINT active_record_1
14996
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
14997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14998
+  (0.1ms) SAVEPOINT active_record_1
14999
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-28 19:49:20')
15000
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15001
+  (0.1ms) SAVEPOINT active_record_1
15002
+ SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-28 19:49:20')
15003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15004
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15005
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
15006
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15007
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (32)
15008
+  (0.5ms) ROLLBACK
15009
+  (0.1ms) BEGIN
15010
+  (0.1ms) SAVEPOINT active_record_1
15011
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
15012
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15013
+  (0.1ms) SAVEPOINT active_record_1
15014
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
15015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15016
+  (0.1ms) SAVEPOINT active_record_1
15017
+ SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-28 19:49:20')
15018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15019
+  (0.1ms) SAVEPOINT active_record_1
15020
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-28 19:49:20')
15021
+  (0.8ms) RELEASE SAVEPOINT active_record_1
15022
+  (0.2ms) SAVEPOINT active_record_1
15023
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-28 19:49:20')
15024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15025
+  (0.1ms) SAVEPOINT active_record_1
15026
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-28 19:49:20')
15027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15028
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15029
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
15030
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15031
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (33, 34)
15032
+  (0.6ms) ROLLBACK
15033
+  (0.1ms) BEGIN
15034
+  (0.1ms) SAVEPOINT active_record_1
15035
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
15036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15037
+  (0.2ms) SAVEPOINT active_record_1
15038
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
15039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15040
+  (0.2ms) SAVEPOINT active_record_1
15041
+ SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-28 19:49:20')
15042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15043
+  (0.1ms) SAVEPOINT active_record_1
15044
+ SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-28 19:49:20')
15045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15046
+  (0.1ms) SAVEPOINT active_record_1
15047
+ SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-28 19:49:20')
15048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15049
+  (0.1ms) SAVEPOINT active_record_1
15050
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:20', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-28 19:49:20')
15051
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15052
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15053
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
15054
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15055
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (35, 36)
15056
+  (0.8ms) ROLLBACK
15057
+  (0.1ms) BEGIN
15058
+  (0.1ms) SAVEPOINT active_record_1
15059
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:20', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:20')
15060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15061
+  (0.1ms) SAVEPOINT active_record_1
15062
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15063
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15064
+  (0.1ms) SAVEPOINT active_record_1
15065
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-28 19:49:21')
15066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15067
+  (0.1ms) SAVEPOINT active_record_1
15068
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-28 19:49:21')
15069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15070
+  (0.1ms) SAVEPOINT active_record_1
15071
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-28 19:49:21')
15072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15073
+  (0.1ms) SAVEPOINT active_record_1
15074
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-28 19:49:21')
15075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15076
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15077
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
15078
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15079
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (37, 38)
15080
+  (0.6ms) ROLLBACK
15081
+  (0.1ms) BEGIN
15082
+  (0.2ms) SAVEPOINT active_record_1
15083
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15085
+  (0.1ms) SAVEPOINT active_record_1
15086
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/news/$1', '[A-Za-z0-9]_thingy', 0, 1, '2012-08-28 19:49:21')
15087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15088
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15089
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
15090
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15091
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (39, 40)
15092
+  (0.6ms) ROLLBACK
15093
+  (0.1ms) BEGIN
15094
+  (0.1ms) SAVEPOINT active_record_1
15095
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15097
+  (0.1ms) SAVEPOINT active_record_1
15098
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15100
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15101
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
15102
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15103
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (42)
15104
+  (0.4ms) ROLLBACK
15105
+  (0.1ms) BEGIN
15106
+  (0.1ms) SAVEPOINT active_record_1
15107
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15109
+  (0.1ms) SAVEPOINT active_record_1
15110
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15111
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15112
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15113
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
15114
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15115
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (43)
15116
+  (0.7ms) ROLLBACK
15117
+  (0.1ms) BEGIN
15118
+  (0.1ms) SAVEPOINT active_record_1
15119
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15121
+  (0.1ms) SAVEPOINT active_record_1
15122
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15123
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15124
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15125
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
15126
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15127
+  (0.5ms) ROLLBACK
15128
+  (0.1ms) BEGIN
15129
+  (0.1ms) SAVEPOINT active_record_1
15130
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15132
+  (0.5ms) ROLLBACK
15133
+  (0.1ms) BEGIN
15134
+  (0.1ms) SAVEPOINT active_record_1
15135
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15137
+  (0.2ms) SAVEPOINT active_record_1
15138
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15139
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15140
+  (0.5ms) ROLLBACK
15141
+  (0.1ms) BEGIN
15142
+  (0.2ms) SAVEPOINT active_record_1
15143
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15144
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15145
+  (0.1ms) SAVEPOINT active_record_1
15146
+ SQL (0.8ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-28 19:49:21')
15147
+  (0.5ms) RELEASE SAVEPOINT active_record_1
15148
+  (0.5ms) ROLLBACK
15149
+  (0.1ms) BEGIN
15150
+  (0.1ms) SAVEPOINT active_record_1
15151
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15153
+  (0.1ms) SAVEPOINT active_record_1
15154
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-28 19:49:21')
15155
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15156
+  (0.5ms) ROLLBACK
15157
+  (0.1ms) BEGIN
15158
+  (0.1ms) SAVEPOINT active_record_1
15159
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15161
+  (0.1ms) SAVEPOINT active_record_1
15162
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-28 19:49:21')
15163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15164
+  (0.5ms) ROLLBACK
15165
+  (0.1ms) BEGIN
15166
+  (0.2ms) SAVEPOINT active_record_1
15167
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15169
+  (0.1ms) SAVEPOINT active_record_1
15170
+ SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-28 19:49:21')
15171
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15172
+  (15.5ms) ROLLBACK
15173
+  (0.1ms) BEGIN
15174
+  (0.1ms) SAVEPOINT active_record_1
15175
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15177
+  (0.1ms) SAVEPOINT active_record_1
15178
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-28 19:49:21')
15179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15180
+  (0.6ms) ROLLBACK
15181
+  (0.1ms) BEGIN
15182
+  (0.1ms) SAVEPOINT active_record_1
15183
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15185
+  (0.1ms) SAVEPOINT active_record_1
15186
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-28 19:49:21')
15187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15188
+  (0.5ms) ROLLBACK
15189
+  (0.1ms) BEGIN
15190
+  (0.1ms) SAVEPOINT active_record_1
15191
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15193
+  (0.1ms) SAVEPOINT active_record_1
15194
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-28 19:49:21')
15195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15196
+  (0.9ms) ROLLBACK
15197
+  (0.1ms) BEGIN
15198
+  (0.1ms) SAVEPOINT active_record_1
15199
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15201
+  (0.1ms) SAVEPOINT active_record_1
15202
+ SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-28 19:49:21')
15203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15204
+  (1.0ms) ROLLBACK
15205
+  (0.1ms) BEGIN
15206
+  (0.3ms) SAVEPOINT active_record_1
15207
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15209
+  (0.1ms) SAVEPOINT active_record_1
15210
+ SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-28 19:49:21')
15211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15212
+  (0.8ms) ROLLBACK
15213
+  (0.6ms) BEGIN
15214
+  (0.2ms) SAVEPOINT active_record_1
15215
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15217
+  (0.1ms) SAVEPOINT active_record_1
15218
+ SQL (1.0ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-28 19:49:21')
15219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15220
+  (0.5ms) ROLLBACK
15221
+  (0.2ms) BEGIN
15222
+  (0.2ms) SAVEPOINT active_record_1
15223
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15225
+  (0.1ms) SAVEPOINT active_record_1
15226
+ SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-28 19:49:21')
15227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15228
+  (1.4ms) ROLLBACK
15229
+  (0.1ms) BEGIN
15230
+  (0.1ms) SAVEPOINT active_record_1
15231
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15233
+  (0.1ms) SAVEPOINT active_record_1
15234
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-28 19:49:21')
15235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15236
+  (0.5ms) ROLLBACK
15237
+  (0.1ms) BEGIN
15238
+  (0.1ms) SAVEPOINT active_record_1
15239
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15241
+  (0.1ms) SAVEPOINT active_record_1
15242
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-28 19:49:21')
15243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15244
+  (0.4ms) ROLLBACK
15245
+  (0.1ms) BEGIN
15246
+  (0.1ms) SAVEPOINT active_record_1
15247
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15249
+  (0.1ms) SAVEPOINT active_record_1
15250
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-28 19:49:21')
15251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15252
+  (1.7ms) ROLLBACK
15253
+  (0.1ms) BEGIN
15254
+  (0.1ms) SAVEPOINT active_record_1
15255
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15257
+  (0.1ms) SAVEPOINT active_record_1
15258
+ SQL (2.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-28 19:49:21')
15259
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15260
+  (1.7ms) ROLLBACK
15261
+  (0.1ms) BEGIN
15262
+  (0.1ms) SAVEPOINT active_record_1
15263
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15265
+  (0.1ms) SAVEPOINT active_record_1
15266
+ SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 65, '2012-08-28 19:49:21')
15267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15268
+  (0.7ms) ROLLBACK
15269
+  (0.1ms) BEGIN
15270
+  (0.1ms) SAVEPOINT active_record_1
15271
+ SQL (1.1ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15272
+  (1.0ms) RELEASE SAVEPOINT active_record_1
15273
+  (0.1ms) SAVEPOINT active_record_1
15274
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-28 19:49:21')
15275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15276
+  (0.4ms) ROLLBACK
15277
+  (0.1ms) BEGIN
15278
+  (0.1ms) SAVEPOINT active_record_1
15279
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15281
+  (0.4ms) ROLLBACK
15282
+  (0.1ms) BEGIN
15283
+  (0.1ms) SAVEPOINT active_record_1
15284
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15285
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15286
+  (0.1ms) SAVEPOINT active_record_1
15287
+ SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'SERVER_NAME', 'example.com', 1, 0, 68, '2012-08-28 19:49:21')
15288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15289
+  (0.4ms) ROLLBACK
15290
+  (0.1ms) BEGIN
15291
+  (0.1ms) SAVEPOINT active_record_1
15292
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15294
+  (0.1ms) SAVEPOINT active_record_1
15295
+ SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'QUERY_STRING', 'something=value', 1, 1, 69, '2012-08-28 19:49:21')
15296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15297
+  (0.5ms) ROLLBACK
15298
+  (0.1ms) BEGIN
15299
+  (0.2ms) SAVEPOINT active_record_1
15300
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-28 19:49:21')
15301
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15302
+  (0.1ms) SAVEPOINT active_record_1
15303
+ SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-28 19:49:21', 'QUERY_STRING', 'something=value', 0, 1, 70, '2012-08-28 19:49:21')
15304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15305
+  (0.4ms) ROLLBACK
15306
+  (0.1ms) BEGIN
15307
+  (0.1ms) SAVEPOINT active_record_1
15308
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/5', '/my_custom_url', 0, 0, '2012-08-28 19:49:21')
15309
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15310
+  (0.1ms) SAVEPOINT active_record_1
15311
+ SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15313
+  (0.1ms) SAVEPOINT active_record_1
15314
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news', 'categoryID=12345', 0, 1, '2012-08-28 19:49:21')
15315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15316
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15317
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
15318
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15319
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (71)
15320
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15321
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
15322
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15323
+
15324
+
15325
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-28 13:49:21 -0600
15326
+ Processing by NewsController#show as HTML
15327
+ Parameters: {"id"=>"5"}
15328
+ Rendered text template (0.0ms)
15329
+ Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)
15330
+  (0.7ms) ROLLBACK
15331
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
15332
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
15333
+  (0.1ms) SELECT DATABASE() as db
15334
+  (1.1ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
15335
+  (1.6ms) TRUNCATE TABLE `redirect_rules`;
15336
+  (1.1ms) TRUNCATE TABLE `request_environment_rules`;
15337
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
15338
+  (0.1ms) BEGIN
15339
+  (0.2ms) SAVEPOINT active_record_1
15340
+ SQL (1.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/5', '/my_custom_url', 0, 0, '2012-08-28 19:49:21')
15341
+  (0.9ms) RELEASE SAVEPOINT active_record_1
15342
+  (0.2ms) SAVEPOINT active_record_1
15343
+ SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15344
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15345
+  (0.3ms) SAVEPOINT active_record_1
15346
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news', 'categoryID=12345', 0, 1, '2012-08-28 19:49:21')
15347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15348
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15349
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
15350
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15351
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (2)
15352
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15353
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
15354
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15355
+
15356
+
15357
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-28 13:49:21 -0600
15358
+ Processing by NewsController#show as HTML
15359
+ Parameters: {"id"=>"20"}
15360
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
15361
+  (0.6ms) ROLLBACK
15362
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
15363
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
15364
+  (2.0ms) TRUNCATE TABLE `redirect_rules`;
15365
+  (2.2ms) TRUNCATE TABLE `request_environment_rules`;
15366
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
15367
+  (0.8ms) BEGIN
15368
+  (0.2ms) SAVEPOINT active_record_1
15369
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/5', '/my_custom_url', 0, 0, '2012-08-28 19:49:21')
15370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15371
+  (0.2ms) SAVEPOINT active_record_1
15372
+ SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15373
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15374
+  (0.3ms) SAVEPOINT active_record_1
15375
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news', 'categoryID=12345', 0, 1, '2012-08-28 19:49:21')
15376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15377
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15378
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
15379
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15380
+
15381
+
15382
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-28 13:49:21 -0600
15383
+
15384
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
15385
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
15386
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
15387
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
15388
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
15389
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
15390
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
15391
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
15392
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
15393
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
15394
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
15395
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
15396
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
15397
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
15398
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
15399
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
15400
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
15401
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
15402
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
15403
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
15404
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
15405
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
15406
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
15407
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
15408
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
15409
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
15410
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
15411
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
15412
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
15413
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
15414
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
15415
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
15416
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
15417
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
15418
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
15419
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
15420
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
15421
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
15422
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
15423
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
15424
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
15425
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
15426
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
15427
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
15428
+
15429
+
15430
+  (14.4ms) ROLLBACK
15431
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
15432
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
15433
+  (9.5ms) TRUNCATE TABLE `redirect_rules`;
15434
+  (1.0ms) TRUNCATE TABLE `request_environment_rules`;
15435
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
15436
+  (0.1ms) BEGIN
15437
+  (0.1ms) SAVEPOINT active_record_1
15438
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/5', '/my_custom_url', 0, 0, '2012-08-28 19:49:21')
15439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15440
+  (0.3ms) SAVEPOINT active_record_1
15441
+ SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-28 19:49:21')
15442
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15443
+  (0.1ms) SAVEPOINT active_record_1
15444
+ SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-28 19:49:21', '/news', 'categoryID=12345', 0, 1, '2012-08-28 19:49:21')
15445
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15446
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15447
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
15448
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15449
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` IN (3)
15450
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
15451
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
15452
+ (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
15453
+
15454
+
15455
+ Started GET "/news" for 127.0.0.1 at 2012-08-28 13:49:21 -0600
15456
+ Processing by NewsController#index as HTML
15457
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
15458
+  (1.0ms) ROLLBACK
15459
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
15460
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
15461
+  (1.6ms) TRUNCATE TABLE `redirect_rules`;
15462
+  (1.5ms) TRUNCATE TABLE `request_environment_rules`;
15463
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1