redirector 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -5,3 +5,9 @@
5
5
  * Rules can have further request environment conditions to match based on HTTP Headers or Rack environment variables.
6
6
  * RequestEnvironmentRules can be exact string matches or regex matches.
7
7
  * Make regex's case sensitivity configurable
8
+
9
+
10
+ == 0.1.1 / 2012-08-24
11
+ * Destroy RequestEnvironmentRules when the parent RedirectRule is destroyed
12
+ * Add some more indexes to redirect_rules table
13
+ * Allow query strings to be part of the match on RedirectRules
data/README.md CHANGED
@@ -6,11 +6,23 @@ Redirector is a Rails engine that adds a piece of middleware to the top of your
6
6
 
7
7
  1. Add this to your Gemfile and then `bundle install`:
8
8
  <pre><code>gem 'redirector'</code></pre>
9
- 2. `$ rake redirector:install:migrations`
9
+ 2. `$ rake redirector_engine:install:migrations`
10
10
  3. `$ rake db:migrate`
11
11
  4. Create an interface for admins to manage the redirect rules.
12
12
 
13
13
 
14
+ ### Config option
15
+
16
+ There is one config option `include_query_in_source`. If you want your redirect rules to also match against the query string as well as the path then you need to set this to `true` (the default is `false`). You can set this inside your configuration in `config/application.rb` of your Rails application like so:
17
+
18
+ module MyApplication
19
+ class Application < Rails::Application
20
+ # ...
21
+
22
+ config.redirector.include_query_in_source = true
23
+ end
24
+ end
25
+
14
26
  ## Redirect Rule definitions
15
27
 
16
28
  Redirect rules have 3 parts:
@@ -2,7 +2,7 @@ class RedirectRule < ActiveRecord::Base
2
2
  extend Redirector::RegexAttribute
3
3
  regex_attribute :source
4
4
 
5
- has_many :request_environment_rules
5
+ has_many :request_environment_rules, :dependent => :destroy
6
6
 
7
7
  attr_accessible :source,
8
8
  :source_is_regex,
@@ -10,5 +10,7 @@ class CreateRedirectRules < ActiveRecord::Migration
10
10
  end
11
11
  add_index :redirect_rules, :source
12
12
  add_index :redirect_rules, :active
13
+ add_index :redirect_rules, :source_is_regex
14
+ add_index :redirect_rules, :source_is_case_sensitive
13
15
  end
14
16
  end
data/lib/redirector.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  module Redirector
2
2
  autoload :Middleware, 'redirector/middleware'
3
3
  autoload :RegexAttribute, 'redirector/regex_attribute'
4
+
5
+ mattr_accessor :include_query_in_source
4
6
  end
5
7
 
6
8
  require "redirector/engine"
@@ -1,7 +1,13 @@
1
1
  module Redirector
2
2
  class Engine < ::Rails::Engine
3
+ config.redirector = ActiveSupport::OrderedOptions.new
4
+
3
5
  initializer "redirector.add_middleware" do |app|
4
6
  app.middleware.insert_before(Rack::Lock, Redirector::Middleware)
5
7
  end
8
+
9
+ initializer "redirector.apply_options" do |app|
10
+ Redirector.include_query_in_source = app.config.redirector.include_query_in_source || false
11
+ end
6
12
  end
7
13
  end
@@ -35,7 +35,11 @@ module Redirector
35
35
  end
36
36
 
37
37
  def request_path
38
- env['PATH_INFO']
38
+ if Redirector.include_query_in_source
39
+ env['ORIGINAL_FULLPATH']
40
+ else
41
+ env['PATH_INFO']
42
+ end
39
43
  end
40
44
 
41
45
  def request_host
@@ -1,3 +1,3 @@
1
1
  module Redirector
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -19,7 +19,7 @@ Dummy::Application.configure do
19
19
  config.action_controller.perform_caching = false
20
20
 
21
21
  # Raise exceptions instead of rendering exception templates
22
- config.action_dispatch.show_exceptions = false
22
+ config.action_dispatch.show_exceptions = true
23
23
 
24
24
  # Disable request forgery protection in test environment
25
25
  config.action_controller.allow_forgery_protection = false
@@ -25,6 +25,8 @@ ActiveRecord::Schema.define(:version => 20120823163756) do
25
25
 
26
26
  add_index "redirect_rules", ["active"], :name => "index_redirect_rules_on_active"
27
27
  add_index "redirect_rules", ["source"], :name => "index_redirect_rules_on_source"
28
+ add_index "redirect_rules", ["source_is_case_sensitive"], :name => "index_redirect_rules_on_source_is_case_sensitive"
29
+ add_index "redirect_rules", ["source_is_regex"], :name => "index_redirect_rules_on_source_is_regex"
28
30
 
29
31
  create_table "request_environment_rules", :force => true do |t|
30
32
  t.integer "redirect_rule_id", :null => false
@@ -8697,3 +8697,3896 @@ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
8697
8697
   (1.7ms) TRUNCATE TABLE `redirect_rules`;
8698
8698
   (1.2ms) TRUNCATE TABLE `request_environment_rules`;
8699
8699
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
8700
+ Connecting to database specified by database.yml
8701
+  (0.1ms) BEGIN
8702
+  (0.4ms) SAVEPOINT active_record_1
8703
+ SQL (16.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8705
+  (16.5ms) ROLLBACK
8706
+  (0.2ms) BEGIN
8707
+  (0.2ms) SAVEPOINT active_record_1
8708
+ 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-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8710
+  (0.6ms) ROLLBACK
8711
+  (0.1ms) BEGIN
8712
+  (0.1ms) SAVEPOINT active_record_1
8713
+ 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-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8715
+  (0.4ms) ROLLBACK
8716
+  (0.1ms) BEGIN
8717
+  (0.2ms) SAVEPOINT active_record_1
8718
+ 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-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8719
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8720
+  (0.7ms) ROLLBACK
8721
+  (0.2ms) BEGIN
8722
+  (0.2ms) SAVEPOINT active_record_1
8723
+ SQL (13.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8725
+  (0.5ms) ROLLBACK
8726
+  (0.1ms) BEGIN
8727
+  (0.2ms) SAVEPOINT active_record_1
8728
+ 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-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8729
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8730
+  (0.9ms) ROLLBACK
8731
+  (0.2ms) BEGIN
8732
+  (0.2ms) SAVEPOINT active_record_1
8733
+ 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-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')
8734
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8735
+  (0.7ms) ROLLBACK
8736
+  (0.1ms) BEGIN
8737
+  (0.1ms) SAVEPOINT active_record_1
8738
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8739
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8740
+  (20.9ms) ROLLBACK
8741
+  (0.1ms) BEGIN
8742
+  (0.1ms) SAVEPOINT active_record_1
8743
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8745
+  (2.4ms) ROLLBACK
8746
+  (0.2ms) BEGIN
8747
+  (0.2ms) SAVEPOINT active_record_1
8748
+ SQL (16.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8749
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8750
+  (0.6ms) ROLLBACK
8751
+  (0.1ms) BEGIN
8752
+  (0.2ms) SAVEPOINT active_record_1
8753
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8755
+  (0.5ms) ROLLBACK
8756
+  (0.1ms) BEGIN
8757
+  (0.2ms) SAVEPOINT active_record_1
8758
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8760
+  (0.6ms) ROLLBACK
8761
+  (0.1ms) BEGIN
8762
+  (0.3ms) SAVEPOINT active_record_1
8763
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8764
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8765
+  (0.5ms) ROLLBACK
8766
+  (0.1ms) BEGIN
8767
+  (0.1ms) SAVEPOINT active_record_1
8768
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8770
+  (0.7ms) ROLLBACK
8771
+  (0.1ms) BEGIN
8772
+  (0.1ms) SAVEPOINT active_record_1
8773
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8775
+  (0.5ms) ROLLBACK
8776
+  (0.1ms) BEGIN
8777
+  (0.1ms) SAVEPOINT active_record_1
8778
+ SQL (11.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8779
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8780
+  (0.6ms) ROLLBACK
8781
+  (0.1ms) BEGIN
8782
+  (0.2ms) SAVEPOINT active_record_1
8783
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8784
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8785
+  (0.5ms) ROLLBACK
8786
+  (0.1ms) BEGIN
8787
+  (0.1ms) SAVEPOINT active_record_1
8788
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8789
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8790
+  (12.8ms) ROLLBACK
8791
+  (0.1ms) BEGIN
8792
+  (0.1ms) SAVEPOINT active_record_1
8793
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8795
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8796
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
8797
+ (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)))))
8798
+  (12.5ms) ROLLBACK
8799
+  (0.1ms) BEGIN
8800
+  (0.1ms) SAVEPOINT active_record_1
8801
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8803
+ RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8804
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8805
+ (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)))))
8806
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
8807
+  (1.0ms) ROLLBACK
8808
+  (0.1ms) BEGIN
8809
+  (0.1ms) SAVEPOINT active_record_1
8810
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8812
+  (0.2ms) SAVEPOINT active_record_1
8813
+ 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-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:27:30')
8814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8815
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8816
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
8817
+ (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)))))
8818
+ RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
8819
+  (0.7ms) ROLLBACK
8820
+  (0.1ms) BEGIN
8821
+  (0.2ms) SAVEPOINT active_record_1
8822
+ SQL (60.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8823
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8824
+  (0.3ms) SAVEPOINT active_record_1
8825
+ 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-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:27:30')
8826
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8827
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8828
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
8829
+ (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)))))
8830
+  (5.6ms) ROLLBACK
8831
+  (0.1ms) BEGIN
8832
+  (0.1ms) SAVEPOINT active_record_1
8833
+ SQL (12.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8834
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8835
+  (0.3ms) SAVEPOINT active_record_1
8836
+ 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-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:30')
8837
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8838
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8839
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
8840
+ (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)))))
8841
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
8842
+  (6.2ms) ROLLBACK
8843
+  (0.1ms) BEGIN
8844
+  (0.2ms) SAVEPOINT active_record_1
8845
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8847
+  (0.2ms) SAVEPOINT active_record_1
8848
+ 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-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:30')
8849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8850
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8851
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
8852
+ (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)))))
8853
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
8854
+  (12.5ms) ROLLBACK
8855
+  (0.1ms) BEGIN
8856
+  (1.0ms) SAVEPOINT active_record_1
8857
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8858
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8859
+  (0.2ms) SAVEPOINT active_record_1
8860
+ SQL (30.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-24 22:27:30', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:27:30')
8861
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8862
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8863
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8864
+ (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)))))
8865
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
8866
+  (52.2ms) ROLLBACK
8867
+  (0.2ms) BEGIN
8868
+  (0.1ms) SAVEPOINT active_record_1
8869
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8871
+  (0.3ms) SAVEPOINT active_record_1
8872
+ 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-24 22:27:30', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:27:30')
8873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8874
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8875
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8876
+ (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)))))
8877
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
8878
+  (82.6ms) ROLLBACK
8879
+  (0.3ms) BEGIN
8880
+  (0.2ms) SAVEPOINT active_record_1
8881
+ 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-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')
8882
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8883
+  (0.3ms) SAVEPOINT active_record_1
8884
+ 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-24 22:27:30', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:27:30')
8885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8886
+  (0.2ms) SAVEPOINT active_record_1
8887
+ 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-24 22:27:30', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:27:30')
8888
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8889
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8890
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8891
+ (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)))))
8892
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
8893
+  (96.3ms) ROLLBACK
8894
+  (0.1ms) BEGIN
8895
+  (0.2ms) SAVEPOINT active_record_1
8896
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8897
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8898
+  (0.2ms) SAVEPOINT active_record_1
8899
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:27:31')
8900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8901
+  (0.1ms) SAVEPOINT active_record_1
8902
+ 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-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:27:31')
8903
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8904
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8905
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8906
+ (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)))))
8907
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
8908
+  (15.5ms) ROLLBACK
8909
+  (0.1ms) BEGIN
8910
+  (0.2ms) SAVEPOINT active_record_1
8911
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8912
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8913
+  (0.3ms) SAVEPOINT active_record_1
8914
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8916
+  (0.2ms) SAVEPOINT active_record_1
8917
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:27:31')
8918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8919
+  (0.1ms) SAVEPOINT active_record_1
8920
+ 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-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:27:31')
8921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8922
+  (0.2ms) SAVEPOINT active_record_1
8923
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:27:31')
8924
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8925
+  (0.1ms) SAVEPOINT active_record_1
8926
+ 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-24 22:27:31', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:27:31')
8927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8928
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8929
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8930
+ (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)))))
8931
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
8932
+  (11.9ms) ROLLBACK
8933
+  (0.1ms) BEGIN
8934
+  (0.1ms) SAVEPOINT active_record_1
8935
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8937
+  (0.1ms) SAVEPOINT active_record_1
8938
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8939
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8940
+  (0.2ms) SAVEPOINT active_record_1
8941
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:27:31')
8942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8943
+  (0.1ms) SAVEPOINT active_record_1
8944
+ 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-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:27:31')
8945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8946
+  (0.2ms) SAVEPOINT active_record_1
8947
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:27:31')
8948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8949
+  (0.1ms) SAVEPOINT active_record_1
8950
+ 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-24 22:27:31', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:27:31')
8951
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8952
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8953
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8954
+ (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)))))
8955
+ RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
8956
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
8957
+  (55.7ms) ROLLBACK
8958
+  (0.2ms) BEGIN
8959
+  (0.2ms) SAVEPOINT active_record_1
8960
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8962
+  (0.1ms) SAVEPOINT active_record_1
8963
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8964
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8965
+  (0.3ms) SAVEPOINT active_record_1
8966
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:27:31')
8967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8968
+  (0.2ms) SAVEPOINT active_record_1
8969
+ 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-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:27:31')
8970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8971
+  (0.1ms) SAVEPOINT active_record_1
8972
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:27:31')
8973
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8974
+  (0.2ms) SAVEPOINT active_record_1
8975
+ 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-24 22:27:31', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:27:31')
8976
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8977
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8978
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
8979
+ (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)))))
8980
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
8981
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
8982
+  (39.6ms) ROLLBACK
8983
+  (0.1ms) BEGIN
8984
+  (0.1ms) SAVEPOINT active_record_1
8985
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8987
+  (0.1ms) SAVEPOINT active_record_1
8988
+ 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-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')
8989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8990
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
8991
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
8992
+ (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)))))
8993
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
8994
+  (5.0ms) ROLLBACK
8995
+  (0.1ms) BEGIN
8996
+  (0.1ms) SAVEPOINT active_record_1
8997
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
8998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8999
+  (0.1ms) SAVEPOINT active_record_1
9000
+ 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-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')
9001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9002
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9003
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9004
+ (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)))))
9005
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41
9006
+  (13.0ms) ROLLBACK
9007
+  (0.1ms) BEGIN
9008
+  (0.2ms) SAVEPOINT active_record_1
9009
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9010
+  (0.4ms) RELEASE SAVEPOINT active_record_1
9011
+  (0.2ms) SAVEPOINT active_record_1
9012
+ 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-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')
9013
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9014
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9015
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
9016
+ (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)))))
9017
+  (13.5ms) ROLLBACK
9018
+  (0.1ms) BEGIN
9019
+  (0.2ms) SAVEPOINT active_record_1
9020
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9022
+  (0.6ms) ROLLBACK
9023
+  (0.1ms) BEGIN
9024
+  (0.1ms) SAVEPOINT active_record_1
9025
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9026
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9027
+  (0.1ms) SAVEPOINT active_record_1
9028
+ 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-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')
9029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9030
+  (16.3ms) ROLLBACK
9031
+  (0.1ms) BEGIN
9032
+  (0.3ms) SAVEPOINT active_record_1
9033
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9034
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9035
+  (0.1ms) SAVEPOINT active_record_1
9036
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:27:31')
9037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9038
+  (0.5ms) ROLLBACK
9039
+  (0.1ms) BEGIN
9040
+  (0.2ms) SAVEPOINT active_record_1
9041
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9042
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9043
+  (0.3ms) SAVEPOINT active_record_1
9044
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:27:31')
9045
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9046
+  (26.4ms) ROLLBACK
9047
+  (0.1ms) BEGIN
9048
+  (0.2ms) SAVEPOINT active_record_1
9049
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9050
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9051
+  (0.1ms) SAVEPOINT active_record_1
9052
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:27:31')
9053
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9054
+  (9.5ms) ROLLBACK
9055
+  (0.2ms) BEGIN
9056
+  (0.3ms) SAVEPOINT active_record_1
9057
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9058
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9059
+  (0.3ms) SAVEPOINT active_record_1
9060
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:27:31')
9061
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9062
+  (16.9ms) ROLLBACK
9063
+  (0.2ms) BEGIN
9064
+  (0.2ms) SAVEPOINT active_record_1
9065
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9066
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9067
+  (0.2ms) SAVEPOINT active_record_1
9068
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:27:31')
9069
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9070
+  (5.9ms) ROLLBACK
9071
+  (0.1ms) BEGIN
9072
+  (0.2ms) SAVEPOINT active_record_1
9073
+ SQL (3.0ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9075
+  (0.2ms) SAVEPOINT active_record_1
9076
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:27:31')
9077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9078
+  (5.6ms) ROLLBACK
9079
+  (0.1ms) BEGIN
9080
+  (0.1ms) SAVEPOINT active_record_1
9081
+ SQL (23.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9083
+  (0.1ms) SAVEPOINT active_record_1
9084
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:27:31')
9085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9086
+  (12.7ms) ROLLBACK
9087
+  (0.1ms) BEGIN
9088
+  (0.1ms) SAVEPOINT active_record_1
9089
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9091
+  (0.1ms) SAVEPOINT active_record_1
9092
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:27:31')
9093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9094
+  (1.7ms) ROLLBACK
9095
+  (0.1ms) BEGIN
9096
+  (0.2ms) SAVEPOINT active_record_1
9097
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9098
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9099
+  (0.3ms) SAVEPOINT active_record_1
9100
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:27:31')
9101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9102
+  (0.7ms) ROLLBACK
9103
+  (0.1ms) BEGIN
9104
+  (0.1ms) SAVEPOINT active_record_1
9105
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9107
+  (0.1ms) SAVEPOINT active_record_1
9108
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:27:31')
9109
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9110
+  (0.6ms) ROLLBACK
9111
+  (0.1ms) BEGIN
9112
+  (0.2ms) SAVEPOINT active_record_1
9113
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9114
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9115
+  (0.1ms) SAVEPOINT active_record_1
9116
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:27:31')
9117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9118
+  (0.4ms) ROLLBACK
9119
+  (0.1ms) BEGIN
9120
+  (0.2ms) SAVEPOINT active_record_1
9121
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9123
+  (0.1ms) SAVEPOINT active_record_1
9124
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:27:31')
9125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9126
+  (0.8ms) ROLLBACK
9127
+  (0.1ms) BEGIN
9128
+  (0.3ms) SAVEPOINT active_record_1
9129
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9131
+  (0.1ms) SAVEPOINT active_record_1
9132
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:27:31')
9133
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9134
+  (0.6ms) ROLLBACK
9135
+  (0.1ms) BEGIN
9136
+  (0.1ms) SAVEPOINT active_record_1
9137
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9139
+  (0.1ms) SAVEPOINT active_record_1
9140
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:27:31')
9141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9142
+  (0.7ms) ROLLBACK
9143
+  (0.1ms) BEGIN
9144
+  (0.3ms) SAVEPOINT active_record_1
9145
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9146
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9147
+  (0.2ms) SAVEPOINT active_record_1
9148
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:27:31')
9149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9150
+  (0.6ms) ROLLBACK
9151
+  (0.1ms) BEGIN
9152
+  (0.2ms) SAVEPOINT active_record_1
9153
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9154
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9155
+  (0.2ms) SAVEPOINT active_record_1
9156
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:27:31')
9157
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9158
+  (0.6ms) ROLLBACK
9159
+  (0.1ms) BEGIN
9160
+  (0.2ms) SAVEPOINT active_record_1
9161
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9162
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9163
+  (0.1ms) SAVEPOINT active_record_1
9164
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:27:31')
9165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9166
+  (0.6ms) ROLLBACK
9167
+  (0.1ms) BEGIN
9168
+  (0.3ms) SAVEPOINT active_record_1
9169
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9171
+  (0.9ms) ROLLBACK
9172
+  (0.1ms) BEGIN
9173
+  (0.1ms) SAVEPOINT active_record_1
9174
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9175
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9176
+  (0.2ms) SAVEPOINT active_record_1
9177
+ 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-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:27:31')
9178
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9179
+  (0.8ms) ROLLBACK
9180
+  (0.1ms) BEGIN
9181
+  (0.2ms) SAVEPOINT active_record_1
9182
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9184
+  (0.3ms) SAVEPOINT active_record_1
9185
+ 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-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:27:31')
9186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9187
+  (0.5ms) ROLLBACK
9188
+  (0.2ms) BEGIN
9189
+  (0.3ms) SAVEPOINT active_record_1
9190
+ 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-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')
9191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9192
+  (0.1ms) SAVEPOINT active_record_1
9193
+ 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-24 22:27:31', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:27:31')
9194
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9195
+  (0.7ms) ROLLBACK
9196
+  (0.1ms) BEGIN
9197
+  (0.1ms) SAVEPOINT active_record_1
9198
+ 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-24 22:27:31', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:31')
9199
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9200
+  (0.3ms) SAVEPOINT active_record_1
9201
+ 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-24 22:27:31', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')
9202
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9203
+  (0.2ms) SAVEPOINT active_record_1
9204
+ 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-24 22:27:31', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:31')
9205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9206
+ RedirectRule Load (1.1ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9207
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
9208
+ (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)))))
9209
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69
9210
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9211
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
9212
+ (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)))))
9213
+
9214
+
9215
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:27:31 -0600
9216
+ Processing by NewsController#show as HTML
9217
+ Parameters: {"id"=>"5"}
9218
+ Rendered text template (0.0ms)
9219
+ Completed 200 OK in 72ms (Views: 71.4ms | ActiveRecord: 0.0ms)
9220
+  (4.8ms) ROLLBACK
9221
+  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS
9222
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
9223
+  (0.2ms) SELECT DATABASE() as db
9224
+  (1.2ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
9225
+  (137.8ms) TRUNCATE TABLE `redirect_rules`;
9226
+  (35.7ms) TRUNCATE TABLE `request_environment_rules`;
9227
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
9228
+  (0.1ms) BEGIN
9229
+  (0.1ms) SAVEPOINT active_record_1
9230
+ 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-24 22:27:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:32')
9231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9232
+  (0.1ms) SAVEPOINT active_record_1
9233
+ 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-24 22:27:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:32')
9234
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9235
+  (0.1ms) SAVEPOINT active_record_1
9236
+ 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-24 22:27:32', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:32')
9237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9238
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9239
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
9240
+ (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)))))
9241
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
9242
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9243
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
9244
+ (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)))))
9245
+
9246
+
9247
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:27:32 -0600
9248
+ Processing by NewsController#show as HTML
9249
+ Parameters: {"id"=>"20"}
9250
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
9251
+  (0.7ms) ROLLBACK
9252
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
9253
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
9254
+  (1.4ms) TRUNCATE TABLE `redirect_rules`;
9255
+  (18.4ms) TRUNCATE TABLE `request_environment_rules`;
9256
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
9257
+  (0.1ms) BEGIN
9258
+  (0.1ms) SAVEPOINT active_record_1
9259
+ 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-24 22:27:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:32')
9260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9261
+  (0.1ms) SAVEPOINT active_record_1
9262
+ 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-24 22:27:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:32')
9263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9264
+  (0.2ms) SAVEPOINT active_record_1
9265
+ 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-24 22:27:32', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:32')
9266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9267
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9268
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
9269
+ (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)))))
9270
+
9271
+
9272
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:27:32 -0600
9273
+  (0.7ms) ROLLBACK
9274
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
9275
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
9276
+  (1.7ms) TRUNCATE TABLE `redirect_rules`;
9277
+  (1.3ms) TRUNCATE TABLE `request_environment_rules`;
9278
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
9279
+  (0.1ms) BEGIN
9280
+  (0.1ms) SAVEPOINT active_record_1
9281
+ 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-24 22:27:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:32')
9282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9283
+  (0.2ms) SAVEPOINT active_record_1
9284
+ 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-24 22:27:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:32')
9285
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9286
+  (0.2ms) SAVEPOINT active_record_1
9287
+ 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-24 22:27:32', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:32')
9288
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9289
+ RedirectRule Load (1.2ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9290
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
9291
+ (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)))))
9292
+ RequestEnvironmentRule Load (1.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
9293
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9294
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
9295
+ (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)))))
9296
+
9297
+
9298
+ Started GET "/news" for 127.0.0.1 at 2012-08-24 16:27:32 -0600
9299
+ Processing by NewsController#index as HTML
9300
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
9301
+  (0.6ms) ROLLBACK
9302
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
9303
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
9304
+  (1.7ms) TRUNCATE TABLE `redirect_rules`;
9305
+  (1.6ms) TRUNCATE TABLE `request_environment_rules`;
9306
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
9307
+ Connecting to database specified by database.yml
9308
+  (0.1ms) BEGIN
9309
+  (0.1ms) SAVEPOINT active_record_1
9310
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9311
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9312
+  (0.5ms) ROLLBACK
9313
+  (0.1ms) BEGIN
9314
+  (0.2ms) SAVEPOINT active_record_1
9315
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9317
+  (0.4ms) ROLLBACK
9318
+  (0.1ms) BEGIN
9319
+  (0.1ms) SAVEPOINT active_record_1
9320
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9322
+  (14.9ms) ROLLBACK
9323
+  (0.1ms) BEGIN
9324
+  (0.2ms) SAVEPOINT active_record_1
9325
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9326
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9327
+  (7.3ms) ROLLBACK
9328
+  (0.1ms) BEGIN
9329
+  (0.3ms) SAVEPOINT active_record_1
9330
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9331
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9332
+  (0.5ms) ROLLBACK
9333
+  (0.0ms) BEGIN
9334
+  (0.2ms) SAVEPOINT active_record_1
9335
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9337
+  (0.5ms) ROLLBACK
9338
+  (0.1ms) BEGIN
9339
+  (0.1ms) SAVEPOINT active_record_1
9340
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9341
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9342
+  (0.8ms) ROLLBACK
9343
+  (0.1ms) BEGIN
9344
+  (0.2ms) SAVEPOINT active_record_1
9345
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9346
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9347
+  (0.7ms) ROLLBACK
9348
+  (0.1ms) BEGIN
9349
+  (0.1ms) SAVEPOINT active_record_1
9350
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9351
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9352
+  (0.9ms) ROLLBACK
9353
+  (0.1ms) BEGIN
9354
+  (0.1ms) SAVEPOINT active_record_1
9355
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9357
+  (0.4ms) ROLLBACK
9358
+  (0.1ms) BEGIN
9359
+  (0.1ms) SAVEPOINT active_record_1
9360
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9362
+  (0.5ms) ROLLBACK
9363
+  (0.1ms) BEGIN
9364
+  (0.2ms) SAVEPOINT active_record_1
9365
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9367
+  (0.6ms) ROLLBACK
9368
+  (0.1ms) BEGIN
9369
+  (0.2ms) SAVEPOINT active_record_1
9370
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9372
+  (0.5ms) ROLLBACK
9373
+  (0.1ms) BEGIN
9374
+  (0.1ms) SAVEPOINT active_record_1
9375
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9377
+  (0.5ms) ROLLBACK
9378
+  (0.1ms) BEGIN
9379
+  (0.1ms) SAVEPOINT active_record_1
9380
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9381
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9382
+  (0.7ms) ROLLBACK
9383
+  (0.1ms) BEGIN
9384
+  (0.2ms) SAVEPOINT active_record_1
9385
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9386
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9387
+  (1.4ms) ROLLBACK
9388
+  (0.1ms) BEGIN
9389
+  (0.1ms) SAVEPOINT active_record_1
9390
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9392
+  (0.8ms) ROLLBACK
9393
+  (0.1ms) BEGIN
9394
+  (0.1ms) SAVEPOINT active_record_1
9395
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9396
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9397
+  (0.7ms) ROLLBACK
9398
+  (0.0ms) BEGIN
9399
+  (0.2ms) SAVEPOINT active_record_1
9400
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9402
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9403
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
9404
+ (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)))))
9405
+  (0.5ms) ROLLBACK
9406
+  (0.1ms) BEGIN
9407
+  (0.1ms) SAVEPOINT active_record_1
9408
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9410
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9411
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9412
+ (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)))))
9413
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
9414
+  (10.9ms) ROLLBACK
9415
+  (0.1ms) BEGIN
9416
+  (0.2ms) SAVEPOINT active_record_1
9417
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9419
+  (0.2ms) SAVEPOINT active_record_1
9420
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:34:45')
9421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9422
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9423
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
9424
+ (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)))))
9425
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
9426
+  (0.6ms) ROLLBACK
9427
+  (0.1ms) BEGIN
9428
+  (0.1ms) SAVEPOINT active_record_1
9429
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9431
+  (0.1ms) SAVEPOINT active_record_1
9432
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:34:45')
9433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9434
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9435
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
9436
+ (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)))))
9437
+  (0.4ms) ROLLBACK
9438
+  (0.1ms) BEGIN
9439
+  (0.1ms) SAVEPOINT active_record_1
9440
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9442
+  (0.1ms) SAVEPOINT active_record_1
9443
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9445
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9446
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
9447
+ (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)))))
9448
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
9449
+  (1.2ms) ROLLBACK
9450
+  (0.1ms) BEGIN
9451
+  (0.2ms) SAVEPOINT active_record_1
9452
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9454
+  (0.1ms) SAVEPOINT active_record_1
9455
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9457
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9458
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
9459
+ (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)))))
9460
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
9461
+  (0.5ms) ROLLBACK
9462
+  (0.1ms) BEGIN
9463
+  (0.2ms) SAVEPOINT active_record_1
9464
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9466
+  (0.2ms) SAVEPOINT active_record_1
9467
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:34:45')
9468
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9469
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9470
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9471
+ (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)))))
9472
+ RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
9473
+  (0.4ms) ROLLBACK
9474
+  (0.1ms) BEGIN
9475
+  (0.1ms) SAVEPOINT active_record_1
9476
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9478
+  (0.1ms) SAVEPOINT active_record_1
9479
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:34:45')
9480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9481
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9482
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9483
+ (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)))))
9484
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
9485
+  (0.5ms) ROLLBACK
9486
+  (0.1ms) BEGIN
9487
+  (0.1ms) SAVEPOINT active_record_1
9488
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9490
+  (0.1ms) SAVEPOINT active_record_1
9491
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:34:45')
9492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9493
+  (0.1ms) SAVEPOINT active_record_1
9494
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:34:45')
9495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9496
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9497
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9498
+ (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)))))
9499
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
9500
+  (0.8ms) ROLLBACK
9501
+  (0.1ms) BEGIN
9502
+  (0.2ms) SAVEPOINT active_record_1
9503
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9504
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9505
+  (0.3ms) SAVEPOINT active_record_1
9506
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:34:45')
9507
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9508
+  (0.1ms) SAVEPOINT active_record_1
9509
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:34:45')
9510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9511
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9512
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9513
+ (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)))))
9514
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
9515
+  (0.7ms) ROLLBACK
9516
+  (0.1ms) BEGIN
9517
+  (0.2ms) SAVEPOINT active_record_1
9518
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9520
+  (0.1ms) SAVEPOINT active_record_1
9521
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9522
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9523
+  (0.2ms) SAVEPOINT active_record_1
9524
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:34:45')
9525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9526
+  (0.1ms) SAVEPOINT active_record_1
9527
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:34:45')
9528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9529
+  (0.1ms) SAVEPOINT active_record_1
9530
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:34:45')
9531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9532
+  (0.3ms) SAVEPOINT active_record_1
9533
+ 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-24 22:34:45', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:34:45')
9534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9535
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9536
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9537
+ (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)))))
9538
+ RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
9539
+  (0.9ms) ROLLBACK
9540
+  (0.1ms) BEGIN
9541
+  (0.1ms) SAVEPOINT active_record_1
9542
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9543
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9544
+  (0.2ms) SAVEPOINT active_record_1
9545
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9547
+  (0.1ms) SAVEPOINT active_record_1
9548
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:34:45')
9549
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9550
+  (0.1ms) SAVEPOINT active_record_1
9551
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:34:45')
9552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9553
+  (0.2ms) SAVEPOINT active_record_1
9554
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:34:45')
9555
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9556
+  (0.3ms) SAVEPOINT active_record_1
9557
+ 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-24 22:34:45', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:34:45')
9558
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9559
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9560
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9561
+ (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)))))
9562
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
9563
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
9564
+  (0.6ms) ROLLBACK
9565
+  (0.1ms) BEGIN
9566
+  (0.1ms) SAVEPOINT active_record_1
9567
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9568
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9569
+  (0.2ms) SAVEPOINT active_record_1
9570
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9572
+  (0.1ms) SAVEPOINT active_record_1
9573
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:34:45')
9574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9575
+  (0.2ms) SAVEPOINT active_record_1
9576
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:34:45')
9577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9578
+  (0.1ms) SAVEPOINT active_record_1
9579
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:34:45')
9580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9581
+  (0.2ms) SAVEPOINT active_record_1
9582
+ 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-24 22:34:45', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:34:45')
9583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9584
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9585
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9586
+ (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)))))
9587
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
9588
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
9589
+  (0.8ms) ROLLBACK
9590
+  (0.1ms) BEGIN
9591
+  (0.1ms) SAVEPOINT active_record_1
9592
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9594
+  (0.2ms) SAVEPOINT active_record_1
9595
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9597
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9598
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
9599
+ (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)))))
9600
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
9601
+  (0.5ms) ROLLBACK
9602
+  (0.1ms) BEGIN
9603
+  (0.2ms) SAVEPOINT active_record_1
9604
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9605
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9606
+  (0.3ms) SAVEPOINT active_record_1
9607
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9608
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9609
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9610
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
9611
+ (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)))))
9612
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41
9613
+  (1.1ms) ROLLBACK
9614
+  (0.1ms) BEGIN
9615
+  (0.2ms) SAVEPOINT active_record_1
9616
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9618
+  (0.1ms) SAVEPOINT active_record_1
9619
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9621
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9622
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
9623
+ (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)))))
9624
+  (0.4ms) ROLLBACK
9625
+  (0.1ms) BEGIN
9626
+  (0.1ms) SAVEPOINT active_record_1
9627
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9629
+  (0.4ms) ROLLBACK
9630
+  (0.1ms) BEGIN
9631
+  (0.2ms) SAVEPOINT active_record_1
9632
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9634
+  (0.2ms) SAVEPOINT active_record_1
9635
+ 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-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9637
+  (0.4ms) ROLLBACK
9638
+  (0.1ms) BEGIN
9639
+  (0.1ms) SAVEPOINT active_record_1
9640
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9642
+  (0.1ms) SAVEPOINT active_record_1
9643
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:34:45')
9644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9645
+  (0.6ms) ROLLBACK
9646
+  (0.1ms) BEGIN
9647
+  (0.1ms) SAVEPOINT active_record_1
9648
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9649
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9650
+  (0.1ms) SAVEPOINT active_record_1
9651
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:34:45')
9652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9653
+  (0.5ms) ROLLBACK
9654
+  (0.1ms) BEGIN
9655
+  (0.3ms) SAVEPOINT active_record_1
9656
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9657
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9658
+  (0.1ms) SAVEPOINT active_record_1
9659
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:34:45')
9660
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9661
+  (0.6ms) ROLLBACK
9662
+  (0.1ms) BEGIN
9663
+  (0.2ms) SAVEPOINT active_record_1
9664
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9665
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9666
+  (0.2ms) SAVEPOINT active_record_1
9667
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:34:45')
9668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9669
+  (0.6ms) ROLLBACK
9670
+  (0.1ms) BEGIN
9671
+  (0.2ms) SAVEPOINT active_record_1
9672
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9673
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9674
+  (0.1ms) SAVEPOINT active_record_1
9675
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:34:45')
9676
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9677
+  (0.7ms) ROLLBACK
9678
+  (0.1ms) BEGIN
9679
+  (0.2ms) SAVEPOINT active_record_1
9680
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9681
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9682
+  (0.2ms) SAVEPOINT active_record_1
9683
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:34:45')
9684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9685
+  (0.5ms) ROLLBACK
9686
+  (0.1ms) BEGIN
9687
+  (0.1ms) SAVEPOINT active_record_1
9688
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9690
+  (0.2ms) SAVEPOINT active_record_1
9691
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:34:45')
9692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9693
+  (0.6ms) ROLLBACK
9694
+  (0.1ms) BEGIN
9695
+  (0.1ms) SAVEPOINT active_record_1
9696
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9697
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9698
+  (0.1ms) SAVEPOINT active_record_1
9699
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:34:45')
9700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9701
+  (0.7ms) ROLLBACK
9702
+  (0.1ms) BEGIN
9703
+  (0.1ms) SAVEPOINT active_record_1
9704
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9706
+  (0.1ms) SAVEPOINT active_record_1
9707
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:34:45')
9708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9709
+  (0.9ms) ROLLBACK
9710
+  (0.1ms) BEGIN
9711
+  (0.2ms) SAVEPOINT active_record_1
9712
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9713
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9714
+  (0.3ms) SAVEPOINT active_record_1
9715
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:34:45')
9716
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9717
+  (0.5ms) ROLLBACK
9718
+  (0.1ms) BEGIN
9719
+  (0.1ms) SAVEPOINT active_record_1
9720
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9722
+  (0.0ms) SAVEPOINT active_record_1
9723
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:34:45')
9724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9725
+  (0.6ms) ROLLBACK
9726
+  (0.1ms) BEGIN
9727
+  (0.2ms) SAVEPOINT active_record_1
9728
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9730
+  (0.2ms) SAVEPOINT active_record_1
9731
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:34:45')
9732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9733
+  (0.5ms) ROLLBACK
9734
+  (0.1ms) BEGIN
9735
+  (0.1ms) SAVEPOINT active_record_1
9736
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9738
+  (0.1ms) SAVEPOINT active_record_1
9739
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:34:45')
9740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9741
+  (0.5ms) ROLLBACK
9742
+  (0.1ms) BEGIN
9743
+  (0.2ms) SAVEPOINT active_record_1
9744
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9746
+  (0.1ms) SAVEPOINT active_record_1
9747
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:34:45')
9748
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9749
+  (0.9ms) ROLLBACK
9750
+  (0.1ms) BEGIN
9751
+  (0.2ms) SAVEPOINT active_record_1
9752
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9753
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9754
+  (0.3ms) SAVEPOINT active_record_1
9755
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:34:45')
9756
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9757
+  (0.6ms) ROLLBACK
9758
+  (0.1ms) BEGIN
9759
+  (0.2ms) SAVEPOINT active_record_1
9760
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9761
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9762
+  (0.2ms) SAVEPOINT active_record_1
9763
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:34:45')
9764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9765
+  (0.5ms) ROLLBACK
9766
+  (0.1ms) BEGIN
9767
+  (0.1ms) SAVEPOINT active_record_1
9768
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9770
+  (0.2ms) SAVEPOINT active_record_1
9771
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:34:45')
9772
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9773
+  (0.4ms) ROLLBACK
9774
+  (0.1ms) BEGIN
9775
+  (0.2ms) SAVEPOINT active_record_1
9776
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9778
+  (0.8ms) ROLLBACK
9779
+  (0.1ms) BEGIN
9780
+  (0.2ms) SAVEPOINT active_record_1
9781
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9782
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9783
+  (0.2ms) SAVEPOINT active_record_1
9784
+ 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-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:34:45')
9785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9786
+  (1.2ms) ROLLBACK
9787
+  (0.1ms) BEGIN
9788
+  (0.1ms) SAVEPOINT active_record_1
9789
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9791
+  (0.3ms) SAVEPOINT active_record_1
9792
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:34:45')
9793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9794
+  (0.4ms) ROLLBACK
9795
+  (0.1ms) BEGIN
9796
+  (0.3ms) SAVEPOINT active_record_1
9797
+ 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-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')
9798
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9799
+  (0.1ms) SAVEPOINT active_record_1
9800
+ 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-24 22:34:45', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:34:45')
9801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9802
+  (0.4ms) ROLLBACK
9803
+  (0.1ms) BEGIN
9804
+  (0.1ms) SAVEPOINT active_record_1
9805
+ 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-24 22:34:45', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:45')
9806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9807
+  (0.3ms) SAVEPOINT active_record_1
9808
+ 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-24 22:34:45', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9809
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9810
+  (0.2ms) SAVEPOINT active_record_1
9811
+ 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-24 22:34:45', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:45')
9812
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9813
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9814
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
9815
+ (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)))))
9816
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69
9817
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9818
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
9819
+ (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)))))
9820
+
9821
+
9822
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:34:45 -0600
9823
+ Processing by NewsController#show as HTML
9824
+ Parameters: {"id"=>"5"}
9825
+ Rendered text template (0.0ms)
9826
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
9827
+  (1.1ms) ROLLBACK
9828
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
9829
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
9830
+  (0.1ms) SELECT DATABASE() as db
9831
+  (1.3ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
9832
+  (50.4ms) TRUNCATE TABLE `redirect_rules`;
9833
+  (3.1ms) TRUNCATE TABLE `request_environment_rules`;
9834
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
9835
+  (0.2ms) BEGIN
9836
+  (0.2ms) SAVEPOINT active_record_1
9837
+ 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-24 22:34:45', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:45')
9838
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9839
+  (0.1ms) SAVEPOINT active_record_1
9840
+ 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-24 22:34:45', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9841
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9842
+  (0.1ms) SAVEPOINT active_record_1
9843
+ 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-24 22:34:45', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:45')
9844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9845
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9846
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
9847
+ (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)))))
9848
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
9849
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9850
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
9851
+ (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)))))
9852
+
9853
+
9854
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:34:45 -0600
9855
+ Processing by NewsController#show as HTML
9856
+ Parameters: {"id"=>"20"}
9857
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
9858
+  (0.8ms) ROLLBACK
9859
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
9860
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
9861
+  (2.4ms) TRUNCATE TABLE `redirect_rules`;
9862
+  (1.7ms) TRUNCATE TABLE `request_environment_rules`;
9863
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
9864
+  (0.2ms) BEGIN
9865
+  (0.1ms) SAVEPOINT active_record_1
9866
+ 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-24 22:34:45', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:45')
9867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9868
+  (0.1ms) SAVEPOINT active_record_1
9869
+ 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-24 22:34:45', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')
9870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9871
+  (0.3ms) SAVEPOINT active_record_1
9872
+ 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-24 22:34:45', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:45')
9873
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9874
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9875
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
9876
+ (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)))))
9877
+
9878
+
9879
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:34:45 -0600
9880
+
9881
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
9882
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
9883
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9884
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
9885
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
9886
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9887
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
9888
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
9889
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9890
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
9891
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
9892
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
9893
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
9894
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
9895
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
9896
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
9897
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
9898
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
9899
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
9900
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
9901
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
9902
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
9903
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
9904
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
9905
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
9906
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
9907
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
9908
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
9909
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:22:in `block (2 levels) in <top (required)>'
9910
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
9911
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
9912
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
9913
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
9914
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
9915
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
9916
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
9917
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
9918
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
9919
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
9920
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
9921
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
9922
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
9923
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
9924
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
9925
+
9926
+
9927
+  (0.7ms) ROLLBACK
9928
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
9929
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
9930
+  (1.6ms) TRUNCATE TABLE `redirect_rules`;
9931
+  (1.5ms) TRUNCATE TABLE `request_environment_rules`;
9932
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
9933
+  (0.1ms) BEGIN
9934
+  (0.2ms) SAVEPOINT active_record_1
9935
+ 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-24 22:34:46', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:46')
9936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9937
+  (0.2ms) SAVEPOINT active_record_1
9938
+ 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-24 22:34:46', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:46')
9939
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9940
+  (0.3ms) SAVEPOINT active_record_1
9941
+ 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-24 22:34:46', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:46')
9942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9943
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9944
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
9945
+ (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)))))
9946
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
9947
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
9948
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
9949
+ (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)))))
9950
+
9951
+
9952
+ Started GET "/news" for 127.0.0.1 at 2012-08-24 16:34:46 -0600
9953
+ Processing by NewsController#index as HTML
9954
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
9955
+  (1.0ms) ROLLBACK
9956
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
9957
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
9958
+  (1.3ms) TRUNCATE TABLE `redirect_rules`;
9959
+  (19.9ms) TRUNCATE TABLE `request_environment_rules`;
9960
+  (0.5ms) SET FOREIGN_KEY_CHECKS = 1
9961
+ Connecting to database specified by database.yml
9962
+  (0.2ms) BEGIN
9963
+  (0.3ms) SAVEPOINT active_record_1
9964
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9965
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9966
+  (0.8ms) ROLLBACK
9967
+  (0.1ms) BEGIN
9968
+  (0.3ms) SAVEPOINT active_record_1
9969
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9970
+  (0.4ms) RELEASE SAVEPOINT active_record_1
9971
+  (0.6ms) ROLLBACK
9972
+  (0.1ms) BEGIN
9973
+  (0.2ms) SAVEPOINT active_record_1
9974
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9976
+  (0.5ms) ROLLBACK
9977
+  (0.1ms) BEGIN
9978
+  (0.1ms) SAVEPOINT active_record_1
9979
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9980
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9981
+  (0.4ms) ROLLBACK
9982
+  (0.1ms) BEGIN
9983
+  (0.2ms) SAVEPOINT active_record_1
9984
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9985
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9986
+  (0.6ms) ROLLBACK
9987
+  (0.1ms) BEGIN
9988
+  (0.2ms) SAVEPOINT active_record_1
9989
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9990
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9991
+  (0.6ms) ROLLBACK
9992
+  (0.1ms) BEGIN
9993
+  (0.2ms) SAVEPOINT active_record_1
9994
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
9995
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9996
+  (0.6ms) ROLLBACK
9997
+  (0.1ms) BEGIN
9998
+  (0.1ms) SAVEPOINT active_record_1
9999
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10001
+  (0.6ms) ROLLBACK
10002
+  (0.1ms) BEGIN
10003
+  (0.1ms) SAVEPOINT active_record_1
10004
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10006
+  (0.6ms) ROLLBACK
10007
+  (0.0ms) BEGIN
10008
+  (0.2ms) SAVEPOINT active_record_1
10009
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10010
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10011
+  (0.6ms) ROLLBACK
10012
+  (0.1ms) BEGIN
10013
+  (0.2ms) SAVEPOINT active_record_1
10014
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10016
+  (0.9ms) ROLLBACK
10017
+  (0.1ms) BEGIN
10018
+  (0.2ms) SAVEPOINT active_record_1
10019
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10021
+  (0.6ms) ROLLBACK
10022
+  (0.1ms) BEGIN
10023
+  (0.2ms) SAVEPOINT active_record_1
10024
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10026
+  (0.5ms) ROLLBACK
10027
+  (0.2ms) BEGIN
10028
+  (0.2ms) SAVEPOINT active_record_1
10029
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10031
+  (0.5ms) ROLLBACK
10032
+  (0.2ms) BEGIN
10033
+  (0.2ms) SAVEPOINT active_record_1
10034
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10036
+  (0.7ms) ROLLBACK
10037
+  (0.1ms) BEGIN
10038
+  (0.1ms) SAVEPOINT active_record_1
10039
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10040
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10041
+  (0.5ms) ROLLBACK
10042
+  (0.1ms) BEGIN
10043
+  (0.1ms) SAVEPOINT active_record_1
10044
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10045
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10046
+  (0.6ms) ROLLBACK
10047
+  (0.1ms) BEGIN
10048
+  (0.1ms) SAVEPOINT active_record_1
10049
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10050
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10051
+  (0.5ms) ROLLBACK
10052
+  (0.1ms) BEGIN
10053
+  (0.1ms) SAVEPOINT active_record_1
10054
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10056
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10057
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
10058
+ (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)))))
10059
+  (0.6ms) ROLLBACK
10060
+  (0.1ms) BEGIN
10061
+  (0.1ms) SAVEPOINT active_record_1
10062
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10064
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10065
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10066
+ (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)))))
10067
+ RequestEnvironmentRule Load (1.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
10068
+  (0.7ms) ROLLBACK
10069
+  (0.1ms) BEGIN
10070
+  (0.1ms) SAVEPOINT active_record_1
10071
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10073
+  (0.3ms) SAVEPOINT active_record_1
10074
+ 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-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:35:00')
10075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10076
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10077
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
10078
+ (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)))))
10079
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
10080
+  (1.0ms) ROLLBACK
10081
+  (0.1ms) BEGIN
10082
+  (0.1ms) SAVEPOINT active_record_1
10083
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10085
+  (0.2ms) SAVEPOINT active_record_1
10086
+ 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-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:35:00')
10087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10088
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10089
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
10090
+ (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)))))
10091
+  (0.7ms) ROLLBACK
10092
+  (0.1ms) BEGIN
10093
+  (0.4ms) SAVEPOINT active_record_1
10094
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10095
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10096
+  (0.2ms) SAVEPOINT active_record_1
10097
+ 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-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:00')
10098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10099
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10100
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
10101
+ (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)))))
10102
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
10103
+  (0.9ms) ROLLBACK
10104
+  (0.1ms) BEGIN
10105
+  (0.2ms) SAVEPOINT active_record_1
10106
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10108
+  (0.3ms) SAVEPOINT active_record_1
10109
+ 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-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:00')
10110
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10111
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10112
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
10113
+ (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)))))
10114
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
10115
+  (0.5ms) ROLLBACK
10116
+  (0.1ms) BEGIN
10117
+  (0.1ms) SAVEPOINT active_record_1
10118
+ 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-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')
10119
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10120
+  (0.2ms) SAVEPOINT active_record_1
10121
+ 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-24 22:35:00', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:35:00')
10122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10123
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10124
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10125
+ (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)))))
10126
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
10127
+  (0.8ms) ROLLBACK
10128
+  (0.1ms) BEGIN
10129
+  (0.1ms) SAVEPOINT active_record_1
10130
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10132
+  (0.1ms) SAVEPOINT active_record_1
10133
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:35:01')
10134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10135
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10136
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10137
+ (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)))))
10138
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
10139
+  (0.6ms) ROLLBACK
10140
+  (0.2ms) BEGIN
10141
+  (0.3ms) SAVEPOINT active_record_1
10142
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10143
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10144
+  (0.2ms) SAVEPOINT active_record_1
10145
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:35:01')
10146
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10147
+  (0.3ms) SAVEPOINT active_record_1
10148
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:35:01')
10149
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10150
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10151
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10152
+ (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)))))
10153
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
10154
+  (0.7ms) ROLLBACK
10155
+  (0.1ms) BEGIN
10156
+  (0.2ms) SAVEPOINT active_record_1
10157
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10159
+  (0.1ms) SAVEPOINT active_record_1
10160
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:35:01')
10161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10162
+  (0.1ms) SAVEPOINT active_record_1
10163
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:35:01')
10164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10165
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10166
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10167
+ (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)))))
10168
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
10169
+  (1.2ms) ROLLBACK
10170
+  (0.2ms) BEGIN
10171
+  (0.2ms) SAVEPOINT active_record_1
10172
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10173
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10174
+  (0.2ms) SAVEPOINT active_record_1
10175
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10177
+  (0.2ms) SAVEPOINT active_record_1
10178
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:35:01')
10179
+  (1.0ms) RELEASE SAVEPOINT active_record_1
10180
+  (0.3ms) SAVEPOINT active_record_1
10181
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:35:01')
10182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10183
+  (0.2ms) SAVEPOINT active_record_1
10184
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:35:01')
10185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10186
+  (0.1ms) SAVEPOINT active_record_1
10187
+ 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-24 22:35:01', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:35:01')
10188
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10189
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10190
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10191
+ (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)))))
10192
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
10193
+  (0.6ms) ROLLBACK
10194
+  (0.1ms) BEGIN
10195
+  (0.1ms) SAVEPOINT active_record_1
10196
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10197
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10198
+  (0.3ms) SAVEPOINT active_record_1
10199
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10201
+  (0.2ms) SAVEPOINT active_record_1
10202
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:35:01')
10203
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10204
+  (0.2ms) SAVEPOINT active_record_1
10205
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:35:01')
10206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10207
+  (0.2ms) SAVEPOINT active_record_1
10208
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:35:01')
10209
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10210
+  (0.2ms) SAVEPOINT active_record_1
10211
+ 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-24 22:35:01', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:35:01')
10212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10213
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10214
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10215
+ (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)))))
10216
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
10217
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
10218
+  (0.6ms) ROLLBACK
10219
+  (0.1ms) BEGIN
10220
+  (0.2ms) SAVEPOINT active_record_1
10221
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10222
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10223
+  (0.3ms) SAVEPOINT active_record_1
10224
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10225
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10226
+  (0.3ms) SAVEPOINT active_record_1
10227
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:35:01')
10228
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10229
+  (0.3ms) SAVEPOINT active_record_1
10230
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:35:01')
10231
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10232
+  (0.1ms) SAVEPOINT active_record_1
10233
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:35:01')
10234
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10235
+  (0.1ms) SAVEPOINT active_record_1
10236
+ 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-24 22:35:01', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:35:01')
10237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10238
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10239
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10240
+ (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)))))
10241
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
10242
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
10243
+  (0.8ms) ROLLBACK
10244
+  (0.1ms) BEGIN
10245
+  (0.1ms) SAVEPOINT active_record_1
10246
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10248
+  (0.2ms) SAVEPOINT active_record_1
10249
+ 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-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10250
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10251
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10252
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
10253
+ (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)))))
10254
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
10255
+  (0.8ms) ROLLBACK
10256
+  (0.2ms) BEGIN
10257
+  (0.1ms) SAVEPOINT active_record_1
10258
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10260
+  (0.2ms) SAVEPOINT active_record_1
10261
+ 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-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10262
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10263
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10264
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10265
+ (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)))))
10266
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41
10267
+  (0.8ms) ROLLBACK
10268
+  (0.1ms) BEGIN
10269
+  (0.2ms) SAVEPOINT active_record_1
10270
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10271
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10272
+  (0.1ms) SAVEPOINT active_record_1
10273
+ 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-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10274
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10275
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10276
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
10277
+ (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)))))
10278
+  (0.5ms) ROLLBACK
10279
+  (0.1ms) BEGIN
10280
+  (0.1ms) SAVEPOINT active_record_1
10281
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10282
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10283
+  (0.5ms) ROLLBACK
10284
+  (0.1ms) BEGIN
10285
+  (0.1ms) SAVEPOINT active_record_1
10286
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10287
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10288
+  (0.3ms) SAVEPOINT active_record_1
10289
+ 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-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10290
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10291
+  (0.4ms) ROLLBACK
10292
+  (0.1ms) BEGIN
10293
+  (0.1ms) SAVEPOINT active_record_1
10294
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10296
+  (0.3ms) SAVEPOINT active_record_1
10297
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:35:01')
10298
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10299
+  (0.9ms) ROLLBACK
10300
+  (0.1ms) BEGIN
10301
+  (0.2ms) SAVEPOINT active_record_1
10302
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10304
+  (0.1ms) SAVEPOINT active_record_1
10305
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:35:01')
10306
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10307
+  (0.5ms) ROLLBACK
10308
+  (0.1ms) BEGIN
10309
+  (0.2ms) SAVEPOINT active_record_1
10310
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10311
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10312
+  (0.3ms) SAVEPOINT active_record_1
10313
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:35:01')
10314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10315
+  (0.5ms) ROLLBACK
10316
+  (0.1ms) BEGIN
10317
+  (0.1ms) SAVEPOINT active_record_1
10318
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10319
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10320
+  (0.1ms) SAVEPOINT active_record_1
10321
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:35:01')
10322
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10323
+  (0.9ms) ROLLBACK
10324
+  (0.1ms) BEGIN
10325
+  (0.1ms) SAVEPOINT active_record_1
10326
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10327
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10328
+  (0.2ms) SAVEPOINT active_record_1
10329
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:35:01')
10330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10331
+  (0.4ms) ROLLBACK
10332
+  (0.1ms) BEGIN
10333
+  (0.2ms) SAVEPOINT active_record_1
10334
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10336
+  (0.1ms) SAVEPOINT active_record_1
10337
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:35:01')
10338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10339
+  (0.4ms) ROLLBACK
10340
+  (0.1ms) BEGIN
10341
+  (0.1ms) SAVEPOINT active_record_1
10342
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10343
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10344
+  (0.1ms) SAVEPOINT active_record_1
10345
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:35:01')
10346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10347
+  (0.6ms) ROLLBACK
10348
+  (0.2ms) BEGIN
10349
+  (0.1ms) SAVEPOINT active_record_1
10350
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10352
+  (0.1ms) SAVEPOINT active_record_1
10353
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:35:01')
10354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10355
+  (0.8ms) ROLLBACK
10356
+  (0.1ms) BEGIN
10357
+  (0.2ms) SAVEPOINT active_record_1
10358
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10360
+  (0.2ms) SAVEPOINT active_record_1
10361
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:35:01')
10362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10363
+  (1.2ms) ROLLBACK
10364
+  (0.1ms) BEGIN
10365
+  (0.1ms) SAVEPOINT active_record_1
10366
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10368
+  (0.1ms) SAVEPOINT active_record_1
10369
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:35:01')
10370
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10371
+  (0.9ms) ROLLBACK
10372
+  (0.1ms) BEGIN
10373
+  (0.1ms) SAVEPOINT active_record_1
10374
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10375
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10376
+  (0.2ms) SAVEPOINT active_record_1
10377
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:35:01')
10378
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10379
+  (0.6ms) ROLLBACK
10380
+  (0.1ms) BEGIN
10381
+  (0.1ms) SAVEPOINT active_record_1
10382
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10384
+  (0.1ms) SAVEPOINT active_record_1
10385
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:35:01')
10386
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10387
+  (0.6ms) ROLLBACK
10388
+  (0.1ms) BEGIN
10389
+  (0.2ms) SAVEPOINT active_record_1
10390
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10391
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10392
+  (0.2ms) SAVEPOINT active_record_1
10393
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:35:01')
10394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10395
+  (0.5ms) ROLLBACK
10396
+  (0.1ms) BEGIN
10397
+  (0.2ms) SAVEPOINT active_record_1
10398
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10399
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10400
+  (0.3ms) SAVEPOINT active_record_1
10401
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:35:01')
10402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10403
+  (0.4ms) ROLLBACK
10404
+  (0.1ms) BEGIN
10405
+  (0.1ms) SAVEPOINT active_record_1
10406
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10407
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10408
+  (0.1ms) SAVEPOINT active_record_1
10409
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:35:01')
10410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10411
+  (0.4ms) ROLLBACK
10412
+  (0.1ms) BEGIN
10413
+  (0.1ms) SAVEPOINT active_record_1
10414
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10415
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10416
+  (0.1ms) SAVEPOINT active_record_1
10417
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:35:01')
10418
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10419
+  (1.0ms) ROLLBACK
10420
+  (0.1ms) BEGIN
10421
+  (0.1ms) SAVEPOINT active_record_1
10422
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10423
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10424
+  (0.1ms) SAVEPOINT active_record_1
10425
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:35:01')
10426
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10427
+  (0.6ms) ROLLBACK
10428
+  (0.1ms) BEGIN
10429
+  (0.1ms) SAVEPOINT active_record_1
10430
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10432
+  (0.6ms) ROLLBACK
10433
+  (0.1ms) BEGIN
10434
+  (0.1ms) SAVEPOINT active_record_1
10435
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10437
+  (0.1ms) SAVEPOINT active_record_1
10438
+ 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-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:35:01')
10439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10440
+  (0.5ms) ROLLBACK
10441
+  (0.0ms) BEGIN
10442
+  (0.1ms) SAVEPOINT active_record_1
10443
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10444
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10445
+  (0.1ms) SAVEPOINT active_record_1
10446
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:35:01')
10447
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10448
+  (0.6ms) ROLLBACK
10449
+  (0.1ms) BEGIN
10450
+  (0.1ms) SAVEPOINT active_record_1
10451
+ 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-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')
10452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10453
+  (0.1ms) SAVEPOINT active_record_1
10454
+ 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-24 22:35:01', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:35:01')
10455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10456
+  (0.5ms) ROLLBACK
10457
+  (0.2ms) BEGIN
10458
+  (0.1ms) SAVEPOINT active_record_1
10459
+ 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-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')
10460
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10461
+  (0.1ms) SAVEPOINT active_record_1
10462
+ 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-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10463
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10464
+  (0.1ms) SAVEPOINT active_record_1
10465
+ 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-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')
10466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10467
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10468
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
10469
+ (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)))))
10470
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69
10471
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10472
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
10473
+ (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)))))
10474
+
10475
+
10476
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:35:01 -0600
10477
+ Processing by NewsController#show as HTML
10478
+ Parameters: {"id"=>"5"}
10479
+ Rendered text template (0.0ms)
10480
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
10481
+  (0.8ms) ROLLBACK
10482
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
10483
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
10484
+  (0.1ms) SELECT DATABASE() as db
10485
+  (1.2ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
10486
+  (14.4ms) TRUNCATE TABLE `redirect_rules`;
10487
+  (1.5ms) TRUNCATE TABLE `request_environment_rules`;
10488
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
10489
+  (0.1ms) BEGIN
10490
+  (0.2ms) SAVEPOINT active_record_1
10491
+ 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-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')
10492
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10493
+  (0.3ms) SAVEPOINT active_record_1
10494
+ 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-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10495
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10496
+  (0.1ms) SAVEPOINT active_record_1
10497
+ 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-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')
10498
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10499
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10500
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
10501
+ (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)))))
10502
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
10503
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10504
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
10505
+ (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)))))
10506
+
10507
+
10508
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:35:01 -0600
10509
+ Processing by NewsController#show as HTML
10510
+ Parameters: {"id"=>"20"}
10511
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
10512
+  (1.2ms) ROLLBACK
10513
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
10514
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
10515
+  (1.5ms) TRUNCATE TABLE `redirect_rules`;
10516
+  (20.8ms) TRUNCATE TABLE `request_environment_rules`;
10517
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
10518
+  (0.2ms) BEGIN
10519
+  (0.1ms) SAVEPOINT active_record_1
10520
+ 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-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')
10521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10522
+  (0.2ms) SAVEPOINT active_record_1
10523
+ 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-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10524
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10525
+  (0.1ms) SAVEPOINT active_record_1
10526
+ 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-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')
10527
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10528
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10529
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
10530
+ (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)))))
10531
+
10532
+
10533
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:35:01 -0600
10534
+
10535
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
10536
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
10537
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
10538
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
10539
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
10540
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
10541
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
10542
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
10543
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
10544
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
10545
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
10546
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
10547
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
10548
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
10549
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
10550
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
10551
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
10552
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
10553
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
10554
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
10555
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
10556
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
10557
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
10558
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
10559
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
10560
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
10561
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
10562
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
10563
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:22:in `block (2 levels) in <top (required)>'
10564
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
10565
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
10566
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
10567
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
10568
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
10569
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
10570
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
10571
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
10572
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
10573
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
10574
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
10575
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
10576
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
10577
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
10578
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
10579
+
10580
+
10581
+  (0.8ms) ROLLBACK
10582
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
10583
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
10584
+  (1.7ms) TRUNCATE TABLE `redirect_rules`;
10585
+  (2.0ms) TRUNCATE TABLE `request_environment_rules`;
10586
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
10587
+  (0.1ms) BEGIN
10588
+  (0.2ms) SAVEPOINT active_record_1
10589
+ 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-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')
10590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10591
+  (0.1ms) SAVEPOINT active_record_1
10592
+ 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-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')
10593
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10594
+  (0.2ms) SAVEPOINT active_record_1
10595
+ 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-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')
10596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10597
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10598
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
10599
+ (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)))))
10600
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
10601
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10602
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
10603
+ (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)))))
10604
+
10605
+
10606
+ Started GET "/news" for 127.0.0.1 at 2012-08-24 16:35:01 -0600
10607
+ Processing by NewsController#index as HTML
10608
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
10609
+  (0.5ms) ROLLBACK
10610
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
10611
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
10612
+  (20.3ms) TRUNCATE TABLE `redirect_rules`;
10613
+  (1.1ms) TRUNCATE TABLE `request_environment_rules`;
10614
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
10615
+ Connecting to database specified by database.yml
10616
+  (0.2ms) BEGIN
10617
+  (0.2ms) SAVEPOINT active_record_1
10618
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10620
+  (0.8ms) ROLLBACK
10621
+  (0.1ms) BEGIN
10622
+  (0.1ms) SAVEPOINT active_record_1
10623
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10624
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10625
+  (0.8ms) ROLLBACK
10626
+  (0.1ms) BEGIN
10627
+  (0.1ms) SAVEPOINT active_record_1
10628
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10630
+  (0.5ms) ROLLBACK
10631
+  (0.1ms) BEGIN
10632
+  (0.1ms) SAVEPOINT active_record_1
10633
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10634
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10635
+  (0.6ms) ROLLBACK
10636
+  (0.1ms) BEGIN
10637
+  (0.2ms) SAVEPOINT active_record_1
10638
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10640
+  (0.5ms) ROLLBACK
10641
+  (0.1ms) BEGIN
10642
+  (0.1ms) SAVEPOINT active_record_1
10643
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10645
+  (0.5ms) ROLLBACK
10646
+  (0.1ms) BEGIN
10647
+  (0.1ms) SAVEPOINT active_record_1
10648
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10649
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10650
+  (10.3ms) ROLLBACK
10651
+  (0.1ms) BEGIN
10652
+  (0.1ms) SAVEPOINT active_record_1
10653
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10654
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10655
+  (4.2ms) ROLLBACK
10656
+  (0.3ms) BEGIN
10657
+  (0.2ms) SAVEPOINT active_record_1
10658
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10660
+  (0.5ms) ROLLBACK
10661
+  (0.1ms) BEGIN
10662
+  (0.2ms) SAVEPOINT active_record_1
10663
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10665
+  (0.5ms) ROLLBACK
10666
+  (0.1ms) BEGIN
10667
+  (0.1ms) SAVEPOINT active_record_1
10668
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10670
+  (0.6ms) ROLLBACK
10671
+  (0.1ms) BEGIN
10672
+  (0.1ms) SAVEPOINT active_record_1
10673
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10675
+  (0.4ms) ROLLBACK
10676
+  (0.1ms) BEGIN
10677
+  (0.1ms) SAVEPOINT active_record_1
10678
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10679
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10680
+  (0.5ms) ROLLBACK
10681
+  (0.1ms) BEGIN
10682
+  (0.1ms) SAVEPOINT active_record_1
10683
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10684
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10685
+  (0.6ms) ROLLBACK
10686
+  (0.1ms) BEGIN
10687
+  (0.1ms) SAVEPOINT active_record_1
10688
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10689
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10690
+  (0.8ms) ROLLBACK
10691
+  (0.1ms) BEGIN
10692
+  (0.1ms) SAVEPOINT active_record_1
10693
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10694
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10695
+  (0.4ms) ROLLBACK
10696
+  (0.1ms) BEGIN
10697
+  (0.2ms) SAVEPOINT active_record_1
10698
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10700
+  (0.4ms) ROLLBACK
10701
+  (0.2ms) BEGIN
10702
+  (0.1ms) SAVEPOINT active_record_1
10703
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10705
+  (1.9ms) ROLLBACK
10706
+  (0.1ms) BEGIN
10707
+  (0.1ms) SAVEPOINT active_record_1
10708
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10709
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10710
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10711
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
10712
+ (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)))))
10713
+  (0.5ms) ROLLBACK
10714
+  (0.1ms) BEGIN
10715
+  (0.1ms) SAVEPOINT active_record_1
10716
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10718
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10719
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10720
+ (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)))))
10721
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
10722
+  (0.6ms) ROLLBACK
10723
+  (0.1ms) BEGIN
10724
+  (0.1ms) SAVEPOINT active_record_1
10725
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10726
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10727
+  (0.3ms) SAVEPOINT active_record_1
10728
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:08')
10729
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10730
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10731
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
10732
+ (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)))))
10733
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
10734
+  (0.6ms) ROLLBACK
10735
+  (0.1ms) BEGIN
10736
+  (0.1ms) SAVEPOINT active_record_1
10737
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10739
+  (0.1ms) SAVEPOINT active_record_1
10740
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:08')
10741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10742
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10743
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
10744
+ (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)))))
10745
+  (0.6ms) ROLLBACK
10746
+  (0.0ms) BEGIN
10747
+  (0.1ms) SAVEPOINT active_record_1
10748
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10750
+  (0.1ms) SAVEPOINT active_record_1
10751
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
10752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10753
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10754
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
10755
+ (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)))))
10756
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
10757
+  (0.6ms) ROLLBACK
10758
+  (0.1ms) BEGIN
10759
+  (0.3ms) SAVEPOINT active_record_1
10760
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10762
+  (0.3ms) SAVEPOINT active_record_1
10763
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
10764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10765
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10766
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
10767
+ (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)))))
10768
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
10769
+  (0.9ms) ROLLBACK
10770
+  (0.1ms) BEGIN
10771
+  (0.1ms) SAVEPOINT active_record_1
10772
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10774
+  (0.3ms) SAVEPOINT active_record_1
10775
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:37:08')
10776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10777
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10778
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10779
+ (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)))))
10780
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
10781
+  (0.7ms) ROLLBACK
10782
+  (0.1ms) BEGIN
10783
+  (0.1ms) SAVEPOINT active_record_1
10784
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10785
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10786
+  (0.2ms) SAVEPOINT active_record_1
10787
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:37:08')
10788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10789
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10790
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10791
+ (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)))))
10792
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
10793
+  (0.8ms) ROLLBACK
10794
+  (0.1ms) BEGIN
10795
+  (0.1ms) SAVEPOINT active_record_1
10796
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10798
+  (0.1ms) SAVEPOINT active_record_1
10799
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:37:08')
10800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10801
+  (0.2ms) SAVEPOINT active_record_1
10802
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:37:08')
10803
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10804
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10805
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10806
+ (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)))))
10807
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
10808
+  (0.5ms) ROLLBACK
10809
+  (0.1ms) BEGIN
10810
+  (0.2ms) SAVEPOINT active_record_1
10811
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10813
+  (0.1ms) SAVEPOINT active_record_1
10814
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:37:08')
10815
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10816
+  (0.2ms) SAVEPOINT active_record_1
10817
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:37:08')
10818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10819
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10820
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10821
+ (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)))))
10822
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
10823
+  (0.6ms) ROLLBACK
10824
+  (0.1ms) BEGIN
10825
+  (0.2ms) SAVEPOINT active_record_1
10826
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10827
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10828
+  (0.3ms) SAVEPOINT active_record_1
10829
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10831
+  (0.2ms) SAVEPOINT active_record_1
10832
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:37:08')
10833
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10834
+  (0.3ms) SAVEPOINT active_record_1
10835
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:37:08')
10836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10837
+  (0.2ms) SAVEPOINT active_record_1
10838
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:37:08')
10839
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10840
+  (0.2ms) SAVEPOINT active_record_1
10841
+ 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-24 22:37:08', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:37:08')
10842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10843
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10844
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10845
+ (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)))))
10846
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
10847
+  (0.7ms) ROLLBACK
10848
+  (0.1ms) BEGIN
10849
+  (0.1ms) SAVEPOINT active_record_1
10850
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10851
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10852
+  (0.3ms) SAVEPOINT active_record_1
10853
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10855
+  (0.1ms) SAVEPOINT active_record_1
10856
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:37:08')
10857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10858
+  (0.1ms) SAVEPOINT active_record_1
10859
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:37:08')
10860
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10861
+  (0.2ms) SAVEPOINT active_record_1
10862
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:37:08')
10863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10864
+  (0.3ms) SAVEPOINT active_record_1
10865
+ 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-24 22:37:08', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:37:08')
10866
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10867
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10868
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10869
+ (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)))))
10870
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
10871
+ RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
10872
+  (1.0ms) ROLLBACK
10873
+  (0.1ms) BEGIN
10874
+  (0.2ms) SAVEPOINT active_record_1
10875
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10877
+  (0.2ms) SAVEPOINT active_record_1
10878
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10880
+  (0.2ms) SAVEPOINT active_record_1
10881
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:37:08')
10882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10883
+  (0.2ms) SAVEPOINT active_record_1
10884
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:37:08')
10885
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10886
+  (0.1ms) SAVEPOINT active_record_1
10887
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:37:08')
10888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10889
+  (0.2ms) SAVEPOINT active_record_1
10890
+ 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-24 22:37:08', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:37:08')
10891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10892
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10893
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10894
+ (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)))))
10895
+ RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
10896
+ RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
10897
+  (0.5ms) ROLLBACK
10898
+  (0.0ms) BEGIN
10899
+  (0.1ms) SAVEPOINT active_record_1
10900
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10902
+  (0.1ms) SAVEPOINT active_record_1
10903
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
10904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10905
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10906
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
10907
+ (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)))))
10908
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
10909
+  (0.6ms) ROLLBACK
10910
+  (0.1ms) BEGIN
10911
+  (0.1ms) SAVEPOINT active_record_1
10912
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10913
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10914
+  (0.1ms) SAVEPOINT active_record_1
10915
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
10916
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10917
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10918
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
10919
+ (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)))))
10920
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41
10921
+  (0.4ms) ROLLBACK
10922
+  (0.1ms) BEGIN
10923
+  (0.1ms) SAVEPOINT active_record_1
10924
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10926
+  (0.2ms) SAVEPOINT active_record_1
10927
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
10928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10929
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
10930
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
10931
+ (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)))))
10932
+  (0.6ms) ROLLBACK
10933
+  (0.1ms) BEGIN
10934
+  (0.1ms) SAVEPOINT active_record_1
10935
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10936
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10937
+  (1.0ms) ROLLBACK
10938
+  (0.1ms) BEGIN
10939
+  (0.3ms) SAVEPOINT active_record_1
10940
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10941
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10942
+  (0.3ms) SAVEPOINT active_record_1
10943
+ 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-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
10944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10945
+  (0.4ms) ROLLBACK
10946
+  (0.1ms) BEGIN
10947
+  (0.1ms) SAVEPOINT active_record_1
10948
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10950
+  (0.2ms) SAVEPOINT active_record_1
10951
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:37:08')
10952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10953
+  (0.7ms) ROLLBACK
10954
+  (0.0ms) BEGIN
10955
+  (0.2ms) SAVEPOINT active_record_1
10956
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10958
+  (0.1ms) SAVEPOINT active_record_1
10959
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:37:08')
10960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10961
+  (0.5ms) ROLLBACK
10962
+  (0.1ms) BEGIN
10963
+  (0.2ms) SAVEPOINT active_record_1
10964
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10965
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10966
+  (0.3ms) SAVEPOINT active_record_1
10967
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:37:08')
10968
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10969
+  (0.6ms) ROLLBACK
10970
+  (0.1ms) BEGIN
10971
+  (0.1ms) SAVEPOINT active_record_1
10972
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10974
+  (0.2ms) SAVEPOINT active_record_1
10975
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:37:08')
10976
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10977
+  (0.5ms) ROLLBACK
10978
+  (0.1ms) BEGIN
10979
+  (0.3ms) SAVEPOINT active_record_1
10980
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10982
+  (0.2ms) SAVEPOINT active_record_1
10983
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:37:08')
10984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10985
+  (0.4ms) ROLLBACK
10986
+  (0.1ms) BEGIN
10987
+  (0.1ms) SAVEPOINT active_record_1
10988
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10990
+  (0.2ms) SAVEPOINT active_record_1
10991
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:37:08')
10992
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10993
+  (1.3ms) ROLLBACK
10994
+  (0.1ms) BEGIN
10995
+  (0.2ms) SAVEPOINT active_record_1
10996
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
10997
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10998
+  (0.2ms) SAVEPOINT active_record_1
10999
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:37:08')
11000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11001
+  (0.6ms) ROLLBACK
11002
+  (0.1ms) BEGIN
11003
+  (0.1ms) SAVEPOINT active_record_1
11004
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11006
+  (0.1ms) SAVEPOINT active_record_1
11007
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:37:08')
11008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11009
+  (0.8ms) ROLLBACK
11010
+  (0.1ms) BEGIN
11011
+  (0.1ms) SAVEPOINT active_record_1
11012
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11013
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11014
+  (0.2ms) SAVEPOINT active_record_1
11015
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:37:08')
11016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11017
+  (0.5ms) ROLLBACK
11018
+  (0.1ms) BEGIN
11019
+  (0.1ms) SAVEPOINT active_record_1
11020
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11022
+  (0.2ms) SAVEPOINT active_record_1
11023
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:37:08')
11024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11025
+  (0.4ms) ROLLBACK
11026
+  (0.1ms) BEGIN
11027
+  (0.1ms) SAVEPOINT active_record_1
11028
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11030
+  (0.2ms) SAVEPOINT active_record_1
11031
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:37:08')
11032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11033
+  (0.7ms) ROLLBACK
11034
+  (0.1ms) BEGIN
11035
+  (0.1ms) SAVEPOINT active_record_1
11036
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11038
+  (0.2ms) SAVEPOINT active_record_1
11039
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:37:08')
11040
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11041
+  (0.5ms) ROLLBACK
11042
+  (0.1ms) BEGIN
11043
+  (0.1ms) SAVEPOINT active_record_1
11044
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11045
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11046
+  (0.3ms) SAVEPOINT active_record_1
11047
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:37:08')
11048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11049
+  (0.8ms) ROLLBACK
11050
+  (0.1ms) BEGIN
11051
+  (0.2ms) SAVEPOINT active_record_1
11052
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11053
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11054
+  (0.2ms) SAVEPOINT active_record_1
11055
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:37:08')
11056
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11057
+  (0.6ms) ROLLBACK
11058
+  (0.1ms) BEGIN
11059
+  (0.1ms) SAVEPOINT active_record_1
11060
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11062
+  (0.1ms) SAVEPOINT active_record_1
11063
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:37:08')
11064
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11065
+  (0.5ms) ROLLBACK
11066
+  (0.1ms) BEGIN
11067
+  (0.1ms) SAVEPOINT active_record_1
11068
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11070
+  (0.0ms) SAVEPOINT active_record_1
11071
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:37:08')
11072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11073
+  (0.4ms) ROLLBACK
11074
+  (0.1ms) BEGIN
11075
+  (0.2ms) SAVEPOINT active_record_1
11076
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11078
+  (0.2ms) SAVEPOINT active_record_1
11079
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:37:08')
11080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11081
+  (0.4ms) ROLLBACK
11082
+  (0.1ms) BEGIN
11083
+  (0.3ms) SAVEPOINT active_record_1
11084
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11085
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11086
+  (0.7ms) ROLLBACK
11087
+  (0.1ms) BEGIN
11088
+  (0.1ms) SAVEPOINT active_record_1
11089
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11090
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11091
+  (0.1ms) SAVEPOINT active_record_1
11092
+ 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-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:37:08')
11093
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11094
+  (0.6ms) ROLLBACK
11095
+  (0.0ms) BEGIN
11096
+  (0.1ms) SAVEPOINT active_record_1
11097
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11099
+  (0.1ms) SAVEPOINT active_record_1
11100
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:37:08')
11101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11102
+  (0.6ms) ROLLBACK
11103
+  (0.1ms) BEGIN
11104
+  (0.3ms) SAVEPOINT active_record_1
11105
+ 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-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')
11106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11107
+  (0.2ms) SAVEPOINT active_record_1
11108
+ 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-24 22:37:08', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:37:08')
11109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11110
+  (0.6ms) ROLLBACK
11111
+  (0.1ms) BEGIN
11112
+  (0.1ms) SAVEPOINT active_record_1
11113
+ 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-24 22:37:08', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:08')
11114
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11115
+  (0.2ms) SAVEPOINT active_record_1
11116
+ 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-24 22:37:08', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')
11117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11118
+  (0.2ms) SAVEPOINT active_record_1
11119
+ 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-24 22:37:08', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:08')
11120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11121
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11122
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
11123
+ (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)))))
11124
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69
11125
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11126
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
11127
+ (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)))))
11128
+
11129
+
11130
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:37:09 -0600
11131
+ Processing by NewsController#show as HTML
11132
+ Parameters: {"id"=>"5"}
11133
+ Rendered text template (0.0ms)
11134
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
11135
+  (0.7ms) ROLLBACK
11136
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
11137
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
11138
+  (0.2ms) SELECT DATABASE() as db
11139
+  (1.4ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
11140
+  (1.3ms) TRUNCATE TABLE `redirect_rules`;
11141
+  (19.8ms) TRUNCATE TABLE `request_environment_rules`;
11142
+  (0.4ms) SET FOREIGN_KEY_CHECKS = 1
11143
+  (0.1ms) BEGIN
11144
+  (0.1ms) SAVEPOINT active_record_1
11145
+ 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-24 22:37:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:09')
11146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11147
+  (0.2ms) SAVEPOINT active_record_1
11148
+ 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-24 22:37:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:09')
11149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11150
+  (0.1ms) SAVEPOINT active_record_1
11151
+ 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-24 22:37:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:09')
11152
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11153
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11154
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
11155
+ (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)))))
11156
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
11157
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11158
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
11159
+ (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)))))
11160
+
11161
+
11162
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:37:09 -0600
11163
+ Processing by NewsController#show as HTML
11164
+ Parameters: {"id"=>"20"}
11165
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11166
+  (0.7ms) ROLLBACK
11167
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
11168
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
11169
+  (1.5ms) TRUNCATE TABLE `redirect_rules`;
11170
+  (1.3ms) TRUNCATE TABLE `request_environment_rules`;
11171
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
11172
+  (0.1ms) BEGIN
11173
+  (0.2ms) SAVEPOINT active_record_1
11174
+ 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-24 22:37:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:09')
11175
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11176
+  (0.1ms) SAVEPOINT active_record_1
11177
+ 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-24 22:37:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:09')
11178
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11179
+  (0.1ms) SAVEPOINT active_record_1
11180
+ 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-24 22:37:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:09')
11181
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11182
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11183
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
11184
+ (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)))))
11185
+
11186
+
11187
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:37:09 -0600
11188
+
11189
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
11190
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
11191
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
11192
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
11193
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
11194
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
11195
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
11196
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
11197
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
11198
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
11199
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
11200
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
11201
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
11202
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
11203
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
11204
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
11205
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
11206
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
11207
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
11208
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
11209
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
11210
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
11211
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
11212
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
11213
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
11214
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
11215
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
11216
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
11217
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
11218
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
11219
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
11220
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
11221
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
11222
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
11223
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
11224
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
11225
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
11226
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
11227
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
11228
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
11229
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
11230
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
11231
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
11232
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
11233
+
11234
+
11235
+  (0.6ms) ROLLBACK
11236
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
11237
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
11238
+  (1.4ms) TRUNCATE TABLE `redirect_rules`;
11239
+  (1.7ms) TRUNCATE TABLE `request_environment_rules`;
11240
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
11241
+  (0.1ms) BEGIN
11242
+  (0.1ms) SAVEPOINT active_record_1
11243
+ 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-24 22:37:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:09')
11244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11245
+  (0.3ms) SAVEPOINT active_record_1
11246
+ 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-24 22:37:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:09')
11247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11248
+  (0.2ms) SAVEPOINT active_record_1
11249
+ 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-24 22:37:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:09')
11250
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11251
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11252
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
11253
+ (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)))))
11254
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
11255
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11256
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
11257
+ (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)))))
11258
+
11259
+
11260
+ Started GET "/news" for 127.0.0.1 at 2012-08-24 16:37:09 -0600
11261
+ Processing by NewsController#index as HTML
11262
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
11263
+  (0.7ms) ROLLBACK
11264
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
11265
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
11266
+  (1.4ms) TRUNCATE TABLE `redirect_rules`;
11267
+  (1.1ms) TRUNCATE TABLE `request_environment_rules`;
11268
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
11269
+ Connecting to database specified by database.yml
11270
+  (0.2ms) BEGIN
11271
+  (0.2ms) SAVEPOINT active_record_1
11272
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11273
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11274
+  (0.7ms) ROLLBACK
11275
+  (0.1ms) BEGIN
11276
+  (0.2ms) SAVEPOINT active_record_1
11277
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11278
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11279
+  (0.5ms) ROLLBACK
11280
+  (0.1ms) BEGIN
11281
+  (0.2ms) SAVEPOINT active_record_1
11282
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11283
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11284
+  (29.2ms) ROLLBACK
11285
+  (0.1ms) BEGIN
11286
+  (0.1ms) SAVEPOINT active_record_1
11287
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11289
+  (6.0ms) ROLLBACK
11290
+  (0.1ms) BEGIN
11291
+  (0.1ms) SAVEPOINT active_record_1
11292
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11294
+  (0.5ms) ROLLBACK
11295
+  (0.1ms) BEGIN
11296
+  (0.1ms) SAVEPOINT active_record_1
11297
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11299
+  (0.4ms) ROLLBACK
11300
+  (0.1ms) BEGIN
11301
+  (0.1ms) SAVEPOINT active_record_1
11302
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11304
+  (0.6ms) ROLLBACK
11305
+  (0.1ms) BEGIN
11306
+  (0.1ms) SAVEPOINT active_record_1
11307
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11308
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11309
+  (0.6ms) ROLLBACK
11310
+  (0.1ms) BEGIN
11311
+  (0.2ms) SAVEPOINT active_record_1
11312
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11314
+  (0.6ms) ROLLBACK
11315
+  (0.1ms) BEGIN
11316
+  (0.3ms) SAVEPOINT active_record_1
11317
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11319
+  (0.7ms) ROLLBACK
11320
+  (0.1ms) BEGIN
11321
+  (0.1ms) SAVEPOINT active_record_1
11322
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11324
+  (0.4ms) ROLLBACK
11325
+  (0.2ms) BEGIN
11326
+  (0.1ms) SAVEPOINT active_record_1
11327
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11329
+  (0.4ms) ROLLBACK
11330
+  (0.1ms) BEGIN
11331
+  (0.2ms) SAVEPOINT active_record_1
11332
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11334
+  (0.4ms) ROLLBACK
11335
+  (0.1ms) BEGIN
11336
+  (0.1ms) SAVEPOINT active_record_1
11337
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11338
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11339
+  (1.9ms) ROLLBACK
11340
+  (0.1ms) BEGIN
11341
+  (0.3ms) SAVEPOINT active_record_1
11342
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11344
+  (0.6ms) ROLLBACK
11345
+  (0.1ms) BEGIN
11346
+  (0.1ms) SAVEPOINT active_record_1
11347
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11348
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11349
+  (0.6ms) ROLLBACK
11350
+  (0.1ms) BEGIN
11351
+  (0.2ms) SAVEPOINT active_record_1
11352
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11353
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11354
+  (0.9ms) ROLLBACK
11355
+  (0.1ms) BEGIN
11356
+  (0.2ms) SAVEPOINT active_record_1
11357
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11359
+  (0.8ms) ROLLBACK
11360
+  (0.1ms) BEGIN
11361
+  (0.1ms) SAVEPOINT active_record_1
11362
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11364
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11365
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
11366
+ (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)))))
11367
+  (0.6ms) ROLLBACK
11368
+  (0.1ms) BEGIN
11369
+  (0.1ms) SAVEPOINT active_record_1
11370
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11371
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11372
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11373
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11374
+ (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)))))
11375
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
11376
+  (0.6ms) ROLLBACK
11377
+  (0.1ms) BEGIN
11378
+  (0.1ms) SAVEPOINT active_record_1
11379
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11381
+  (0.2ms) SAVEPOINT active_record_1
11382
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:38')
11383
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11384
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11385
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
11386
+ (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)))))
11387
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
11388
+  (0.4ms) ROLLBACK
11389
+  (0.1ms) BEGIN
11390
+  (0.1ms) SAVEPOINT active_record_1
11391
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11393
+  (0.2ms) SAVEPOINT active_record_1
11394
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:38')
11395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11396
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11397
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
11398
+ (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)))))
11399
+  (0.5ms) ROLLBACK
11400
+  (0.1ms) BEGIN
11401
+  (0.1ms) SAVEPOINT active_record_1
11402
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11404
+  (0.1ms) SAVEPOINT active_record_1
11405
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')
11406
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11407
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11408
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
11409
+ (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)))))
11410
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
11411
+  (1.1ms) ROLLBACK
11412
+  (0.1ms) BEGIN
11413
+  (0.1ms) SAVEPOINT active_record_1
11414
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11415
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11416
+  (0.2ms) SAVEPOINT active_record_1
11417
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')
11418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11419
+ RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11420
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
11421
+ (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)))))
11422
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
11423
+  (0.7ms) ROLLBACK
11424
+  (0.1ms) BEGIN
11425
+  (0.1ms) SAVEPOINT active_record_1
11426
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11428
+  (0.3ms) SAVEPOINT active_record_1
11429
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:37:38')
11430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11431
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11432
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11433
+ (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)))))
11434
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
11435
+  (0.5ms) ROLLBACK
11436
+  (0.1ms) BEGIN
11437
+  (0.1ms) SAVEPOINT active_record_1
11438
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11439
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11440
+  (0.2ms) SAVEPOINT active_record_1
11441
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:37:38')
11442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11443
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11444
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11445
+ (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)))))
11446
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
11447
+  (0.6ms) ROLLBACK
11448
+  (0.1ms) BEGIN
11449
+  (0.2ms) SAVEPOINT active_record_1
11450
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11451
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11452
+  (0.1ms) SAVEPOINT active_record_1
11453
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:37:38')
11454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11455
+  (0.2ms) SAVEPOINT active_record_1
11456
+ 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-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:37:38')
11457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11458
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11459
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11460
+ (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)))))
11461
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
11462
+  (0.5ms) ROLLBACK
11463
+  (0.1ms) BEGIN
11464
+  (0.2ms) SAVEPOINT active_record_1
11465
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11466
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11467
+  (0.3ms) SAVEPOINT active_record_1
11468
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:37:38')
11469
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11470
+  (0.2ms) SAVEPOINT active_record_1
11471
+ 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-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:37:38')
11472
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11473
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11474
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11475
+ (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)))))
11476
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
11477
+  (0.5ms) ROLLBACK
11478
+  (0.1ms) BEGIN
11479
+  (0.1ms) SAVEPOINT active_record_1
11480
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11481
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11482
+  (0.1ms) SAVEPOINT active_record_1
11483
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11485
+  (0.2ms) SAVEPOINT active_record_1
11486
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:37:38')
11487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11488
+  (0.1ms) SAVEPOINT active_record_1
11489
+ 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-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:37:38')
11490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11491
+  (0.2ms) SAVEPOINT active_record_1
11492
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:37:38')
11493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11494
+  (0.2ms) SAVEPOINT active_record_1
11495
+ 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-24 22:37:38', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:37:38')
11496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11497
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11498
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11499
+ (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)))))
11500
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
11501
+  (0.8ms) ROLLBACK
11502
+  (0.1ms) BEGIN
11503
+  (0.1ms) SAVEPOINT active_record_1
11504
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11506
+  (0.2ms) SAVEPOINT active_record_1
11507
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11509
+  (0.1ms) SAVEPOINT active_record_1
11510
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:37:38')
11511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11512
+  (0.1ms) SAVEPOINT active_record_1
11513
+ 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-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:37:38')
11514
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11515
+  (0.1ms) SAVEPOINT active_record_1
11516
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:37:38')
11517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11518
+  (0.1ms) SAVEPOINT active_record_1
11519
+ 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-24 22:37:38', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:37:38')
11520
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11521
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11522
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11523
+ (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)))))
11524
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
11525
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
11526
+  (0.6ms) ROLLBACK
11527
+  (0.1ms) BEGIN
11528
+  (0.1ms) SAVEPOINT active_record_1
11529
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11530
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11531
+  (0.3ms) SAVEPOINT active_record_1
11532
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11533
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11534
+  (0.1ms) SAVEPOINT active_record_1
11535
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:37:38')
11536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11537
+  (0.2ms) SAVEPOINT active_record_1
11538
+ 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-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:37:38')
11539
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11540
+  (0.1ms) SAVEPOINT active_record_1
11541
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:37:38')
11542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11543
+  (0.1ms) SAVEPOINT active_record_1
11544
+ 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-24 22:37:38', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:37:38')
11545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11546
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11547
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11548
+ (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)))))
11549
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
11550
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
11551
+  (0.6ms) ROLLBACK
11552
+  (0.1ms) BEGIN
11553
+  (0.2ms) SAVEPOINT active_record_1
11554
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11556
+  (0.1ms) SAVEPOINT active_record_1
11557
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')
11558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11559
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11560
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
11561
+ (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)))))
11562
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
11563
+  (0.7ms) ROLLBACK
11564
+  (0.1ms) BEGIN
11565
+  (0.2ms) SAVEPOINT active_record_1
11566
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11567
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11568
+  (0.3ms) SAVEPOINT active_record_1
11569
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')
11570
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11571
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11572
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
11573
+ (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)))))
11574
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41
11575
+  (0.8ms) ROLLBACK
11576
+  (0.1ms) BEGIN
11577
+  (0.1ms) SAVEPOINT active_record_1
11578
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11580
+  (0.3ms) SAVEPOINT active_record_1
11581
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')
11582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11583
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11584
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
11585
+ (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)))))
11586
+  (0.6ms) ROLLBACK
11587
+  (0.1ms) BEGIN
11588
+  (0.2ms) SAVEPOINT active_record_1
11589
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11591
+  (0.4ms) ROLLBACK
11592
+  (0.1ms) BEGIN
11593
+  (0.1ms) SAVEPOINT active_record_1
11594
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11596
+  (0.2ms) SAVEPOINT active_record_1
11597
+ 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-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')
11598
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11599
+  (0.7ms) ROLLBACK
11600
+  (0.1ms) BEGIN
11601
+  (0.2ms) SAVEPOINT active_record_1
11602
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11603
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11604
+  (0.1ms) SAVEPOINT active_record_1
11605
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:37:38')
11606
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11607
+  (0.4ms) ROLLBACK
11608
+  (0.1ms) BEGIN
11609
+  (0.2ms) SAVEPOINT active_record_1
11610
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11611
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11612
+  (0.2ms) SAVEPOINT active_record_1
11613
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:37:38')
11614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11615
+  (0.5ms) ROLLBACK
11616
+  (0.1ms) BEGIN
11617
+  (0.1ms) SAVEPOINT active_record_1
11618
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11619
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11620
+  (0.3ms) SAVEPOINT active_record_1
11621
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:37:38')
11622
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11623
+  (0.6ms) ROLLBACK
11624
+  (0.1ms) BEGIN
11625
+  (0.1ms) SAVEPOINT active_record_1
11626
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11628
+  (0.1ms) SAVEPOINT active_record_1
11629
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:37:38')
11630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11631
+  (1.0ms) ROLLBACK
11632
+  (0.1ms) BEGIN
11633
+  (0.2ms) SAVEPOINT active_record_1
11634
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11636
+  (0.2ms) SAVEPOINT active_record_1
11637
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:37:38')
11638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11639
+  (0.5ms) ROLLBACK
11640
+  (0.1ms) BEGIN
11641
+  (0.1ms) SAVEPOINT active_record_1
11642
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11644
+  (0.1ms) SAVEPOINT active_record_1
11645
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:37:38')
11646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11647
+  (0.5ms) ROLLBACK
11648
+  (0.1ms) BEGIN
11649
+  (0.2ms) SAVEPOINT active_record_1
11650
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11652
+  (0.3ms) SAVEPOINT active_record_1
11653
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:37:38')
11654
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11655
+  (0.9ms) ROLLBACK
11656
+  (0.1ms) BEGIN
11657
+  (0.2ms) SAVEPOINT active_record_1
11658
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11659
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11660
+  (0.3ms) SAVEPOINT active_record_1
11661
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:37:38')
11662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11663
+  (1.0ms) ROLLBACK
11664
+  (0.1ms) BEGIN
11665
+  (0.1ms) SAVEPOINT active_record_1
11666
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11668
+  (0.1ms) SAVEPOINT active_record_1
11669
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:37:38')
11670
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11671
+  (0.8ms) ROLLBACK
11672
+  (0.1ms) BEGIN
11673
+  (0.2ms) SAVEPOINT active_record_1
11674
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11675
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11676
+  (0.2ms) SAVEPOINT active_record_1
11677
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:37:38')
11678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11679
+  (0.5ms) ROLLBACK
11680
+  (0.2ms) BEGIN
11681
+  (0.1ms) SAVEPOINT active_record_1
11682
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11684
+  (0.1ms) SAVEPOINT active_record_1
11685
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:37:38')
11686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11687
+  (0.6ms) ROLLBACK
11688
+  (0.1ms) BEGIN
11689
+  (0.2ms) SAVEPOINT active_record_1
11690
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11691
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11692
+  (0.3ms) SAVEPOINT active_record_1
11693
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:37:38')
11694
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11695
+  (0.4ms) ROLLBACK
11696
+  (0.1ms) BEGIN
11697
+  (0.2ms) SAVEPOINT active_record_1
11698
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11700
+  (0.1ms) SAVEPOINT active_record_1
11701
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:37:38')
11702
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11703
+  (0.7ms) ROLLBACK
11704
+  (0.5ms) BEGIN
11705
+  (0.2ms) SAVEPOINT active_record_1
11706
+ 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-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')
11707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11708
+  (0.2ms) SAVEPOINT active_record_1
11709
+ 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-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:37:38')
11710
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11711
+  (0.9ms) ROLLBACK
11712
+  (0.1ms) BEGIN
11713
+  (0.2ms) SAVEPOINT active_record_1
11714
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11715
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11716
+  (0.1ms) SAVEPOINT active_record_1
11717
+ 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-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:37:39')
11718
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11719
+  (0.6ms) ROLLBACK
11720
+  (0.1ms) BEGIN
11721
+  (0.2ms) SAVEPOINT active_record_1
11722
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11723
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11724
+  (0.2ms) SAVEPOINT active_record_1
11725
+ 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-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:37:39')
11726
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11727
+  (0.6ms) ROLLBACK
11728
+  (0.1ms) BEGIN
11729
+  (0.1ms) SAVEPOINT active_record_1
11730
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11731
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11732
+  (0.2ms) SAVEPOINT active_record_1
11733
+ 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-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:37:39')
11734
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11735
+  (0.4ms) ROLLBACK
11736
+  (0.1ms) BEGIN
11737
+  (0.1ms) SAVEPOINT active_record_1
11738
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11740
+  (0.7ms) ROLLBACK
11741
+  (0.1ms) BEGIN
11742
+  (0.1ms) SAVEPOINT active_record_1
11743
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11745
+  (0.2ms) SAVEPOINT active_record_1
11746
+ 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-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:37:39')
11747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11748
+  (0.9ms) ROLLBACK
11749
+  (0.1ms) BEGIN
11750
+  (0.2ms) SAVEPOINT active_record_1
11751
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11753
+  (0.1ms) SAVEPOINT active_record_1
11754
+ 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-24 22:37:39', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:37:39')
11755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11756
+  (0.5ms) ROLLBACK
11757
+  (0.1ms) BEGIN
11758
+  (0.2ms) SAVEPOINT active_record_1
11759
+ 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-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')
11760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11761
+  (0.2ms) SAVEPOINT active_record_1
11762
+ 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-24 22:37:39', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:37:39')
11763
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11764
+  (0.7ms) ROLLBACK
11765
+  (0.2ms) BEGIN
11766
+  (0.2ms) SAVEPOINT active_record_1
11767
+ 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-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')
11768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11769
+  (0.1ms) SAVEPOINT active_record_1
11770
+ 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-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')
11771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11772
+  (0.1ms) SAVEPOINT active_record_1
11773
+ 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-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')
11774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11775
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11776
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
11777
+ (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)))))
11778
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69
11779
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11780
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
11781
+ (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)))))
11782
+
11783
+
11784
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:37:39 -0600
11785
+ Processing by NewsController#show as HTML
11786
+ Parameters: {"id"=>"5"}
11787
+ Rendered text template (0.0ms)
11788
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
11789
+  (1.1ms) ROLLBACK
11790
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
11791
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
11792
+  (0.1ms) SELECT DATABASE() as db
11793
+  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
11794
+  (1.3ms) TRUNCATE TABLE `redirect_rules`;
11795
+  (1.2ms) TRUNCATE TABLE `request_environment_rules`;
11796
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
11797
+  (0.1ms) BEGIN
11798
+  (0.2ms) SAVEPOINT active_record_1
11799
+ 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-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')
11800
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11801
+  (0.2ms) SAVEPOINT active_record_1
11802
+ 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-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')
11803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11804
+  (0.1ms) SAVEPOINT active_record_1
11805
+ 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-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')
11806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11807
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11808
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
11809
+ (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)))))
11810
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
11811
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11812
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
11813
+ (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)))))
11814
+
11815
+
11816
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:37:39 -0600
11817
+ Processing by NewsController#show as HTML
11818
+ Parameters: {"id"=>"20"}
11819
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11820
+  (0.9ms) ROLLBACK
11821
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
11822
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
11823
+  (21.8ms) TRUNCATE TABLE `redirect_rules`;
11824
+  (13.3ms) TRUNCATE TABLE `request_environment_rules`;
11825
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
11826
+  (0.1ms) BEGIN
11827
+  (0.1ms) SAVEPOINT active_record_1
11828
+ 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-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')
11829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11830
+  (0.3ms) SAVEPOINT active_record_1
11831
+ 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-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')
11832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11833
+  (0.1ms) SAVEPOINT active_record_1
11834
+ 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-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')
11835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11836
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11837
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
11838
+ (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)))))
11839
+
11840
+
11841
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:37:39 -0600
11842
+
11843
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
11844
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
11845
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
11846
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
11847
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
11848
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
11849
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
11850
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
11851
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
11852
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
11853
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
11854
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
11855
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
11856
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
11857
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
11858
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
11859
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
11860
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
11861
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
11862
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
11863
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
11864
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
11865
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
11866
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
11867
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
11868
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
11869
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
11870
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
11871
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
11872
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
11873
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
11874
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
11875
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
11876
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
11877
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
11878
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
11879
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
11880
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
11881
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
11882
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
11883
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
11884
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
11885
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
11886
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
11887
+
11888
+
11889
+  (1.0ms) ROLLBACK
11890
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
11891
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
11892
+  (1.6ms) TRUNCATE TABLE `redirect_rules`;
11893
+  (53.2ms) TRUNCATE TABLE `request_environment_rules`;
11894
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
11895
+  (0.1ms) BEGIN
11896
+  (0.2ms) SAVEPOINT active_record_1
11897
+ SQL (11.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')
11898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11899
+  (0.2ms) SAVEPOINT active_record_1
11900
+ 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-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')
11901
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11902
+  (0.1ms) SAVEPOINT active_record_1
11903
+ 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-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')
11904
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11905
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11906
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
11907
+ (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)))))
11908
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
11909
+ RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
11910
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
11911
+ (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)))))
11912
+
11913
+
11914
+ Started GET "/news" for 127.0.0.1 at 2012-08-24 16:37:39 -0600
11915
+ Processing by NewsController#index as HTML
11916
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
11917
+  (0.7ms) ROLLBACK
11918
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
11919
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
11920
+  (30.9ms) TRUNCATE TABLE `redirect_rules`;
11921
+  (1.6ms) TRUNCATE TABLE `request_environment_rules`;
11922
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
11923
+ Connecting to database specified by database.yml
11924
+  (67.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
11925
+  (279.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
11926
+  (0.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
11927
+ Migrating to CreateRedirectRules (20120815212612)
11928
+  (100.8ms) CREATE TABLE `redirect_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `source` varchar(255) NOT NULL, `source_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `source_is_case_sensitive` tinyint(1) DEFAULT 0 NOT NULL, `destination` varchar(255) NOT NULL, `active` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
11929
+  (149.4ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
11930
+  (132.1ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
11931
+  (140.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
11932
+  (132.9ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
11933
+  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612')
11934
+ Migrating to CreateRequestEnvironmentRules (20120823163756)
11935
+  (121.4ms) CREATE TABLE `request_environment_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `redirect_rule_id` int(11) NOT NULL, `environment_key_name` varchar(255) NOT NULL, `environment_value` varchar(255) NOT NULL, `environment_value_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `environment_value_is_case_sensitive` tinyint(1) DEFAULT 1 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
11936
+  (183.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
11937
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
11938
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
11939
+ Connecting to database specified by database.yml
11940
+  (0.1ms) BEGIN
11941
+  (0.2ms) SAVEPOINT active_record_1
11942
+ SQL (15.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:08')
11943
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11944
+  (0.5ms) ROLLBACK
11945
+  (0.1ms) BEGIN
11946
+  (0.1ms) SAVEPOINT active_record_1
11947
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11949
+  (0.5ms) ROLLBACK
11950
+  (0.1ms) BEGIN
11951
+  (0.1ms) SAVEPOINT active_record_1
11952
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11953
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11954
+  (0.5ms) ROLLBACK
11955
+  (0.1ms) BEGIN
11956
+  (0.1ms) SAVEPOINT active_record_1
11957
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11959
+  (1.1ms) ROLLBACK
11960
+  (0.1ms) BEGIN
11961
+  (0.1ms) SAVEPOINT active_record_1
11962
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11964
+  (0.6ms) ROLLBACK
11965
+  (0.1ms) BEGIN
11966
+  (0.1ms) SAVEPOINT active_record_1
11967
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11969
+  (0.4ms) ROLLBACK
11970
+  (0.1ms) BEGIN
11971
+  (0.1ms) SAVEPOINT active_record_1
11972
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11974
+  (10.9ms) ROLLBACK
11975
+  (0.1ms) BEGIN
11976
+  (0.1ms) SAVEPOINT active_record_1
11977
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11979
+  (30.9ms) ROLLBACK
11980
+  (0.1ms) BEGIN
11981
+  (0.1ms) SAVEPOINT active_record_1
11982
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11984
+  (3.3ms) ROLLBACK
11985
+  (0.2ms) BEGIN
11986
+  (0.1ms) SAVEPOINT active_record_1
11987
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11989
+  (3.0ms) ROLLBACK
11990
+  (0.1ms) BEGIN
11991
+  (0.1ms) SAVEPOINT active_record_1
11992
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11994
+  (0.5ms) ROLLBACK
11995
+  (0.1ms) BEGIN
11996
+  (0.1ms) SAVEPOINT active_record_1
11997
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
11998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11999
+  (0.6ms) ROLLBACK
12000
+  (0.1ms) BEGIN
12001
+  (0.1ms) SAVEPOINT active_record_1
12002
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12004
+  (0.5ms) ROLLBACK
12005
+  (0.1ms) BEGIN
12006
+  (0.1ms) SAVEPOINT active_record_1
12007
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12009
+  (0.6ms) ROLLBACK
12010
+  (0.1ms) BEGIN
12011
+  (0.2ms) SAVEPOINT active_record_1
12012
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12014
+  (1.6ms) ROLLBACK
12015
+  (0.1ms) BEGIN
12016
+  (0.1ms) SAVEPOINT active_record_1
12017
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12018
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12019
+  (0.6ms) ROLLBACK
12020
+  (0.1ms) BEGIN
12021
+  (0.1ms) SAVEPOINT active_record_1
12022
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12024
+  (0.5ms) ROLLBACK
12025
+  (0.1ms) BEGIN
12026
+  (0.1ms) SAVEPOINT active_record_1
12027
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12029
+  (0.4ms) ROLLBACK
12030
+  (0.1ms) BEGIN
12031
+  (0.1ms) SAVEPOINT active_record_1
12032
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12034
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12035
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
12036
+ (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)))))
12037
+  (0.5ms) ROLLBACK
12038
+  (0.1ms) BEGIN
12039
+  (0.1ms) SAVEPOINT active_record_1
12040
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12042
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12043
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12044
+ (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)))))
12045
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20
12046
+  (0.5ms) ROLLBACK
12047
+  (0.1ms) BEGIN
12048
+  (0.1ms) SAVEPOINT active_record_1
12049
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12051
+  (0.1ms) SAVEPOINT active_record_1
12052
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:44:09')
12053
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12054
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12055
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
12056
+ (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)))))
12057
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22
12058
+  (0.4ms) ROLLBACK
12059
+  (0.1ms) BEGIN
12060
+  (0.2ms) SAVEPOINT active_record_1
12061
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12063
+  (0.1ms) SAVEPOINT active_record_1
12064
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:44:09')
12065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12066
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12067
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
12068
+ (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)))))
12069
+  (0.6ms) ROLLBACK
12070
+  (0.1ms) BEGIN
12071
+  (0.8ms) SAVEPOINT active_record_1
12072
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12074
+  (0.1ms) SAVEPOINT active_record_1
12075
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12077
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12078
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
12079
+ (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)))))
12080
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26
12081
+  (0.6ms) ROLLBACK
12082
+  (0.1ms) BEGIN
12083
+  (0.1ms) SAVEPOINT active_record_1
12084
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12086
+  (0.2ms) SAVEPOINT active_record_1
12087
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12088
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12089
+ RedirectRule Load (2.0ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12090
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR
12091
+ (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)))))
12092
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28
12093
+  (0.6ms) ROLLBACK
12094
+  (0.1ms) BEGIN
12095
+  (0.1ms) SAVEPOINT active_record_1
12096
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12098
+  (0.2ms) SAVEPOINT active_record_1
12099
+ SQL (8.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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:44:09')
12100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12101
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12102
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12103
+ (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)))))
12104
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29
12105
+  (0.9ms) ROLLBACK
12106
+  (0.1ms) BEGIN
12107
+  (0.1ms) SAVEPOINT active_record_1
12108
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12110
+  (0.1ms) SAVEPOINT active_record_1
12111
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:44:09')
12112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12113
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12114
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12115
+ (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)))))
12116
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30
12117
+  (0.4ms) ROLLBACK
12118
+  (0.1ms) BEGIN
12119
+  (0.1ms) SAVEPOINT active_record_1
12120
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12122
+  (0.1ms) SAVEPOINT active_record_1
12123
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:44:09')
12124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12125
+  (0.1ms) SAVEPOINT active_record_1
12126
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:44:09')
12127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12128
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12129
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12130
+ (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)))))
12131
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31
12132
+  (40.7ms) ROLLBACK
12133
+  (0.1ms) BEGIN
12134
+  (0.1ms) SAVEPOINT active_record_1
12135
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12137
+  (0.1ms) SAVEPOINT active_record_1
12138
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:44:09')
12139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12140
+  (0.2ms) SAVEPOINT active_record_1
12141
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:44:09')
12142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12143
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12144
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12145
+ (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)))))
12146
+ RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32
12147
+  (0.6ms) ROLLBACK
12148
+  (0.1ms) BEGIN
12149
+  (0.2ms) SAVEPOINT active_record_1
12150
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12152
+  (0.1ms) SAVEPOINT active_record_1
12153
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12155
+  (0.1ms) SAVEPOINT active_record_1
12156
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:44:09')
12157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12158
+  (0.1ms) SAVEPOINT active_record_1
12159
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:44:09')
12160
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12161
+  (0.2ms) SAVEPOINT active_record_1
12162
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:44:09')
12163
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12164
+  (0.2ms) SAVEPOINT active_record_1
12165
+ 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-24 22:44:09', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:44:09')
12166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12167
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12168
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12169
+ (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)))))
12170
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33
12171
+  (0.7ms) ROLLBACK
12172
+  (0.1ms) BEGIN
12173
+  (0.1ms) SAVEPOINT active_record_1
12174
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12176
+  (0.1ms) SAVEPOINT active_record_1
12177
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12179
+  (0.1ms) SAVEPOINT active_record_1
12180
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:44:09')
12181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12182
+  (0.1ms) SAVEPOINT active_record_1
12183
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:44:09')
12184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12185
+  (0.1ms) SAVEPOINT active_record_1
12186
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:44:09')
12187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12188
+  (0.2ms) SAVEPOINT active_record_1
12189
+ 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-24 22:44:09', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:44:09')
12190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12191
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12192
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12193
+ (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)))))
12194
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35
12195
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36
12196
+  (0.7ms) ROLLBACK
12197
+  (0.1ms) BEGIN
12198
+  (0.1ms) SAVEPOINT active_record_1
12199
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12201
+  (0.1ms) SAVEPOINT active_record_1
12202
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12204
+  (0.4ms) SAVEPOINT active_record_1
12205
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:44:09')
12206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12207
+  (0.1ms) SAVEPOINT active_record_1
12208
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:44:09')
12209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12210
+  (0.1ms) SAVEPOINT active_record_1
12211
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:44:09')
12212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12213
+  (0.4ms) SAVEPOINT active_record_1
12214
+ 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-24 22:44:09', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:44:09')
12215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12216
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12217
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12218
+ (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)))))
12219
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37
12220
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38
12221
+  (0.6ms) ROLLBACK
12222
+  (0.1ms) BEGIN
12223
+  (0.1ms) SAVEPOINT active_record_1
12224
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12226
+  (0.1ms) SAVEPOINT active_record_1
12227
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12229
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12230
+ ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR
12231
+ (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)))))
12232
+ RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40
12233
+  (0.8ms) ROLLBACK
12234
+  (0.1ms) BEGIN
12235
+  (0.1ms) SAVEPOINT active_record_1
12236
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12238
+  (0.1ms) SAVEPOINT active_record_1
12239
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12241
+ RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12242
+ ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR
12243
+ (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)))))
12244
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41
12245
+  (9.8ms) ROLLBACK
12246
+  (0.1ms) BEGIN
12247
+  (0.1ms) SAVEPOINT active_record_1
12248
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12250
+  (0.1ms) SAVEPOINT active_record_1
12251
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12253
+ RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12254
+ ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR
12255
+ (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)))))
12256
+  (11.5ms) ROLLBACK
12257
+  (0.1ms) BEGIN
12258
+  (0.1ms) SAVEPOINT active_record_1
12259
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12260
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12261
+  (16.8ms) ROLLBACK
12262
+  (0.2ms) BEGIN
12263
+  (0.2ms) SAVEPOINT active_record_1
12264
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12265
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12266
+  (0.1ms) SAVEPOINT active_record_1
12267
+ 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-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12268
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12269
+  (16.5ms) ROLLBACK
12270
+  (0.3ms) BEGIN
12271
+  (0.1ms) SAVEPOINT active_record_1
12272
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12274
+  (0.2ms) SAVEPOINT active_record_1
12275
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:44:09')
12276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12277
+  (11.1ms) ROLLBACK
12278
+  (0.1ms) BEGIN
12279
+  (0.1ms) SAVEPOINT active_record_1
12280
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12282
+  (0.1ms) SAVEPOINT active_record_1
12283
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:44:09')
12284
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12285
+  (12.0ms) ROLLBACK
12286
+  (0.1ms) BEGIN
12287
+  (0.1ms) SAVEPOINT active_record_1
12288
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12289
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12290
+  (0.1ms) SAVEPOINT active_record_1
12291
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:44:09')
12292
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12293
+  (8.4ms) ROLLBACK
12294
+  (0.1ms) BEGIN
12295
+  (0.2ms) SAVEPOINT active_record_1
12296
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12298
+  (0.1ms) SAVEPOINT active_record_1
12299
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:44:09')
12300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12301
+  (22.1ms) ROLLBACK
12302
+  (0.1ms) BEGIN
12303
+  (0.2ms) SAVEPOINT active_record_1
12304
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12305
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12306
+  (0.1ms) SAVEPOINT active_record_1
12307
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:44:09')
12308
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12309
+  (13.4ms) ROLLBACK
12310
+  (0.1ms) BEGIN
12311
+  (0.2ms) SAVEPOINT active_record_1
12312
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12313
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12314
+  (0.2ms) SAVEPOINT active_record_1
12315
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:44:09')
12316
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12317
+  (13.8ms) ROLLBACK
12318
+  (0.2ms) BEGIN
12319
+  (0.3ms) SAVEPOINT active_record_1
12320
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12321
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12322
+  (0.1ms) SAVEPOINT active_record_1
12323
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:44:09')
12324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12325
+  (2.3ms) ROLLBACK
12326
+  (0.1ms) BEGIN
12327
+  (0.1ms) SAVEPOINT active_record_1
12328
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12330
+  (0.1ms) SAVEPOINT active_record_1
12331
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:44:09')
12332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12333
+  (11.4ms) ROLLBACK
12334
+  (0.1ms) BEGIN
12335
+  (0.2ms) SAVEPOINT active_record_1
12336
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12338
+  (0.2ms) SAVEPOINT active_record_1
12339
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:44:09')
12340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12341
+  (4.0ms) ROLLBACK
12342
+  (0.1ms) BEGIN
12343
+  (0.1ms) SAVEPOINT active_record_1
12344
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12345
+  (0.5ms) RELEASE SAVEPOINT active_record_1
12346
+  (0.1ms) SAVEPOINT active_record_1
12347
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:44:09')
12348
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12349
+  (11.4ms) ROLLBACK
12350
+  (0.1ms) BEGIN
12351
+  (0.2ms) SAVEPOINT active_record_1
12352
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12354
+  (0.1ms) SAVEPOINT active_record_1
12355
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:44:09')
12356
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12357
+  (18.5ms) ROLLBACK
12358
+  (0.2ms) BEGIN
12359
+  (0.1ms) SAVEPOINT active_record_1
12360
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12361
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12362
+  (0.1ms) SAVEPOINT active_record_1
12363
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:44:09')
12364
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12365
+  (13.9ms) ROLLBACK
12366
+  (0.1ms) BEGIN
12367
+  (0.2ms) SAVEPOINT active_record_1
12368
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12370
+  (0.1ms) SAVEPOINT active_record_1
12371
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:44:09')
12372
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12373
+  (8.9ms) ROLLBACK
12374
+  (0.1ms) BEGIN
12375
+  (0.1ms) SAVEPOINT active_record_1
12376
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12378
+  (0.8ms) SAVEPOINT active_record_1
12379
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:44:09')
12380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12381
+  (0.5ms) ROLLBACK
12382
+  (0.1ms) BEGIN
12383
+  (0.2ms) SAVEPOINT active_record_1
12384
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12386
+  (0.1ms) SAVEPOINT active_record_1
12387
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:44:09')
12388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12389
+  (0.5ms) ROLLBACK
12390
+  (0.1ms) BEGIN
12391
+  (0.1ms) SAVEPOINT active_record_1
12392
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12394
+  (0.1ms) SAVEPOINT active_record_1
12395
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:44:09')
12396
+  (1.3ms) RELEASE SAVEPOINT active_record_1
12397
+  (0.6ms) ROLLBACK
12398
+  (0.1ms) BEGIN
12399
+  (0.3ms) SAVEPOINT active_record_1
12400
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12402
+  (0.1ms) SAVEPOINT active_record_1
12403
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:44:09')
12404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12405
+  (0.7ms) ROLLBACK
12406
+  (0.1ms) BEGIN
12407
+  (0.3ms) SAVEPOINT active_record_1
12408
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12410
+  (0.5ms) ROLLBACK
12411
+  (0.1ms) BEGIN
12412
+  (0.2ms) SAVEPOINT active_record_1
12413
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12414
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12415
+  (0.1ms) SAVEPOINT active_record_1
12416
+ 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-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:44:09')
12417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12418
+  (0.4ms) ROLLBACK
12419
+  (0.1ms) BEGIN
12420
+  (0.1ms) SAVEPOINT active_record_1
12421
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12422
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12423
+  (0.2ms) SAVEPOINT active_record_1
12424
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:44:09')
12425
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12426
+  (0.5ms) ROLLBACK
12427
+  (0.1ms) BEGIN
12428
+  (0.2ms) SAVEPOINT active_record_1
12429
+ 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-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')
12430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12431
+  (0.2ms) SAVEPOINT active_record_1
12432
+ 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-24 22:44:09', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:44:09')
12433
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12434
+  (0.6ms) ROLLBACK
12435
+  (0.1ms) BEGIN
12436
+  (0.1ms) SAVEPOINT active_record_1
12437
+ 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-24 22:44:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:09')
12438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12439
+  (0.2ms) SAVEPOINT active_record_1
12440
+ 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-24 22:44:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')
12441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12442
+  (0.2ms) SAVEPOINT active_record_1
12443
+ 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-24 22:44:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:09')
12444
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12445
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12446
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR
12447
+ (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)))))
12448
+ RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69
12449
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12450
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR
12451
+ (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)))))
12452
+
12453
+
12454
+ Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:44:10 -0600
12455
+ Processing by NewsController#show as HTML
12456
+ Parameters: {"id"=>"5"}
12457
+ Rendered text template (0.0ms)
12458
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
12459
+  (0.7ms) ROLLBACK
12460
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
12461
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
12462
+  (0.1ms) SELECT DATABASE() as db
12463
+  (1.2ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'
12464
+  (46.9ms) TRUNCATE TABLE `redirect_rules`;
12465
+  (10.8ms) TRUNCATE TABLE `request_environment_rules`;
12466
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
12467
+  (0.1ms) BEGIN
12468
+  (0.2ms) SAVEPOINT active_record_1
12469
+ SQL (16.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:10')
12470
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12471
+  (0.3ms) SAVEPOINT active_record_1
12472
+ 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-24 22:44:10', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:10')
12473
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12474
+  (0.2ms) SAVEPOINT active_record_1
12475
+ 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-24 22:44:10', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:10')
12476
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12477
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12478
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR
12479
+ (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)))))
12480
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2
12481
+ RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12482
+ ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR
12483
+ (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)))))
12484
+
12485
+
12486
+ Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:44:10 -0600
12487
+ Processing by NewsController#show as HTML
12488
+ Parameters: {"id"=>"20"}
12489
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
12490
+  (0.9ms) ROLLBACK
12491
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
12492
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
12493
+  (1.8ms) TRUNCATE TABLE `redirect_rules`;
12494
+  (1.8ms) TRUNCATE TABLE `request_environment_rules`;
12495
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
12496
+  (0.2ms) BEGIN
12497
+  (0.2ms) SAVEPOINT active_record_1
12498
+ 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-24 22:44:10', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:10')
12499
+  (0.3ms) RELEASE SAVEPOINT active_record_1
12500
+  (0.2ms) SAVEPOINT active_record_1
12501
+ 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-24 22:44:10', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:10')
12502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12503
+  (0.2ms) SAVEPOINT active_record_1
12504
+ 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-24 22:44:10', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:10')
12505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12506
+ RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12507
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR
12508
+ (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)))))
12509
+
12510
+
12511
+ Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:44:10 -0600
12512
+
12513
+ ActionController::RoutingError (No route matches [GET] "/my_old_url"):
12514
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
12515
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
12516
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
12517
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
12518
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
12519
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
12520
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
12521
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
12522
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
12523
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response'
12524
+ /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call'
12525
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
12526
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
12527
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
12528
+ rack (1.4.1) lib/rack/builder.rb:134:in `call'
12529
+ rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call'
12530
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `each'
12531
+ rack (1.4.1) lib/rack/urlmap.rb:49:in `call'
12532
+ rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request'
12533
+ rack-test (0.6.1) lib/rack/test.rb:219:in `process_request'
12534
+ rack-test (0.6.1) lib/rack/test.rb:57:in `get'
12535
+ /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get'
12536
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process'
12537
+ capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit'
12538
+ capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit'
12539
+ capybara (1.1.2) lib/capybara/session.rb:157:in `visit'
12540
+ capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit'
12541
+ /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in <top (required)>'
12542
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval'
12543
+ rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run'
12544
+ rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks'
12545
+ rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run'
12546
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples'
12547
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map'
12548
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples'
12549
+ rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run'
12550
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
12551
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map'
12552
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run'
12553
+ rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report'
12554
+ rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run'
12555
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run'
12556
+ rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'
12557
+
12558
+
12559
+  (1.1ms) ROLLBACK
12560
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
12561
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
12562
+  (1.8ms) TRUNCATE TABLE `redirect_rules`;
12563
+  (1.5ms) TRUNCATE TABLE `request_environment_rules`;
12564
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
12565
+  (0.1ms) BEGIN
12566
+  (0.1ms) SAVEPOINT active_record_1
12567
+ 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-24 22:44:10', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:10')
12568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12569
+  (0.2ms) SAVEPOINT active_record_1
12570
+ 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-24 22:44:10', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:10')
12571
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12572
+  (0.2ms) SAVEPOINT active_record_1
12573
+ 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-24 22:44:10', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:10')
12574
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12575
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12576
+ ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR
12577
+ (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)))))
12578
+ RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3
12579
+ RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND
12580
+ ((source_is_regex = 0 AND redirect_rules.source = '/news') OR
12581
+ (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)))))
12582
+
12583
+
12584
+ Started GET "/news" for 127.0.0.1 at 2012-08-24 16:44:10 -0600
12585
+ Processing by NewsController#index as HTML
12586
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
12587
+  (1.1ms) ROLLBACK
12588
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
12589
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
12590
+  (1.6ms) TRUNCATE TABLE `redirect_rules`;
12591
+  (2.4ms) TRUNCATE TABLE `request_environment_rules`;
12592
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1