redirector 0.1.5 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 997c4d3e0d65d39bb518564545c08482ac1abba0
4
- data.tar.gz: 403259f32f51a4a38aaa04a1f560129933d6c9fa
3
+ metadata.gz: 0d4890e47ab811b654b55b9858d2ecb1f26cbcc3
4
+ data.tar.gz: 1ec2d840fb1e1d8d91c1d18be77d039f5a47a928
5
5
  SHA512:
6
- metadata.gz: 04c05e4bcfc4ef59ff5860ee85042de0ea1f49b2ab9faecf166fb45b0db26f299a08ef45355cd6870c037dc17068bbd007e51a43fe4551566de489a2d802739e
7
- data.tar.gz: 22fae14e41c5636a299ea81b6380f374fc0a0e13dd9c9b610324e4afbcd6a80e8f40fb28fe8bd754b016e17268d1c9ecfb19158b5a0fcb6671445f695583d796
6
+ metadata.gz: fe37a44ac698c28d29af1a6d51184ff69986e1fafb001a2ee85198c98ae6235fa0a21d637a8687de9c1721b1f53628e4262516b329cf35d4e71cc32f2f7b897d
7
+ data.tar.gz: 40f7314cb1b6826ae0ad752118f89023771d1ff299da9bfc6f27ceec2bb8bde2d51374f1ca5639edb620e1816d1077caff872cbd2c8cb6636911322bfed7cf08
data/HISTORY CHANGED
@@ -22,3 +22,13 @@
22
22
  * Allow nested attributes for request environment rules on redirect rules and be set by mass assignment.
23
23
  * [BUG] Allow active to be set to false
24
24
  * [BUG] Handle a nil value for a match group correctly
25
+
26
+ == 0.1.5 / 2014-01-16
27
+ * Officially support Rails 4
28
+ * Add `silence_sql_logs` config option
29
+ * Handle ports on redirects properly
30
+ * Better handle `URI::InvalidURIError` exceptions inside middleware by raising custom error
31
+ * Minor bug fix
32
+
33
+ == 1.0.0 / 2014-03-07
34
+ * Add `preserve_query` option to preserve the query string from source to destination URL
data/README.md CHANGED
@@ -1,13 +1,18 @@
1
1
  # Redirector
2
2
 
3
- [![Code Climate](https://codeclimate.com/github/vigetlabs/redirector.png)](https://codeclimate.com/github/vigetlabs/redirector)
3
+ [![Code Climate](https://codeclimate.com/github/vigetlabs/redirector.png)](https://codeclimate.com/github/vigetlabs/redirector) [![Build Status](https://travis-ci.org/vigetlabs/redirector.png?branch=master)](https://travis-ci.org/vigetlabs/redirector) [![Coverage Status](https://coveralls.io/repos/vigetlabs/redirector/badge.png?branch=master)](https://coveralls.io/r/vigetlabs/redirector?branch=master) [![Gem Version](https://badge.fury.io/rb/redirector.png)](http://badge.fury.io/rb/redirector) [![Dependency Status](https://gemnasium.com/vigetlabs/redirector.png)](https://gemnasium.com/vigetlabs/redirector)
4
+
4
5
 
5
6
  Redirector is a Rails engine that adds a piece of middleware to the top of your middleware stack that looks for redirect rules stored in your database and redirects you accordingly.
6
7
 
7
8
  ## Install
8
9
 
9
10
  1. Add this to your Gemfile and then `bundle install`:
10
- <pre><code>gem 'redirector'</code></pre>
11
+
12
+ ```ruby
13
+ gem 'redirector'
14
+ ```
15
+
11
16
  2. `$ rake redirector_engine:install:migrations`
12
17
  3. `$ rake db:migrate`
13
18
  4. Create an interface for admins to manage the redirect rules.
@@ -19,16 +24,20 @@ Redirector is a Rails engine that adds a piece of middleware to the top of your
19
24
 
20
25
  `silence_sql_logs`: This option silences the logging of Redirector related SQL queries in your log file.
21
26
 
27
+ `preserve_query`: Pass the query string parameters through from the source to the target URL.
28
+
22
29
  You can set these inside your configuration in `config/application.rb` of your Rails application like so:
23
30
 
24
- module MyApplication
25
- class Application < Rails::Application
26
- # ...
31
+ ```ruby
32
+ module MyApplication
33
+ class Application < Rails::Application
34
+ # ...
27
35
 
28
- config.redirector.include_query_in_source = true
29
- config.redirector.silence_sql_logs = true
30
- end
31
- end
36
+ config.redirector.include_query_in_source = true
37
+ config.redirector.silence_sql_logs = true
38
+ end
39
+ end
40
+ ```
32
41
 
33
42
  ## Redirect Rule definitions
34
43
 
@@ -48,25 +57,27 @@ When using regex matching on either a redirect rule source or a request environm
48
57
 
49
58
  Here's the schema definition used for the two tables:
50
59
 
51
- create_table "redirect_rules", :force => true do |t|
52
- t.string "source", :null => false # Matched against the request path
53
- t.boolean "source_is_regex", :default => false, :null => false # Is the source a regular expression or not
54
- t.boolean "source_is_case_sensitive", :default => false, :null => false # Is the source regex cas sensitive or not
55
- t.string "destination", :null => false
56
- t.boolean "active", :default => false # Should this rule be applied or not
57
- t.datetime "created_at", :null => false
58
- t.datetime "updated_at", :null => false
59
- end
60
-
61
- create_table "request_environment_rules", :force => true do |t|
62
- t.integer "redirect_rule_id", :null => false
63
- t.string "environment_key_name", :null => false # Name of the enviornment key (e.g. "QUERY_STRING", "HTTP_HOST")
64
- t.string "environment_value", :null => false # What to match the value of the specified environment attribute against
65
- t.boolean "environment_value_is_regex", :default => false, :null => false # Is the value match a regex or not
66
- t.boolean "environment_value_is_case_sensitive", :default => true, :null => false # is the value regex case sensitive or not
67
- t.datetime "created_at", :null => false
68
- t.datetime "updated_at", :null => false
69
- end
60
+ ```ruby
61
+ create_table "redirect_rules", :force => true do |t|
62
+ t.string "source", :null => false # Matched against the request path
63
+ t.boolean "source_is_regex", :default => false, :null => false # Is the source a regular expression or not
64
+ t.boolean "source_is_case_sensitive", :default => false, :null => false # Is the source regex cas sensitive or not
65
+ t.string "destination", :null => false
66
+ t.boolean "active", :default => false # Should this rule be applied or not
67
+ t.datetime "created_at", :null => false
68
+ t.datetime "updated_at", :null => false
69
+ end
70
+
71
+ create_table "request_environment_rules", :force => true do |t|
72
+ t.integer "redirect_rule_id", :null => false
73
+ t.string "environment_key_name", :null => false # Name of the enviornment key (e.g. "QUERY_STRING", "HTTP_HOST")
74
+ t.string "environment_value", :null => false # What to match the value of the specified environment attribute against
75
+ t.boolean "environment_value_is_regex", :default => false, :null => false # Is the value match a regex or not
76
+ t.boolean "environment_value_is_case_sensitive", :default => true, :null => false # is the value regex case sensitive or not
77
+ t.datetime "created_at", :null => false
78
+ t.datetime "updated_at", :null => false
79
+ end
80
+ ```
70
81
 
71
82
  ## Databases supported
72
83
 
data/Rakefile CHANGED
@@ -17,6 +17,6 @@ require 'rspec/core'
17
17
  require 'rspec/core/rake_task'
18
18
 
19
19
  desc "Run all specs in spec directory (excluding plugin specs)"
20
- RSpec::Core::RakeTask.new(:spec)
20
+ RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
21
21
 
22
22
  task :default => :spec
@@ -3,6 +3,7 @@ module Redirector
3
3
  autoload :RegexAttribute, 'redirector/regex_attribute'
4
4
 
5
5
  mattr_accessor :include_query_in_source
6
+ mattr_accessor :preserve_query
6
7
  mattr_accessor :silence_sql_logs
7
8
 
8
9
  def self.active_record_protected_attributes?
@@ -8,6 +8,7 @@ module Redirector
8
8
 
9
9
  initializer "redirector.apply_options" do |app|
10
10
  Redirector.include_query_in_source = app.config.redirector.include_query_in_source || false
11
+ Redirector.preserve_query = app.config.redirector.preserve_query || false
11
12
  Redirector.silence_sql_logs = app.config.redirector.silence_sql_logs || false
12
13
  end
13
14
  end
@@ -83,6 +83,7 @@ module Redirector
83
83
  uri.scheme ||= 'http'
84
84
  uri.host ||= request_host
85
85
  uri.port ||= request_port if request_port.present?
86
+ uri.query ||= env['QUERY_STRING'] if Redirector.preserve_query
86
87
  end
87
88
  end
88
89
 
@@ -1,3 +1,3 @@
1
1
  module Redirector
2
- VERSION = "0.1.5"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -21,10 +21,13 @@ Gem::Specification.new do |s|
21
21
  # s.add_dependency "jquery-rails"
22
22
 
23
23
  s.add_development_dependency "mysql2"
24
+ s.add_development_dependency "pg"
24
25
  s.add_development_dependency 'rspec-rails'
25
26
  s.add_development_dependency 'shoulda-matchers'
26
27
  s.add_development_dependency 'capybara', '~> 2.2'
27
28
  s.add_development_dependency 'database_cleaner'
28
29
  s.add_development_dependency 'factory_girl_rails', '~> 1.7'
29
30
  s.add_development_dependency 'appraisal'
31
+ s.add_development_dependency 'rake'
32
+ s.add_development_dependency 'coveralls'
30
33
  end
@@ -0,0 +1,26 @@
1
+ mysql: &mysql
2
+ adapter: mysql2
3
+ username: travis
4
+ encoding: utf8
5
+ reconnect: false
6
+ password:
7
+ database: redirector_dummy_<%= Rails.env %>
8
+
9
+ postgresql: &postgresql
10
+ adapter: postgresql
11
+ username: postgres
12
+ password:
13
+ database: redirector_dummy_<%= Rails.env %>
14
+ encoding: unicode
15
+ min_messages: warning
16
+
17
+ defaults: &defaults
18
+ pool: 5
19
+ timeout: 5000
20
+ <<: *<%= ENV['DB'] || "mysql" %>
21
+
22
+ development:
23
+ <<: *defaults
24
+
25
+ test:
26
+ <<: *defaults
@@ -4,7 +4,7 @@ development:
4
4
  reconnect: false
5
5
  database: redirector_dummy_development
6
6
  pool: 5
7
- username: root
7
+ username: travis
8
8
  password:
9
9
 
10
10
  test:
@@ -13,5 +13,5 @@ test:
13
13
  reconnect: false
14
14
  database: redirector_dummy_test
15
15
  pool: 5
16
- username: root
16
+ username: travis
17
17
  password:
@@ -14,3 +14,241 @@ Migrating to CreateRequestEnvironmentRules (20120823163756)
14
14
   (9.5ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
15
15
   (0.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
16
16
   (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
17
+ Connecting to database specified by database.yml
18
+  (22.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
19
+  (14.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
20
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
21
+ Migrating to CreateRedirectRules (20120815212612)
22
+  (25.2ms) 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
23
+  (13.0ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
24
+  (15.3ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
25
+  (21.1ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
26
+  (14.2ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
27
+  (1.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612')
28
+ Migrating to CreateRequestEnvironmentRules (20120823163756)
29
+  (28.6ms) 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
30
+  (21.0ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
31
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
32
+  (0.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
33
+ Connecting to database specified by database.yml
34
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
35
+  (0.4ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
36
+  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
37
+  (26.1ms) 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
38
+  (11.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
39
+  (11.7ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
40
+  (12.8ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
41
+  (17.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
42
+  (10.5ms) 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
43
+  (10.7ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
44
+  (9.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
45
+  (14.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
46
+  (0.1ms) SELECT version FROM `schema_migrations`
47
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
48
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
49
+ Connecting to database specified by database.yml
50
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
51
+  (9.3ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
52
+  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
53
+  (21.1ms) 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
54
+  (16.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
55
+  (12.4ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
56
+  (18.3ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
57
+  (15.9ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
58
+  (7.5ms) 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
59
+  (10.9ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
60
+  (7.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
61
+  (16.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
62
+  (0.3ms) SELECT version FROM `schema_migrations`
63
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
64
+  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
65
+ Connecting to database specified by database.yml
66
+  (27.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
67
+  (45.2ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
68
+  (0.6ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
69
+  (28.6ms) 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
70
+  (12.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
71
+  (10.9ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
72
+  (11.7ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
73
+  (13.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
74
+  (10.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
75
+  (10.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
76
+  (6.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
77
+  (12.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
78
+  (0.2ms) SELECT version FROM `schema_migrations`
79
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
80
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
81
+ Connecting to database specified by database.yml
82
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
83
+  (6.1ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
84
+  (0.5ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
85
+  (19.3ms) 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
86
+  (9.5ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
87
+  (10.6ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
88
+  (11.3ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
89
+  (13.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
90
+  (7.2ms) 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
91
+  (9.4ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
92
+  (7.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
93
+  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
94
+  (0.1ms) SELECT version FROM `schema_migrations`
95
+  (0.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
96
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
97
+ Connecting to database specified by database.yml
98
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
99
+  (11.1ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
100
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
101
+  (7.3ms) 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
102
+  (9.7ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
103
+  (12.3ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
104
+  (11.4ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
105
+  (13.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
106
+  (7.1ms) 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
107
+  (10.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
108
+  (7.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
109
+  (11.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
110
+  (0.2ms) SELECT version FROM `schema_migrations`
111
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
112
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
113
+ Connecting to database specified by database.yml
114
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
115
+  (5.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
116
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
117
+  (10.3ms) 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
118
+  (11.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
119
+  (11.5ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
120
+  (13.7ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
121
+  (13.2ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
122
+  (8.3ms) 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
123
+  (10.0ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
124
+  (8.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
125
+  (12.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
126
+  (0.1ms) SELECT version FROM `schema_migrations`
127
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
128
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
129
+ Connecting to database specified by database.yml
130
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
131
+  (5.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
132
+  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
133
+  (8.2ms) 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
134
+  (9.6ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
135
+  (12.1ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
136
+  (12.3ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
137
+  (13.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
138
+  (8.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
139
+  (9.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
140
+  (7.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
141
+  (12.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
142
+  (0.1ms) SELECT version FROM `schema_migrations`
143
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
144
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
145
+ Connecting to database specified by database.yml
146
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
147
+  (5.5ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
148
+  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
149
+  (8.1ms) 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
150
+  (9.5ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
151
+  (11.5ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
152
+  (11.9ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
153
+  (13.4ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
154
+  (8.1ms) 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
155
+  (9.8ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
156
+  (8.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
157
+  (12.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
158
+  (0.1ms) SELECT version FROM `schema_migrations`
159
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
160
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
161
+ Connecting to database specified by database.yml
162
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
163
+  (7.8ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
164
+  (0.7ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
165
+  (10.3ms) 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
166
+  (13.2ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
167
+  (10.8ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
168
+  (15.1ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
169
+  (13.9ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
170
+  (7.5ms) 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
171
+  (9.8ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
172
+  (7.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
173
+  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
174
+  (0.1ms) SELECT version FROM `schema_migrations`
175
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
176
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
177
+ Connecting to database specified by database.yml
178
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
179
+  (11.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
180
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
181
+  (28.7ms) 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
182
+  (13.3ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
183
+  (14.9ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
184
+  (12.0ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
185
+  (13.0ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
186
+  (8.3ms) 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
187
+  (11.4ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
188
+  (8.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
189
+  (11.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
190
+  (0.1ms) SELECT version FROM `schema_migrations`
191
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
192
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
193
+ Connecting to database specified by database.yml
194
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
195
+  (6.1ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
196
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
197
+  (19.2ms) 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
198
+  (12.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
199
+  (11.3ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
200
+  (12.7ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
201
+  (14.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
202
+  (8.1ms) 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
203
+  (11.4ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
204
+  (8.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
205
+  (12.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
206
+  (0.1ms) SELECT version FROM `schema_migrations`
207
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
208
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
209
+ Connecting to database specified by database.yml
210
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
211
+  (5.8ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
212
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
213
+  (11.4ms) 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
214
+  (11.4ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
215
+  (11.4ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
216
+  (13.8ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
217
+  (13.0ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
218
+  (8.2ms) 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
219
+  (10.1ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
220
+  (7.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
221
+  (12.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
222
+  (0.1ms) SELECT version FROM `schema_migrations`
223
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
224
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
225
+ Connecting to database specified by database.yml
226
+  (5.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
227
+  (15.8ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
228
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
229
+  (28.5ms) CREATE TABLE `redirect_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `source` varchar(255) NOT NULL, `source_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `source_is_case_sensitive` tinyint(1) DEFAULT 0 NOT NULL, `destination` varchar(255) NOT NULL, `active` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
230
+  (11.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
231
+  (10.2ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
232
+  (10.7ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
233
+  (12.9ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
234
+  (8.6ms) 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
235
+  (9.3ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
236
+  (7.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
237
+  (18.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
238
+  (0.1ms) SELECT version FROM `schema_migrations`
239
+  (12.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
240
+  (5.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
241
+  (29.4ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
242
+  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
243
+  (26.2ms) 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
244
+  (11.2ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
245
+  (11.5ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
246
+  (12.6ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
247
+  (15.2ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
248
+  (8.2ms) 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
249
+  (10.7ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
250
+  (30.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
251
+  (11.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
252
+  (0.2ms) SELECT version FROM `schema_migrations`
253
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
254
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')