redirector 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -11,3 +11,6 @@
11
11
  * Destroy RequestEnvironmentRules when the parent RedirectRule is destroyed
12
12
  * Add some more indexes to redirect_rules table
13
13
  * Allow query strings to be part of the match on RedirectRules
14
+
15
+ == 0.1.2 / 2012-08-27
16
+ * Change ordering on match to prefer exact matches and longer matches
@@ -32,7 +32,9 @@ class RedirectRule < ActiveRecord::Base
32
32
  end
33
33
 
34
34
  def self.match_for(source, environment)
35
- where(match_sql_condition.strip, {:true => true, :false => false, :source => source}).detect do |rule|
35
+ match_scope = where(match_sql_condition.strip, {:true => true, :false => false, :source => source})
36
+ match_scope = match_scope.order('redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC')
37
+ match_scope.detect do |rule|
36
38
  rule.request_environment_rules.all? {|env_rule| env_rule.matches?(environment) }
37
39
  end
38
40
  end
@@ -1,3 +1,3 @@
1
1
  module Redirector
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -12590,3 +12590,1993 @@ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
12590
12590
   (1.6ms) TRUNCATE TABLE `redirect_rules`;
12591
12591
   (2.4ms) TRUNCATE TABLE `request_environment_rules`;
12592
12592
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
12593
+ Connecting to database specified by database.yml
12594
+  (0.1ms) BEGIN
12595
+  (0.2ms) SAVEPOINT active_record_1
12596
+ SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:31')
12597
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12598
+  (59.9ms) ROLLBACK
12599
+  (0.1ms) BEGIN
12600
+  (0.1ms) SAVEPOINT active_record_1
12601
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12603
+  (5.5ms) ROLLBACK
12604
+  (0.1ms) BEGIN
12605
+  (0.2ms) SAVEPOINT active_record_1
12606
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12608
+  (0.4ms) ROLLBACK
12609
+  (0.1ms) BEGIN
12610
+  (0.2ms) SAVEPOINT active_record_1
12611
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12613
+  (0.7ms) ROLLBACK
12614
+  (0.1ms) BEGIN
12615
+  (0.1ms) SAVEPOINT active_record_1
12616
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12617
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12618
+  (0.6ms) ROLLBACK
12619
+  (0.1ms) BEGIN
12620
+  (0.2ms) SAVEPOINT active_record_1
12621
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12622
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12623
+  (0.9ms) ROLLBACK
12624
+  (0.1ms) BEGIN
12625
+  (0.1ms) SAVEPOINT active_record_1
12626
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12628
+  (0.6ms) ROLLBACK
12629
+  (0.1ms) BEGIN
12630
+  (0.2ms) SAVEPOINT active_record_1
12631
+ SQL (11.1ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12633
+  (0.8ms) ROLLBACK
12634
+  (0.1ms) BEGIN
12635
+  (0.2ms) SAVEPOINT active_record_1
12636
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12638
+  (0.5ms) ROLLBACK
12639
+  (0.1ms) BEGIN
12640
+  (0.1ms) SAVEPOINT active_record_1
12641
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12643
+  (0.5ms) ROLLBACK
12644
+  (0.3ms) BEGIN
12645
+  (0.2ms) SAVEPOINT active_record_1
12646
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12648
+  (0.5ms) ROLLBACK
12649
+  (0.1ms) BEGIN
12650
+  (0.1ms) SAVEPOINT active_record_1
12651
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12653
+  (0.4ms) ROLLBACK
12654
+  (0.1ms) BEGIN
12655
+  (0.1ms) SAVEPOINT active_record_1
12656
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12658
+  (0.6ms) ROLLBACK
12659
+  (0.4ms) BEGIN
12660
+  (0.1ms) SAVEPOINT active_record_1
12661
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12663
+  (0.8ms) ROLLBACK
12664
+  (0.1ms) BEGIN
12665
+  (0.1ms) SAVEPOINT active_record_1
12666
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12667
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12668
+  (0.5ms) ROLLBACK
12669
+  (0.1ms) BEGIN
12670
+  (0.1ms) SAVEPOINT active_record_1
12671
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12673
+  (0.7ms) ROLLBACK
12674
+  (0.1ms) BEGIN
12675
+  (0.1ms) SAVEPOINT active_record_1
12676
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12677
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12678
+  (0.4ms) ROLLBACK
12679
+  (0.1ms) BEGIN
12680
+  (0.1ms) SAVEPOINT active_record_1
12681
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12682
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12683
+  (0.5ms) ROLLBACK
12684
+  (0.1ms) BEGIN
12685
+  (0.1ms) SAVEPOINT active_record_1
12686
+ SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12688
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12689
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
12690
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12691
+  (0.6ms) ROLLBACK
12692
+  (0.1ms) BEGIN
12693
+  (0.1ms) SAVEPOINT active_record_1
12694
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12696
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12697
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12698
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12699
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
12700
+  (0.5ms) ROLLBACK
12701
+  (0.1ms) BEGIN
12702
+  (0.1ms) SAVEPOINT active_record_1
12703
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12704
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12705
+  (0.2ms) SAVEPOINT active_record_1
12706
+ SQL (0.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:32')
12707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12708
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12709
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
12710
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12711
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
12712
+  (0.9ms) ROLLBACK
12713
+  (0.1ms) BEGIN
12714
+  (0.1ms) SAVEPOINT active_record_1
12715
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12717
+  (0.2ms) SAVEPOINT active_record_1
12718
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:32')
12719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12720
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12721
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
12722
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12723
+  (0.5ms) ROLLBACK
12724
+  (0.1ms) BEGIN
12725
+  (0.1ms) SAVEPOINT active_record_1
12726
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12728
+  (0.1ms) SAVEPOINT active_record_1
12729
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
12730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12731
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12732
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
12733
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12734
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
12735
+  (0.7ms) ROLLBACK
12736
+  (0.1ms) BEGIN
12737
+  (0.1ms) SAVEPOINT active_record_1
12738
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12740
+  (0.2ms) SAVEPOINT active_record_1
12741
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
12742
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12743
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12744
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
12745
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12746
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
12747
+  (0.4ms) ROLLBACK
12748
+  (0.1ms) BEGIN
12749
+  (0.1ms) SAVEPOINT active_record_1
12750
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12752
+  (0.3ms) SAVEPOINT active_record_1
12753
+ SQL (16.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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-27 19:14:32')
12754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12755
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12756
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12757
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12758
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
12759
+  (1.3ms) ROLLBACK
12760
+  (0.1ms) BEGIN
12761
+  (0.1ms) SAVEPOINT active_record_1
12762
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12764
+  (0.1ms) SAVEPOINT active_record_1
12765
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-27 19:14:32')
12766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12767
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12768
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12769
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12770
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
12771
+  (0.5ms) ROLLBACK
12772
+  (0.1ms) BEGIN
12773
+  (0.1ms) SAVEPOINT active_record_1
12774
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12775
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12776
+  (0.1ms) SAVEPOINT active_record_1
12777
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-27 19:14:32')
12778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12779
+  (0.2ms) SAVEPOINT active_record_1
12780
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-27 19:14:32')
12781
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12782
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12783
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12784
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12785
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
12786
+  (0.6ms) ROLLBACK
12787
+  (0.1ms) BEGIN
12788
+  (0.2ms) SAVEPOINT active_record_1
12789
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12791
+  (0.1ms) SAVEPOINT active_record_1
12792
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-27 19:14:32')
12793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12794
+  (0.1ms) SAVEPOINT active_record_1
12795
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-27 19:14:32')
12796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12797
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12798
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12799
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12800
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
12801
+  (0.6ms) ROLLBACK
12802
+  (0.1ms) BEGIN
12803
+  (0.1ms) SAVEPOINT active_record_1
12804
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12806
+  (0.1ms) SAVEPOINT active_record_1
12807
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12809
+  (0.1ms) SAVEPOINT active_record_1
12810
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-27 19:14:32')
12811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12812
+  (0.1ms) SAVEPOINT active_record_1
12813
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-27 19:14:32')
12814
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12815
+  (0.1ms) SAVEPOINT active_record_1
12816
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-27 19:14:32')
12817
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12818
+  (0.2ms) SAVEPOINT active_record_1
12819
+ 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-27 19:14:32', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-27 19:14:32')
12820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12821
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12822
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12823
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12824
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
12825
+  (0.6ms) ROLLBACK
12826
+  (0.1ms) BEGIN
12827
+  (0.1ms) SAVEPOINT active_record_1
12828
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12830
+  (0.1ms) SAVEPOINT active_record_1
12831
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12832
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12833
+  (0.2ms) SAVEPOINT active_record_1
12834
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-27 19:14:32')
12835
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12836
+  (0.2ms) SAVEPOINT active_record_1
12837
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-27 19:14:32')
12838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12839
+  (0.1ms) SAVEPOINT active_record_1
12840
+ SQL (0.6ms) 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-27 19:14:32')
12841
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12842
+  (0.2ms) SAVEPOINT active_record_1
12843
+ 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-27 19:14:32', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-27 19:14:32')
12844
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12845
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12846
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12847
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12848
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
12849
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
12850
+  (15.0ms) ROLLBACK
12851
+  (0.1ms) BEGIN
12852
+  (0.1ms) SAVEPOINT active_record_1
12853
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12854
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12855
+  (0.1ms) SAVEPOINT active_record_1
12856
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12858
+  (0.1ms) SAVEPOINT active_record_1
12859
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-27 19:14:32')
12860
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12861
+  (0.1ms) SAVEPOINT active_record_1
12862
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-27 19:14:32')
12863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12864
+  (0.1ms) SAVEPOINT active_record_1
12865
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-27 19:14:32')
12866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12867
+  (0.2ms) SAVEPOINT active_record_1
12868
+ 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-27 19:14:32', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-27 19:14:32')
12869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12870
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12871
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12872
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12873
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
12874
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
12875
+  (9.8ms) ROLLBACK
12876
+  (0.1ms) BEGIN
12877
+  (0.1ms) SAVEPOINT active_record_1
12878
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12879
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12880
+  (0.2ms) SAVEPOINT active_record_1
12881
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9]_thingy', 0, 1, '2012-08-27 19:14:32')
12882
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12883
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12884
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12885
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12886
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
12887
+  (0.6ms) ROLLBACK
12888
+  (0.1ms) BEGIN
12889
+  (0.2ms) SAVEPOINT active_record_1
12890
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12892
+  (0.1ms) SAVEPOINT active_record_1
12893
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
12894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12895
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12896
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
12897
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12898
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 42
12899
+  (0.8ms) ROLLBACK
12900
+  (0.1ms) BEGIN
12901
+  (0.1ms) SAVEPOINT active_record_1
12902
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12904
+  (0.1ms) SAVEPOINT active_record_1
12905
+ SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
12906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12907
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12908
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12909
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12910
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 43
12911
+  (0.6ms) ROLLBACK
12912
+  (0.1ms) BEGIN
12913
+  (0.1ms) SAVEPOINT active_record_1
12914
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12916
+  (0.2ms) SAVEPOINT active_record_1
12917
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
12918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12919
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12920
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
12921
+ (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 DESC, LENGTH(redirect_rules.source) DESC
12922
+  (0.5ms) ROLLBACK
12923
+  (0.1ms) BEGIN
12924
+  (0.1ms) SAVEPOINT active_record_1
12925
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12927
+  (0.6ms) ROLLBACK
12928
+  (0.1ms) BEGIN
12929
+  (0.1ms) SAVEPOINT active_record_1
12930
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12932
+  (0.1ms) SAVEPOINT active_record_1
12933
+ 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-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
12934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12935
+  (0.5ms) ROLLBACK
12936
+  (0.2ms) BEGIN
12937
+  (0.1ms) SAVEPOINT active_record_1
12938
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12939
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12940
+  (0.1ms) SAVEPOINT active_record_1
12941
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-27 19:14:32')
12942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12943
+  (0.4ms) ROLLBACK
12944
+  (0.1ms) BEGIN
12945
+  (0.1ms) SAVEPOINT active_record_1
12946
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12948
+  (0.1ms) SAVEPOINT active_record_1
12949
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-27 19:14:32')
12950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12951
+  (0.4ms) ROLLBACK
12952
+  (0.1ms) BEGIN
12953
+  (0.2ms) SAVEPOINT active_record_1
12954
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12956
+  (0.1ms) SAVEPOINT active_record_1
12957
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-27 19:14:32')
12958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12959
+  (0.4ms) ROLLBACK
12960
+  (0.1ms) BEGIN
12961
+  (0.1ms) SAVEPOINT active_record_1
12962
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12964
+  (0.1ms) SAVEPOINT active_record_1
12965
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-27 19:14:32')
12966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12967
+  (0.4ms) ROLLBACK
12968
+  (0.1ms) BEGIN
12969
+  (0.1ms) SAVEPOINT active_record_1
12970
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12972
+  (0.1ms) SAVEPOINT active_record_1
12973
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-27 19:14:32')
12974
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12975
+  (0.7ms) ROLLBACK
12976
+  (0.1ms) BEGIN
12977
+  (0.1ms) SAVEPOINT active_record_1
12978
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12980
+  (0.1ms) SAVEPOINT active_record_1
12981
+ SQL (0.5ms) 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-27 19:14:32')
12982
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12983
+  (0.5ms) ROLLBACK
12984
+  (0.1ms) BEGIN
12985
+  (0.1ms) SAVEPOINT active_record_1
12986
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12987
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12988
+  (0.2ms) SAVEPOINT active_record_1
12989
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-27 19:14:32')
12990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12991
+  (0.7ms) ROLLBACK
12992
+  (0.1ms) BEGIN
12993
+  (0.1ms) SAVEPOINT active_record_1
12994
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
12995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12996
+  (0.1ms) SAVEPOINT active_record_1
12997
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-27 19:14:32')
12998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12999
+  (0.6ms) ROLLBACK
13000
+  (0.1ms) BEGIN
13001
+  (0.2ms) SAVEPOINT active_record_1
13002
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13004
+  (0.1ms) SAVEPOINT active_record_1
13005
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-27 19:14:32')
13006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13007
+  (0.6ms) ROLLBACK
13008
+  (0.1ms) BEGIN
13009
+  (0.1ms) SAVEPOINT active_record_1
13010
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13012
+  (0.1ms) SAVEPOINT active_record_1
13013
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-27 19:14:32')
13014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13015
+  (0.4ms) ROLLBACK
13016
+  (0.1ms) BEGIN
13017
+  (0.1ms) SAVEPOINT active_record_1
13018
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13020
+  (0.1ms) SAVEPOINT active_record_1
13021
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-27 19:14:32')
13022
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13023
+  (1.0ms) ROLLBACK
13024
+  (0.1ms) BEGIN
13025
+  (0.1ms) SAVEPOINT active_record_1
13026
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13027
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13028
+  (0.4ms) SAVEPOINT active_record_1
13029
+ SQL (0.5ms) 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-27 19:14:32')
13030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13031
+  (0.5ms) ROLLBACK
13032
+  (0.1ms) BEGIN
13033
+  (0.1ms) SAVEPOINT active_record_1
13034
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13036
+  (0.1ms) SAVEPOINT active_record_1
13037
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-27 19:14:32')
13038
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13039
+  (0.4ms) ROLLBACK
13040
+  (0.1ms) BEGIN
13041
+  (0.1ms) SAVEPOINT active_record_1
13042
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13043
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13044
+  (0.2ms) SAVEPOINT active_record_1
13045
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-27 19:14:32')
13046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13047
+  (0.4ms) ROLLBACK
13048
+  (0.1ms) BEGIN
13049
+  (0.1ms) SAVEPOINT active_record_1
13050
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13052
+  (0.1ms) SAVEPOINT active_record_1
13053
+ SQL (0.5ms) 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-27 19:14:32')
13054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13055
+  (0.5ms) ROLLBACK
13056
+  (0.1ms) BEGIN
13057
+  (0.1ms) SAVEPOINT active_record_1
13058
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13059
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13060
+  (0.2ms) SAVEPOINT active_record_1
13061
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 65, '2012-08-27 19:14:32')
13062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13063
+  (0.5ms) ROLLBACK
13064
+  (0.1ms) BEGIN
13065
+  (0.1ms) SAVEPOINT active_record_1
13066
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13068
+  (0.1ms) SAVEPOINT active_record_1
13069
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-27 19:14:32')
13070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13071
+  (0.6ms) ROLLBACK
13072
+  (0.1ms) BEGIN
13073
+  (0.1ms) SAVEPOINT active_record_1
13074
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13075
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13076
+  (0.6ms) ROLLBACK
13077
+  (0.1ms) BEGIN
13078
+  (0.1ms) SAVEPOINT active_record_1
13079
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13081
+  (0.3ms) SAVEPOINT active_record_1
13082
+ 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-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 68, '2012-08-27 19:14:32')
13083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13084
+  (0.5ms) ROLLBACK
13085
+  (0.1ms) BEGIN
13086
+  (0.1ms) SAVEPOINT active_record_1
13087
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13089
+  (0.1ms) SAVEPOINT active_record_1
13090
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 69, '2012-08-27 19:14:32')
13091
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13092
+  (0.5ms) ROLLBACK
13093
+  (0.1ms) BEGIN
13094
+  (0.1ms) SAVEPOINT active_record_1
13095
+ 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-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')
13096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13097
+  (0.1ms) SAVEPOINT active_record_1
13098
+ 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-27 19:14:32', 'QUERY_STRING', 'something=value', 0, 1, 70, '2012-08-27 19:14:32')
13099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13100
+  (0.4ms) ROLLBACK
13101
+  (0.1ms) BEGIN
13102
+  (0.1ms) SAVEPOINT active_record_1
13103
+ 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-27 19:14:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:32')
13104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13105
+  (0.1ms) SAVEPOINT active_record_1
13106
+ 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-27 19:14:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')
13107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13108
+  (0.2ms) SAVEPOINT active_record_1
13109
+ 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-27 19:14:32', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:32')
13110
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13111
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13112
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
13113
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13114
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 71
13115
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13116
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
13117
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13118
+
13119
+
13120
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-27 13:14:33 -0600
13121
+ Processing by NewsController#show as HTML
13122
+ Parameters: {"id"=>"5"}
13123
+ Rendered text template (0.0ms)
13124
+ Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
13125
+  (0.8ms) ROLLBACK
13126
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
13127
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13128
+  (0.3ms) SELECT DATABASE() as db
13129
+  (1.4ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
13130
+  (91.9ms) TRUNCATE TABLE `redirect_rules`;
13131
+  (31.1ms) TRUNCATE TABLE `request_environment_rules`;
13132
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
13133
+  (0.1ms) BEGIN
13134
+  (0.1ms) SAVEPOINT active_record_1
13135
+ 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-27 19:14:33', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:33')
13136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13137
+  (0.2ms) SAVEPOINT active_record_1
13138
+ 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-27 19:14:33', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:33')
13139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13140
+  (0.2ms) SAVEPOINT active_record_1
13141
+ 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-27 19:14:33', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:33')
13142
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13143
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13144
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
13145
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13146
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
13147
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13148
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
13149
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13150
+
13151
+
13152
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-27 13:14:33 -0600
13153
+ Processing by NewsController#show as HTML
13154
+ Parameters: {"id"=>"20"}
13155
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
13156
+  (0.9ms) ROLLBACK
13157
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
13158
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13159
+  (44.6ms) TRUNCATE TABLE `redirect_rules`;
13160
+  (14.0ms) TRUNCATE TABLE `request_environment_rules`;
13161
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
13162
+  (0.1ms) BEGIN
13163
+  (0.3ms) SAVEPOINT active_record_1
13164
+ SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:33')
13165
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13166
+  (0.1ms) SAVEPOINT active_record_1
13167
+ 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-27 19:14:33', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:33')
13168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13169
+  (0.2ms) SAVEPOINT active_record_1
13170
+ 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-27 19:14:33', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:33')
13171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13172
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13173
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
13174
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13175
+
13176
+
13177
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-27 13:14:33 -0600
13178
+
13179
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
13180
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
13181
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
13182
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
13183
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
13184
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
13185
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
13186
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
13187
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
13188
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
13189
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
13190
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
13191
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
13192
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
13193
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
13194
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
13195
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
13196
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
13197
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
13198
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
13199
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
13200
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
13201
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
13202
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
13203
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
13204
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
13205
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
13206
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
13207
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
13208
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
13209
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
13210
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
13211
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
13212
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
13213
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
13214
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
13215
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
13216
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
13217
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
13218
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
13219
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
13220
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
13221
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
13222
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
13223
+
13224
+
13225
+  (0.8ms) ROLLBACK
13226
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
13227
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13228
+  (15.8ms) TRUNCATE TABLE `redirect_rules`;
13229
+  (8.8ms) TRUNCATE TABLE `request_environment_rules`;
13230
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
13231
+  (0.1ms) BEGIN
13232
+  (0.2ms) SAVEPOINT active_record_1
13233
+ 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-27 19:14:33', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:33')
13234
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13235
+  (0.2ms) SAVEPOINT active_record_1
13236
+ 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-27 19:14:33', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:33')
13237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13238
+  (0.3ms) SAVEPOINT active_record_1
13239
+ 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-27 19:14:33', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:33')
13240
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13241
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13242
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
13243
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13244
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
13245
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13246
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
13247
+ (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 DESC, LENGTH(redirect_rules.source) DESC
13248
+
13249
+
13250
+ Started GET "/news" for 127.0.0.1 at 2012-08-27 13:14:33 -0600
13251
+ Processing by NewsController#index as HTML
13252
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
13253
+  (0.9ms) ROLLBACK
13254
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
13255
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13256
+  (1.6ms) TRUNCATE TABLE `redirect_rules`;
13257
+  (15.5ms) TRUNCATE TABLE `request_environment_rules`;
13258
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
13259
+ Connecting to database specified by database.yml
13260
+  (0.1ms) BEGIN
13261
+  (0.2ms) SAVEPOINT active_record_1
13262
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13264
+  (0.4ms) ROLLBACK
13265
+  (0.1ms) BEGIN
13266
+  (0.1ms) SAVEPOINT active_record_1
13267
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13268
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13269
+  (0.7ms) ROLLBACK
13270
+  (0.1ms) BEGIN
13271
+  (0.1ms) SAVEPOINT active_record_1
13272
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13273
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13274
+  (0.9ms) ROLLBACK
13275
+  (0.1ms) BEGIN
13276
+  (0.2ms) SAVEPOINT active_record_1
13277
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13278
+  (0.4ms) RELEASE SAVEPOINT active_record_1
13279
+  (0.6ms) ROLLBACK
13280
+  (0.1ms) BEGIN
13281
+  (0.2ms) SAVEPOINT active_record_1
13282
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13283
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13284
+  (1.0ms) ROLLBACK
13285
+  (0.1ms) BEGIN
13286
+  (0.2ms) SAVEPOINT active_record_1
13287
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13289
+  (0.5ms) ROLLBACK
13290
+  (0.1ms) BEGIN
13291
+  (0.2ms) SAVEPOINT active_record_1
13292
+ SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13294
+  (0.6ms) ROLLBACK
13295
+  (0.1ms) BEGIN
13296
+  (0.2ms) SAVEPOINT active_record_1
13297
+ SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13299
+  (0.7ms) ROLLBACK
13300
+  (0.1ms) BEGIN
13301
+  (0.1ms) SAVEPOINT active_record_1
13302
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13303
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13304
+  (6.6ms) ROLLBACK
13305
+  (0.1ms) BEGIN
13306
+  (0.2ms) SAVEPOINT active_record_1
13307
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13309
+  (4.8ms) ROLLBACK
13310
+  (0.1ms) BEGIN
13311
+  (0.1ms) SAVEPOINT active_record_1
13312
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13314
+  (0.6ms) ROLLBACK
13315
+  (0.1ms) BEGIN
13316
+  (0.2ms) SAVEPOINT active_record_1
13317
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13318
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13319
+  (0.5ms) ROLLBACK
13320
+  (0.1ms) BEGIN
13321
+  (0.1ms) SAVEPOINT active_record_1
13322
+ SQL (22.0ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13324
+  (0.7ms) ROLLBACK
13325
+  (0.1ms) BEGIN
13326
+  (0.1ms) SAVEPOINT active_record_1
13327
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13329
+  (0.5ms) ROLLBACK
13330
+  (0.1ms) BEGIN
13331
+  (0.2ms) SAVEPOINT active_record_1
13332
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13334
+  (0.4ms) ROLLBACK
13335
+  (0.1ms) BEGIN
13336
+  (0.2ms) SAVEPOINT active_record_1
13337
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13338
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13339
+  (0.5ms) ROLLBACK
13340
+  (0.1ms) BEGIN
13341
+  (0.1ms) SAVEPOINT active_record_1
13342
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13344
+  (0.5ms) ROLLBACK
13345
+  (0.1ms) BEGIN
13346
+  (0.2ms) SAVEPOINT active_record_1
13347
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13349
+  (0.8ms) ROLLBACK
13350
+  (0.1ms) BEGIN
13351
+  (0.2ms) SAVEPOINT active_record_1
13352
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13354
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13355
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
13356
+ (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
13357
+  (0.6ms) ROLLBACK
13358
+  (0.1ms) BEGIN
13359
+  (0.1ms) SAVEPOINT active_record_1
13360
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13362
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13363
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13364
+ (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
13365
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
13366
+  (0.5ms) ROLLBACK
13367
+  (0.1ms) BEGIN
13368
+  (0.2ms) SAVEPOINT active_record_1
13369
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13371
+  (0.2ms) SAVEPOINT active_record_1
13372
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:53')
13373
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13374
+ RedirectRule Load (1.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13375
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
13376
+ (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
13377
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
13378
+  (0.5ms) ROLLBACK
13379
+  (0.1ms) BEGIN
13380
+  (0.2ms) SAVEPOINT active_record_1
13381
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13383
+  (0.2ms) SAVEPOINT active_record_1
13384
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:53')
13385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13386
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13387
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
13388
+ (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
13389
+  (0.5ms) ROLLBACK
13390
+  (0.1ms) BEGIN
13391
+  (0.2ms) SAVEPOINT active_record_1
13392
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13393
+  (2.3ms) RELEASE SAVEPOINT active_record_1
13394
+  (1.6ms) SAVEPOINT active_record_1
13395
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')
13396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13397
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13398
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
13399
+ (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
13400
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
13401
+  (0.4ms) ROLLBACK
13402
+  (0.1ms) BEGIN
13403
+  (0.2ms) SAVEPOINT active_record_1
13404
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13406
+  (0.2ms) SAVEPOINT active_record_1
13407
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')
13408
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13409
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13410
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
13411
+ (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
13412
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
13413
+  (2.6ms) ROLLBACK
13414
+  (0.1ms) BEGIN
13415
+  (1.0ms) SAVEPOINT active_record_1
13416
+ SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13417
+  (0.7ms) RELEASE SAVEPOINT active_record_1
13418
+  (0.3ms) SAVEPOINT active_record_1
13419
+ SQL (0.7ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-27 19:14:53')
13420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13421
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13422
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13423
+ (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
13424
+ RequestEnvironmentRule Load (0.8ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
13425
+  (0.8ms) ROLLBACK
13426
+  (0.2ms) BEGIN
13427
+  (0.1ms) SAVEPOINT active_record_1
13428
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13429
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13430
+  (0.2ms) SAVEPOINT active_record_1
13431
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-27 19:14:53')
13432
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13433
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13434
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13435
+ (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
13436
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
13437
+  (0.6ms) ROLLBACK
13438
+  (0.1ms) BEGIN
13439
+  (0.1ms) SAVEPOINT active_record_1
13440
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13441
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13442
+  (0.5ms) SAVEPOINT active_record_1
13443
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-27 19:14:53')
13444
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13445
+  (0.2ms) SAVEPOINT active_record_1
13446
+ 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-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-27 19:14:53')
13447
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13448
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13449
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13450
+ (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
13451
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
13452
+  (0.7ms) ROLLBACK
13453
+  (0.1ms) BEGIN
13454
+  (0.2ms) SAVEPOINT active_record_1
13455
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13457
+  (0.1ms) SAVEPOINT active_record_1
13458
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-27 19:14:53')
13459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13460
+  (0.2ms) SAVEPOINT active_record_1
13461
+ 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-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-27 19:14:53')
13462
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13463
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13464
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13465
+ (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
13466
+ RequestEnvironmentRule Load (0.8ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
13467
+  (0.5ms) ROLLBACK
13468
+  (0.1ms) BEGIN
13469
+  (0.1ms) SAVEPOINT active_record_1
13470
+ SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13471
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13472
+  (1.7ms) SAVEPOINT active_record_1
13473
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13474
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13475
+  (0.2ms) SAVEPOINT active_record_1
13476
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-27 19:14:53')
13477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13478
+  (0.2ms) SAVEPOINT active_record_1
13479
+ 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-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-27 19:14:53')
13480
+  (0.4ms) RELEASE SAVEPOINT active_record_1
13481
+  (0.5ms) SAVEPOINT active_record_1
13482
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-27 19:14:53')
13483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13484
+  (0.2ms) SAVEPOINT active_record_1
13485
+ 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-27 19:14:53', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-27 19:14:53')
13486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13487
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13488
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13489
+ (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
13490
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
13491
+  (1.1ms) ROLLBACK
13492
+  (0.1ms) BEGIN
13493
+  (0.2ms) SAVEPOINT active_record_1
13494
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13495
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13496
+  (0.2ms) SAVEPOINT active_record_1
13497
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13498
+  (0.6ms) RELEASE SAVEPOINT active_record_1
13499
+  (0.3ms) SAVEPOINT active_record_1
13500
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-27 19:14:53')
13501
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13502
+  (0.1ms) SAVEPOINT active_record_1
13503
+ 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-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-27 19:14:53')
13504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13505
+  (0.2ms) SAVEPOINT active_record_1
13506
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-27 19:14:53')
13507
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13508
+  (0.3ms) SAVEPOINT active_record_1
13509
+ 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-27 19:14:53', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-27 19:14:53')
13510
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13511
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13512
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13513
+ (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
13514
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
13515
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
13516
+  (0.6ms) ROLLBACK
13517
+  (0.1ms) BEGIN
13518
+  (2.1ms) SAVEPOINT active_record_1
13519
+ SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13520
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13521
+  (0.2ms) SAVEPOINT active_record_1
13522
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13524
+  (1.0ms) SAVEPOINT active_record_1
13525
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-27 19:14:53')
13526
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13527
+  (0.2ms) SAVEPOINT active_record_1
13528
+ 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-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-27 19:14:53')
13529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13530
+  (0.2ms) SAVEPOINT active_record_1
13531
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-27 19:14:53')
13532
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13533
+  (0.8ms) SAVEPOINT active_record_1
13534
+ 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-27 19:14:53', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-27 19:14:53')
13535
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13536
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13537
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13538
+ (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
13539
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
13540
+ RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
13541
+  (0.6ms) ROLLBACK
13542
+  (0.2ms) BEGIN
13543
+  (0.2ms) SAVEPOINT active_record_1
13544
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13545
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13546
+  (0.2ms) SAVEPOINT active_record_1
13547
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9]_thingy', 0, 1, '2012-08-27 19:14:53')
13548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13549
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13550
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13551
+ (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
13552
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 39
13553
+  (0.9ms) ROLLBACK
13554
+  (0.1ms) BEGIN
13555
+  (0.2ms) SAVEPOINT active_record_1
13556
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13558
+  (0.1ms) SAVEPOINT active_record_1
13559
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')
13560
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13561
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13562
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
13563
+ (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
13564
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 42
13565
+  (0.7ms) ROLLBACK
13566
+  (0.1ms) BEGIN
13567
+  (0.2ms) SAVEPOINT active_record_1
13568
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13570
+  (0.1ms) SAVEPOINT active_record_1
13571
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')
13572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13573
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13574
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
13575
+ (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
13576
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 43
13577
+  (0.6ms) ROLLBACK
13578
+  (0.1ms) BEGIN
13579
+  (0.2ms) SAVEPOINT active_record_1
13580
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13582
+  (0.1ms) SAVEPOINT active_record_1
13583
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')
13584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13585
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13586
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
13587
+ (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
13588
+  (0.5ms) ROLLBACK
13589
+  (0.2ms) BEGIN
13590
+  (0.2ms) SAVEPOINT active_record_1
13591
+ SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13593
+  (15.9ms) ROLLBACK
13594
+  (0.1ms) BEGIN
13595
+  (0.1ms) SAVEPOINT active_record_1
13596
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13598
+  (0.1ms) SAVEPOINT active_record_1
13599
+ 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-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')
13600
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13601
+  (2.0ms) ROLLBACK
13602
+  (0.1ms) BEGIN
13603
+  (0.3ms) SAVEPOINT active_record_1
13604
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13606
+  (0.1ms) SAVEPOINT active_record_1
13607
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-27 19:14:53')
13608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13609
+  (0.5ms) ROLLBACK
13610
+  (0.1ms) BEGIN
13611
+  (0.2ms) SAVEPOINT active_record_1
13612
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13614
+  (0.1ms) SAVEPOINT active_record_1
13615
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-27 19:14:53')
13616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13617
+  (0.4ms) ROLLBACK
13618
+  (0.1ms) BEGIN
13619
+  (0.1ms) SAVEPOINT active_record_1
13620
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13622
+  (0.1ms) SAVEPOINT active_record_1
13623
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-27 19:14:53')
13624
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13625
+  (2.0ms) ROLLBACK
13626
+  (0.1ms) BEGIN
13627
+  (0.2ms) SAVEPOINT active_record_1
13628
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13630
+  (0.1ms) SAVEPOINT active_record_1
13631
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-27 19:14:53')
13632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13633
+  (0.5ms) ROLLBACK
13634
+  (0.2ms) BEGIN
13635
+  (0.2ms) SAVEPOINT active_record_1
13636
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13638
+  (0.2ms) SAVEPOINT active_record_1
13639
+ SQL (0.5ms) 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-27 19:14:53')
13640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13641
+  (0.8ms) ROLLBACK
13642
+  (0.1ms) BEGIN
13643
+  (0.1ms) SAVEPOINT active_record_1
13644
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13645
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13646
+  (1.2ms) SAVEPOINT active_record_1
13647
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-27 19:14:53')
13648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13649
+  (0.7ms) ROLLBACK
13650
+  (0.1ms) BEGIN
13651
+  (0.2ms) SAVEPOINT active_record_1
13652
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13653
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13654
+  (0.3ms) SAVEPOINT active_record_1
13655
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-27 19:14:53')
13656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13657
+  (0.9ms) ROLLBACK
13658
+  (0.1ms) BEGIN
13659
+  (0.1ms) SAVEPOINT active_record_1
13660
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13661
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13662
+  (0.1ms) SAVEPOINT active_record_1
13663
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-27 19:14:53')
13664
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13665
+  (0.7ms) ROLLBACK
13666
+  (0.1ms) BEGIN
13667
+  (0.2ms) SAVEPOINT active_record_1
13668
+ 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-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')
13669
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13670
+  (0.2ms) SAVEPOINT active_record_1
13671
+ 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-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-27 19:14:53')
13672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13673
+  (0.7ms) ROLLBACK
13674
+  (0.2ms) BEGIN
13675
+  (0.2ms) SAVEPOINT active_record_1
13676
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13678
+  (0.1ms) SAVEPOINT active_record_1
13679
+ SQL (0.5ms) 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-27 19:14:54')
13680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13681
+  (0.5ms) ROLLBACK
13682
+  (0.1ms) BEGIN
13683
+  (0.2ms) SAVEPOINT active_record_1
13684
+ SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13686
+  (0.2ms) SAVEPOINT active_record_1
13687
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-27 19:14:54')
13688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13689
+  (0.5ms) ROLLBACK
13690
+  (0.1ms) BEGIN
13691
+  (0.1ms) SAVEPOINT active_record_1
13692
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13693
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13694
+  (0.1ms) SAVEPOINT active_record_1
13695
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-27 19:14:54')
13696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13697
+  (0.6ms) ROLLBACK
13698
+  (0.1ms) BEGIN
13699
+  (0.1ms) SAVEPOINT active_record_1
13700
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13702
+  (0.1ms) SAVEPOINT active_record_1
13703
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-27 19:14:54')
13704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13705
+  (0.5ms) ROLLBACK
13706
+  (0.1ms) BEGIN
13707
+  (0.1ms) SAVEPOINT active_record_1
13708
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13709
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13710
+  (0.1ms) SAVEPOINT active_record_1
13711
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-27 19:14:54')
13712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13713
+  (0.4ms) ROLLBACK
13714
+  (0.1ms) BEGIN
13715
+  (0.1ms) SAVEPOINT active_record_1
13716
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13718
+  (0.1ms) SAVEPOINT active_record_1
13719
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-27 19:14:54')
13720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13721
+  (0.5ms) ROLLBACK
13722
+  (0.1ms) BEGIN
13723
+  (0.1ms) SAVEPOINT active_record_1
13724
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13726
+  (0.1ms) SAVEPOINT active_record_1
13727
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 65, '2012-08-27 19:14:54')
13728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13729
+  (0.4ms) ROLLBACK
13730
+  (0.0ms) BEGIN
13731
+  (0.2ms) SAVEPOINT active_record_1
13732
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13734
+  (0.1ms) SAVEPOINT active_record_1
13735
+ SQL (0.5ms) 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-27 19:14:54')
13736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13737
+  (0.6ms) ROLLBACK
13738
+  (0.1ms) BEGIN
13739
+  (0.1ms) SAVEPOINT active_record_1
13740
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13742
+  (0.4ms) ROLLBACK
13743
+  (0.1ms) BEGIN
13744
+  (0.1ms) SAVEPOINT active_record_1
13745
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13747
+  (0.2ms) SAVEPOINT active_record_1
13748
+ 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-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 68, '2012-08-27 19:14:54')
13749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13750
+  (1.2ms) ROLLBACK
13751
+  (0.1ms) BEGIN
13752
+  (0.1ms) SAVEPOINT active_record_1
13753
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13754
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13755
+  (0.2ms) SAVEPOINT active_record_1
13756
+ 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-27 19:14:54', 'QUERY_STRING', 'something=value', 1, 1, 69, '2012-08-27 19:14:54')
13757
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13758
+  (0.6ms) ROLLBACK
13759
+  (0.1ms) BEGIN
13760
+  (0.1ms) SAVEPOINT active_record_1
13761
+ 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-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')
13762
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13763
+  (0.3ms) SAVEPOINT active_record_1
13764
+ 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-27 19:14:54', 'QUERY_STRING', 'something=value', 0, 1, 70, '2012-08-27 19:14:54')
13765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13766
+  (0.5ms) ROLLBACK
13767
+  (0.1ms) BEGIN
13768
+  (0.3ms) SAVEPOINT active_record_1
13769
+ 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-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')
13770
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13771
+  (0.2ms) SAVEPOINT active_record_1
13772
+ SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')
13773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13774
+  (0.2ms) SAVEPOINT active_record_1
13775
+ 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-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')
13776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13777
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13778
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
13779
+ (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
13780
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 71
13781
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13782
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
13783
+ (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
13784
+
13785
+
13786
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-27 13:14:54 -0600
13787
+ Processing by NewsController#show as HTML
13788
+ Parameters: {"id"=>"5"}
13789
+ Rendered text template (0.0ms)
13790
+ Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
13791
+  (0.8ms) ROLLBACK
13792
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
13793
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13794
+  (0.1ms) SELECT DATABASE() as db
13795
+  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
13796
+  (26.8ms) TRUNCATE TABLE `redirect_rules`;
13797
+  (1.6ms) TRUNCATE TABLE `request_environment_rules`;
13798
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
13799
+  (0.1ms) BEGIN
13800
+  (0.1ms) SAVEPOINT active_record_1
13801
+ 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-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')
13802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13803
+  (0.1ms) SAVEPOINT active_record_1
13804
+ SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')
13805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13806
+  (0.1ms) SAVEPOINT active_record_1
13807
+ 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-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')
13808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13809
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13810
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
13811
+ (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
13812
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
13813
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13814
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
13815
+ (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
13816
+
13817
+
13818
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-27 13:14:54 -0600
13819
+ Processing by NewsController#show as HTML
13820
+ Parameters: {"id"=>"20"}
13821
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
13822
+  (0.6ms) ROLLBACK
13823
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
13824
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13825
+  (2.2ms) TRUNCATE TABLE `redirect_rules`;
13826
+  (1.9ms) TRUNCATE TABLE `request_environment_rules`;
13827
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
13828
+  (0.1ms) BEGIN
13829
+  (0.1ms) SAVEPOINT active_record_1
13830
+ 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-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')
13831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13832
+  (0.2ms) SAVEPOINT active_record_1
13833
+ 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-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')
13834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13835
+  (0.2ms) SAVEPOINT active_record_1
13836
+ SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')
13837
+  (1.4ms) RELEASE SAVEPOINT active_record_1
13838
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13839
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
13840
+ (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
13841
+
13842
+
13843
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-27 13:14:54 -0600
13844
+
13845
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
13846
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
13847
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
13848
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
13849
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
13850
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
13851
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
13852
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
13853
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
13854
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
13855
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
13856
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
13857
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
13858
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
13859
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
13860
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
13861
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
13862
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
13863
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
13864
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
13865
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
13866
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
13867
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
13868
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
13869
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
13870
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
13871
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
13872
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
13873
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
13874
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
13875
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
13876
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
13877
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
13878
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
13879
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
13880
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
13881
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
13882
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
13883
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
13884
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
13885
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
13886
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
13887
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
13888
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
13889
+
13890
+
13891
+  (1.1ms) ROLLBACK
13892
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
13893
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
13894
+  (1.5ms) TRUNCATE TABLE `redirect_rules`;
13895
+  (19.8ms) TRUNCATE TABLE `request_environment_rules`;
13896
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
13897
+  (0.2ms) BEGIN
13898
+  (0.2ms) SAVEPOINT active_record_1
13899
+ 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-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')
13900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13901
+  (0.2ms) SAVEPOINT active_record_1
13902
+ 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-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')
13903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13904
+  (0.2ms) SAVEPOINT active_record_1
13905
+ 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-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')
13906
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13907
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13908
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
13909
+ (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
13910
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
13911
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
13912
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
13913
+ (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
13914
+
13915
+
13916
+ Started GET "/news" for 127.0.0.1 at 2012-08-27 13:14:54 -0600
13917
+ Processing by NewsController#index as HTML
13918
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
13919
+  (0.7ms) ROLLBACK
13920
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
13921
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
13922
+  (2.7ms) TRUNCATE TABLE `redirect_rules`;
13923
+  (1.1ms) TRUNCATE TABLE `request_environment_rules`;
13924
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
13925
+ Connecting to database specified by database.yml
13926
+  (0.2ms) BEGIN
13927
+  (0.3ms) SAVEPOINT active_record_1
13928
+ SQL (113.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]
13929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13930
+  (25.3ms) ROLLBACK
13931
+  (0.2ms) BEGIN
13932
+  (0.1ms) SAVEPOINT active_record_1
13933
+ SQL (12.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]
13934
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13935
+  (0.1ms) ROLLBACK
13936
+  (0.1ms) BEGIN
13937
+  (0.1ms) SAVEPOINT active_record_1
13938
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]
13939
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13940
+  (0.1ms) ROLLBACK
13941
+  (0.1ms) BEGIN
13942
+  (0.2ms) SAVEPOINT active_record_1
13943
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]
13944
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13945
+  (0.2ms) ROLLBACK
13946
+  (0.1ms) BEGIN
13947
+  (0.1ms) SAVEPOINT active_record_1
13948
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]
13949
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13950
+  (0.1ms) ROLLBACK
13951
+  (0.1ms) BEGIN
13952
+  (0.1ms) SAVEPOINT active_record_1
13953
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]
13954
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13955
+  (0.1ms) ROLLBACK
13956
+  (0.1ms) BEGIN
13957
+  (0.6ms) SAVEPOINT active_record_1
13958
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13960
+  (0.3ms) ROLLBACK
13961
+  (0.1ms) BEGIN
13962
+  (0.1ms) SAVEPOINT active_record_1
13963
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13964
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13965
+  (0.3ms) ROLLBACK
13966
+  (0.1ms) BEGIN
13967
+  (0.2ms) SAVEPOINT active_record_1
13968
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13969
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13970
+  (0.3ms) ROLLBACK
13971
+  (0.1ms) BEGIN
13972
+  (0.2ms) SAVEPOINT active_record_1
13973
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13974
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13975
+  (0.1ms) ROLLBACK
13976
+  (0.0ms) BEGIN
13977
+  (0.2ms) SAVEPOINT active_record_1
13978
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13980
+  (0.2ms) ROLLBACK
13981
+  (0.1ms) BEGIN
13982
+  (0.1ms) SAVEPOINT active_record_1
13983
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13984
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13985
+  (0.3ms) ROLLBACK
13986
+  (0.1ms) BEGIN
13987
+  (0.1ms) SAVEPOINT active_record_1
13988
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13989
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13990
+  (0.2ms) ROLLBACK
13991
+  (0.1ms) BEGIN
13992
+  (0.1ms) SAVEPOINT active_record_1
13993
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13995
+  (0.1ms) ROLLBACK
13996
+  (0.1ms) BEGIN
13997
+  (0.1ms) SAVEPOINT active_record_1
13998
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
13999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14000
+  (0.1ms) ROLLBACK
14001
+  (0.0ms) BEGIN
14002
+  (0.1ms) SAVEPOINT active_record_1
14003
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14004
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14005
+  (0.1ms) ROLLBACK
14006
+  (0.1ms) BEGIN
14007
+  (0.1ms) SAVEPOINT active_record_1
14008
+ SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14010
+  (0.1ms) ROLLBACK
14011
+  (0.2ms) BEGIN
14012
+  (0.1ms) SAVEPOINT active_record_1
14013
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14014
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14015
+  (0.3ms) ROLLBACK
14016
+  (0.2ms) BEGIN
14017
+  (0.2ms) SAVEPOINT active_record_1
14018
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14020
+ RedirectRule Load (139.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14021
+ ((source_is_regex = 'f' AND redirect_rules.source = '/someplace') OR
14022
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/someplace' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/someplace' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14023
+  (0.2ms) ROLLBACK
14024
+  (0.1ms) BEGIN
14025
+  (0.1ms) SAVEPOINT active_record_1
14026
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14028
+ RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14029
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14030
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14031
+ RequestEnvironmentRule Load (21.9ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 20
14032
+  (0.2ms) ROLLBACK
14033
+  (0.0ms) BEGIN
14034
+  (0.1ms) SAVEPOINT active_record_1
14035
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14036
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14037
+  (0.3ms) SAVEPOINT active_record_1
14038
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", true], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14040
+ RedirectRule Load (35.1ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14041
+ ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR
14042
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14043
+ RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 22
14044
+  (0.1ms) ROLLBACK
14045
+  (0.0ms) BEGIN
14046
+  (0.1ms) SAVEPOINT active_record_1
14047
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14049
+  (0.1ms) SAVEPOINT active_record_1
14050
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", true], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14051
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14052
+ RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14053
+ ((source_is_regex = 'f' AND redirect_rules.source = '/new_SHINY/from_company') OR
14054
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_SHINY/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_SHINY/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14055
+  (0.1ms) ROLLBACK
14056
+  (0.1ms) BEGIN
14057
+  (0.1ms) SAVEPOINT active_record_1
14058
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14060
+  (0.3ms) SAVEPOINT active_record_1
14061
+ SQL (13.0ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14062
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14063
+ RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14064
+ ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR
14065
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14066
+ RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 26
14067
+  (0.1ms) ROLLBACK
14068
+  (0.1ms) BEGIN
14069
+  (0.1ms) SAVEPOINT active_record_1
14070
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14072
+  (0.1ms) SAVEPOINT active_record_1
14073
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14074
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14075
+ RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14076
+ ((source_is_regex = 'f' AND redirect_rules.source = '/new_SHINY/from_company') OR
14077
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_SHINY/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_SHINY/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14078
+ RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 28
14079
+  (0.2ms) ROLLBACK
14080
+  (0.2ms) BEGIN
14081
+  (0.2ms) SAVEPOINT active_record_1
14082
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14083
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14084
+  (0.2ms) SAVEPOINT active_record_1
14085
+ SQL (8.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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 29], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14087
+ RedirectRule Load (0.7ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14088
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14089
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14090
+ RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 29
14091
+  (0.3ms) ROLLBACK
14092
+  (0.1ms) BEGIN
14093
+  (0.1ms) SAVEPOINT active_record_1
14094
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14096
+  (0.1ms) SAVEPOINT active_record_1
14097
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 30], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14099
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14100
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14101
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14102
+ RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 30
14103
+  (0.2ms) ROLLBACK
14104
+  (0.2ms) BEGIN
14105
+  (0.1ms) SAVEPOINT active_record_1
14106
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14108
+  (0.2ms) SAVEPOINT active_record_1
14109
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 31], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14111
+  (0.2ms) SAVEPOINT active_record_1
14112
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 31], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14114
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14115
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14116
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14117
+ RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 31
14118
+  (0.3ms) ROLLBACK
14119
+  (0.1ms) BEGIN
14120
+  (0.1ms) SAVEPOINT active_record_1
14121
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14122
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14123
+  (0.2ms) SAVEPOINT active_record_1
14124
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 32], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14125
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14126
+  (0.1ms) SAVEPOINT active_record_1
14127
+ SQL (0.7ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 32], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14129
+ RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14130
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14131
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14132
+ RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 32
14133
+  (0.2ms) ROLLBACK
14134
+  (0.1ms) BEGIN
14135
+  (0.1ms) SAVEPOINT active_record_1
14136
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14138
+  (0.1ms) SAVEPOINT active_record_1
14139
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14140
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14141
+  (0.4ms) SAVEPOINT active_record_1
14142
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 33], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14144
+  (0.1ms) SAVEPOINT active_record_1
14145
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 33], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14147
+  (0.1ms) SAVEPOINT active_record_1
14148
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 34], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14150
+  (0.2ms) SAVEPOINT active_record_1
14151
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 34], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14152
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14153
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14154
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14155
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14156
+ RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 33
14157
+  (0.2ms) ROLLBACK
14158
+  (0.1ms) BEGIN
14159
+  (0.1ms) SAVEPOINT active_record_1
14160
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14162
+  (0.3ms) SAVEPOINT active_record_1
14163
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14164
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14165
+  (0.2ms) SAVEPOINT active_record_1
14166
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 35], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14168
+  (0.2ms) SAVEPOINT active_record_1
14169
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 35], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14171
+  (0.1ms) SAVEPOINT active_record_1
14172
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 36], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14173
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14174
+  (0.1ms) SAVEPOINT active_record_1
14175
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 36], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14177
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14178
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14179
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14180
+ RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 35
14181
+ RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 36
14182
+  (0.2ms) ROLLBACK
14183
+  (0.2ms) BEGIN
14184
+  (0.1ms) SAVEPOINT active_record_1
14185
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14186
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14187
+  (0.1ms) SAVEPOINT active_record_1
14188
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14189
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14190
+  (0.1ms) SAVEPOINT active_record_1
14191
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 37], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14193
+  (0.1ms) SAVEPOINT active_record_1
14194
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 37], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14195
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14196
+  (0.2ms) SAVEPOINT active_record_1
14197
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 38], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14199
+  (0.1ms) SAVEPOINT active_record_1
14200
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 38], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14202
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14203
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14204
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14205
+ RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 37
14206
+ RequestEnvironmentRule Load (0.2ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 38
14207
+  (0.1ms) ROLLBACK
14208
+  (0.1ms) BEGIN
14209
+  (0.1ms) SAVEPOINT active_record_1
14210
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14212
+  (0.1ms) SAVEPOINT active_record_1
14213
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9]_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14214
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14215
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14216
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14217
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14218
+ RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 39
14219
+  (0.1ms) ROLLBACK
14220
+  (0.1ms) BEGIN
14221
+  (0.1ms) SAVEPOINT active_record_1
14222
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14224
+  (0.1ms) SAVEPOINT active_record_1
14225
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14227
+ RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14228
+ ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR
14229
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14230
+ RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 42
14231
+  (0.2ms) ROLLBACK
14232
+  (0.1ms) BEGIN
14233
+  (0.1ms) SAVEPOINT active_record_1
14234
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14236
+  (0.1ms) SAVEPOINT active_record_1
14237
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14238
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14239
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14240
+ ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR
14241
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14242
+ RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 43
14243
+  (0.2ms) ROLLBACK
14244
+  (0.1ms) BEGIN
14245
+  (0.1ms) SAVEPOINT active_record_1
14246
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14247
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14248
+  (0.2ms) SAVEPOINT active_record_1
14249
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14250
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14251
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14252
+ ((source_is_regex = 'f' AND redirect_rules.source = '/someplace') OR
14253
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/someplace' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/someplace' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14254
+  (0.1ms) ROLLBACK
14255
+  (0.1ms) BEGIN
14256
+  (0.1ms) SAVEPOINT active_record_1
14257
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14259
+  (0.1ms) ROLLBACK
14260
+  (0.1ms) BEGIN
14261
+  (0.1ms) SAVEPOINT active_record_1
14262
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14264
+  (0.1ms) SAVEPOINT active_record_1
14265
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14266
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14267
+  (0.1ms) ROLLBACK
14268
+  (0.1ms) BEGIN
14269
+  (0.2ms) SAVEPOINT active_record_1
14270
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14272
+  (0.2ms) SAVEPOINT active_record_1
14273
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 50], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14275
+  (0.1ms) ROLLBACK
14276
+  (0.1ms) BEGIN
14277
+  (0.2ms) SAVEPOINT active_record_1
14278
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14280
+  (0.2ms) SAVEPOINT active_record_1
14281
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 51], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14283
+  (0.1ms) ROLLBACK
14284
+  (0.1ms) BEGIN
14285
+  (0.1ms) SAVEPOINT active_record_1
14286
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14287
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14288
+  (0.1ms) SAVEPOINT active_record_1
14289
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 52], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14290
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14291
+  (0.2ms) ROLLBACK
14292
+  (0.1ms) BEGIN
14293
+  (0.1ms) SAVEPOINT active_record_1
14294
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14295
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14296
+  (0.1ms) SAVEPOINT active_record_1
14297
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 53], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14298
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14299
+  (0.1ms) ROLLBACK
14300
+  (0.3ms) BEGIN
14301
+  (0.2ms) SAVEPOINT active_record_1
14302
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14303
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14304
+  (0.1ms) SAVEPOINT active_record_1
14305
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 54], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14307
+  (0.1ms) ROLLBACK
14308
+  (0.1ms) BEGIN
14309
+  (0.2ms) SAVEPOINT active_record_1
14310
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14312
+  (0.1ms) SAVEPOINT active_record_1
14313
+ SQL (0.7ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 55], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14315
+  (0.1ms) ROLLBACK
14316
+  (0.2ms) BEGIN
14317
+  (0.2ms) SAVEPOINT active_record_1
14318
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14319
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14320
+  (0.1ms) SAVEPOINT active_record_1
14321
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 56], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14323
+  (0.2ms) ROLLBACK
14324
+  (0.1ms) BEGIN
14325
+  (0.2ms) SAVEPOINT active_record_1
14326
+ SQL (0.9ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14327
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14328
+  (0.1ms) SAVEPOINT active_record_1
14329
+ SQL (0.7ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 57], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14331
+  (0.1ms) ROLLBACK
14332
+  (0.1ms) BEGIN
14333
+  (0.2ms) SAVEPOINT active_record_1
14334
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14335
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14336
+  (0.2ms) SAVEPOINT active_record_1
14337
+ SQL (0.7ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 58], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14339
+  (0.2ms) ROLLBACK
14340
+  (0.1ms) BEGIN
14341
+  (0.2ms) SAVEPOINT active_record_1
14342
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14343
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14344
+  (0.1ms) SAVEPOINT active_record_1
14345
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 59], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14347
+  (0.1ms) ROLLBACK
14348
+  (0.1ms) BEGIN
14349
+  (0.2ms) SAVEPOINT active_record_1
14350
+ SQL (0.9ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14351
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14352
+  (0.2ms) SAVEPOINT active_record_1
14353
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 60], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14354
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14355
+  (0.2ms) ROLLBACK
14356
+  (0.1ms) BEGIN
14357
+  (0.1ms) SAVEPOINT active_record_1
14358
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14360
+  (0.2ms) SAVEPOINT active_record_1
14361
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 61], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14362
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14363
+  (0.2ms) ROLLBACK
14364
+  (0.1ms) BEGIN
14365
+  (0.2ms) SAVEPOINT active_record_1
14366
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14367
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14368
+  (0.1ms) SAVEPOINT active_record_1
14369
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 62], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14370
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14371
+  (0.3ms) ROLLBACK
14372
+  (0.1ms) BEGIN
14373
+  (0.2ms) SAVEPOINT active_record_1
14374
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14376
+  (0.1ms) SAVEPOINT active_record_1
14377
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 63], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14378
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14379
+  (0.2ms) ROLLBACK
14380
+  (0.1ms) BEGIN
14381
+  (0.1ms) SAVEPOINT active_record_1
14382
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14383
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14384
+  (0.2ms) SAVEPOINT active_record_1
14385
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 64], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14386
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14387
+  (0.1ms) ROLLBACK
14388
+  (0.1ms) BEGIN
14389
+  (0.1ms) SAVEPOINT active_record_1
14390
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14391
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14392
+  (0.1ms) SAVEPOINT active_record_1
14393
+ SQL (0.6ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 65], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14394
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14395
+  (0.2ms) ROLLBACK
14396
+  (0.1ms) BEGIN
14397
+  (2.0ms) SAVEPOINT active_record_1
14398
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14400
+  (0.2ms) SAVEPOINT active_record_1
14401
+ 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 66], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14403
+  (0.1ms) ROLLBACK
14404
+  (0.1ms) BEGIN
14405
+  (0.3ms) SAVEPOINT active_record_1
14406
+ SQL (1.0ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14407
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14408
+  (0.2ms) ROLLBACK
14409
+  (0.1ms) BEGIN
14410
+  (0.2ms) SAVEPOINT active_record_1
14411
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14413
+  (0.0ms) SAVEPOINT active_record_1
14414
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 68], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14415
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14416
+  (0.2ms) ROLLBACK
14417
+  (0.2ms) BEGIN
14418
+  (0.2ms) SAVEPOINT active_record_1
14419
+ SQL (1.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14421
+  (0.1ms) SAVEPOINT active_record_1
14422
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 69], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14423
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14424
+  (0.1ms) ROLLBACK
14425
+  (0.1ms) BEGIN
14426
+  (0.2ms) SAVEPOINT active_record_1
14427
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14428
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14429
+  (0.2ms) SAVEPOINT active_record_1
14430
+ SQL (0.5ms) 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 ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", false], ["environment_value_is_regex", true], ["redirect_rule_id", 70], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14431
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14432
+  (0.1ms) ROLLBACK
14433
+  (0.1ms) BEGIN
14434
+  (0.1ms) SAVEPOINT active_record_1
14435
+ SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14436
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14437
+  (0.3ms) SAVEPOINT active_record_1
14438
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14439
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14440
+  (0.2ms) SAVEPOINT active_record_1
14441
+ SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]
14442
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14443
+ RedirectRule Load (0.9ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14444
+ ((source_is_regex = 'f' AND redirect_rules.source = '/my_custom_url') OR
14445
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_custom_url' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_custom_url' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14446
+ RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 71
14447
+ RedirectRule Load (1.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14448
+ ((source_is_regex = 'f' AND redirect_rules.source = '/news/5') OR
14449
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news/5' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news/5' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14450
+
14451
+
14452
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-27 13:16:05 -0600
14453
+ Processing by NewsController#show as HTML
14454
+ Parameters: {"id"=>"5"}
14455
+ Rendered text template (0.0ms)
14456
+ Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms)
14457
+  (0.3ms) ROLLBACK
14458
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL
14459
+  (7.1ms) select current_database()
14460
+  (32.5ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
14461
+  (80.4ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;
14462
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL
14463
+  (0.1ms) BEGIN
14464
+  (0.2ms) SAVEPOINT active_record_1
14465
+ SQL (1.3ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14466
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14467
+  (0.1ms) SAVEPOINT active_record_1
14468
+ SQL (0.9ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14469
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14470
+  (0.1ms) SAVEPOINT active_record_1
14471
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14472
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14473
+ RedirectRule Load (1.2ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14474
+ ((source_is_regex = 'f' AND redirect_rules.source = '/my_custom_url/20') OR
14475
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_custom_url/20' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_custom_url/20' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14476
+ RequestEnvironmentRule Load (0.9ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 2
14477
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14478
+ ((source_is_regex = 'f' AND redirect_rules.source = '/news/20') OR
14479
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news/20' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news/20' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14480
+
14481
+
14482
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-27 13:16:06 -0600
14483
+ Processing by NewsController#show as HTML
14484
+ Parameters: {"id"=>"20"}
14485
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
14486
+  (0.4ms) ROLLBACK
14487
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL
14488
+  (31.4ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;
14489
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL
14490
+  (0.1ms) BEGIN
14491
+  (0.1ms) SAVEPOINT active_record_1
14492
+ SQL (1.2ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14493
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14494
+  (0.2ms) SAVEPOINT active_record_1
14495
+ SQL (1.2ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14496
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14497
+  (0.1ms) SAVEPOINT active_record_1
14498
+ SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14499
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14500
+ RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14501
+ ((source_is_regex = 'f' AND redirect_rules.source = '/my_old_url') OR
14502
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_old_url' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_old_url' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14503
+
14504
+
14505
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-27 13:16:06 -0600
14506
+
14507
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
14508
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
14509
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
14510
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
14511
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
14512
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
14513
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
14514
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
14515
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
14516
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
14517
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
14518
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
14519
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
14520
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
14521
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
14522
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
14523
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
14524
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
14525
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
14526
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
14527
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
14528
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
14529
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
14530
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
14531
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
14532
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
14533
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
14534
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
14535
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
14536
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
14537
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
14538
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
14539
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
14540
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
14541
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
14542
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
14543
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
14544
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
14545
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
14546
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
14547
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
14548
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
14549
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
14550
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
14551
+
14552
+
14553
+  (0.2ms) ROLLBACK
14554
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL
14555
+  (9.5ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;
14556
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL
14557
+  (0.2ms) BEGIN
14558
+  (0.2ms) SAVEPOINT active_record_1
14559
+ SQL (1.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14560
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14561
+  (0.1ms) SAVEPOINT active_record_1
14562
+ SQL (1.0ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14563
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14564
+  (0.2ms) SAVEPOINT active_record_1
14565
+ SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]
14566
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14567
+ RedirectRule Load (1.0ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14568
+ ((source_is_regex = 'f' AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
14569
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_old_url?categoryID=12345' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_old_url?categoryID=12345' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14570
+ RequestEnvironmentRule Load (0.7ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 3
14571
+ RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND
14572
+ ((source_is_regex = 'f' AND redirect_rules.source = '/news') OR
14573
+ (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC
14574
+
14575
+
14576
+ Started GET "/news" for 127.0.0.1 at 2012-08-27 13:16:06 -0600
14577
+ Processing by NewsController#index as HTML
14578
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
14579
+  (0.4ms) ROLLBACK
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
+  (8.2ms) TRUNCATE TABLE "request_environment_rules", "redirect_rules" RESTART IDENTITY CASCADE;
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