redirector 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0f15dfda43fc2aca7842ce155f26e89540c0c73
4
- data.tar.gz: 60c672f1ea4dbb80698c48f0bad481283c7a6c21
3
+ metadata.gz: ad42ef21589444516bcf0d1b6d381d2c1db2e560
4
+ data.tar.gz: 127e4f057f0d017d22dde3aaab39cf5fd574870b
5
5
  SHA512:
6
- metadata.gz: e4074d9a79f4b315414f56a3c5e3145b4fee937660eccf80c58a8b41fb53345e55e680421829961e6a9a02c2f60e14b790cb2d858399405767559ac77f9b6504
7
- data.tar.gz: 5c53aed713b37d8d887413daa56f9896a39b44302a48ee9b65532f5ad66f8a0a79467f0bb771818e1ac50c28bf667ff564f06e3dadaeb96e486bdb8f4edafc21
6
+ metadata.gz: 3b48d0cb2e7fe015b01d3e4fd8932ad56c72c5e91bd759f5baa4aa956476f1b92caecd595f19fe8dbe1575e5c76c30ac926a8f41a5b2507a004ba72d42fcfbf8
7
+ data.tar.gz: d0ce4195ebbd8ffaa7859fa52518094d82a0858e523f8a8115a6015d79382e9b40c80adfe5f60aba5cd679bf74e696e461db2866d0fdf07249dbcd57b2e0fd40
data/README.md CHANGED
@@ -26,6 +26,8 @@ Redirector is a Rails engine that adds a piece of middleware to the top of your
26
26
 
27
27
  `preserve_query`: Pass the query string parameters through from the source to the target URL.
28
28
 
29
+ `ignored_patterns`: Lets you define an array of regex patterns which will be ignored when searching for redirect records. ie: `[/^\/assets\/.+/]` will bypass a database lookup for any path that starts with `/assets/`. This can be useful in preventing numerous unnecessary lookups.
30
+
29
31
  You can set these inside your configuration in `config/application.rb` of your Rails application like so:
30
32
 
31
33
  ```ruby
@@ -35,6 +37,7 @@ module MyApplication
35
37
 
36
38
  config.redirector.include_query_in_source = true
37
39
  config.redirector.silence_sql_logs = true
40
+ config.redirector.ignored_patterns = [/^\/assets\/.+/]
38
41
  end
39
42
  end
40
43
  ```
@@ -105,3 +108,11 @@ If you require support for another database, the only thing that needs to be add
105
108
  ## Copyright
106
109
 
107
110
  Copyright (c) 2012 Brian Landau (Viget). See MIT_LICENSE for further details.
111
+
112
+ ***
113
+
114
+ <a href="http://code.viget.com">
115
+ <img src="http://code.viget.com/github-banner.png" alt="Code At Viget">
116
+ </a>
117
+
118
+ Visit [code.viget.com](http://code.viget.com) to see more projects from [Viget.](https://viget.com)
@@ -16,6 +16,8 @@ class RedirectRule < ActiveRecord::Base
16
16
  validates :source, :destination, :presence => true
17
17
  validates :active, :inclusion => { :in => ['0', '1', true, false] }
18
18
 
19
+ before_save :strip_source_whitespace
20
+
19
21
  def self.regex_expression
20
22
  if connection_mysql?
21
23
  '(redirect_rules.source_is_case_sensitive = :true AND :source REGEXP BINARY redirect_rules.source) OR '+
@@ -72,4 +74,8 @@ class RedirectRule < ActiveRecord::Base
72
74
  connection.adapter_name.downcase.include?('mysql')
73
75
  end
74
76
 
77
+ def strip_source_whitespace
78
+ self.source = self.source.strip
79
+ end
80
+
75
81
  end
data/lib/redirector.rb CHANGED
@@ -5,6 +5,7 @@ module Redirector
5
5
  mattr_accessor :include_query_in_source
6
6
  mattr_accessor :preserve_query
7
7
  mattr_accessor :silence_sql_logs
8
+ mattr_accessor :ignored_patterns
8
9
 
9
10
  def self.active_record_protected_attributes?
10
11
  @active_record_protected_attributes ||= Rails.version.to_i < 4 || defined?(ProtectedAttributes)
@@ -10,6 +10,7 @@ module Redirector
10
10
  Redirector.include_query_in_source = app.config.redirector.include_query_in_source || false
11
11
  Redirector.preserve_query = app.config.redirector.preserve_query || false
12
12
  Redirector.silence_sql_logs = app.config.redirector.silence_sql_logs || false
13
+ Redirector.ignored_patterns = app.config.redirector.ignored_patterns || []
13
14
  end
14
15
  end
15
16
  end
@@ -29,7 +29,7 @@ module Redirector
29
29
  private
30
30
 
31
31
  def redirect?
32
- matched_destination.present?
32
+ !ignore_path? && matched_destination.present?
33
33
  end
34
34
 
35
35
  def matched_destination
@@ -46,8 +46,14 @@ module Redirector
46
46
  end
47
47
  end
48
48
 
49
+ def ignore_path?
50
+ Redirector.ignored_patterns.any? do |pattern|
51
+ request_path.match pattern
52
+ end
53
+ end
54
+
49
55
  def request_path
50
- if Redirector.include_query_in_source
56
+ @request_path ||= if Redirector.include_query_in_source
51
57
  env['ORIGINAL_FULLPATH']
52
58
  else
53
59
  env['PATH_INFO']
@@ -1,3 +1,3 @@
1
1
  module Redirector
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -5,7 +5,7 @@ development:
5
5
  database: redirector_dummy_development
6
6
  pool: 5
7
7
  username: root
8
- password:
8
+ password: eli
9
9
 
10
10
  test:
11
11
  adapter: mysql2
@@ -14,4 +14,4 @@ test:
14
14
  database: redirector_dummy_test
15
15
  pool: 5
16
16
  username: root
17
- password:
17
+ password: eli
@@ -1,489 +1,5 @@
1
1
  Connecting to database specified by database.yml
2
-  (8.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
3
-  (11.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
4
-  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
2
+  (1.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
5
3
  Migrating to CreateRedirectRules (20120815212612)
6
-  (8.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
7
-  (10.7ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
8
-  (11.6ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
9
-  (12.9ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
10
-  (13.1ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
11
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612')
12
4
  Migrating to CreateRequestEnvironmentRules (20120823163756)
13
-  (7.7ms) 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
14
-  (9.5ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
15
-  (0.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
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')
255
- Connecting to database specified by database.yml
256
-  (24.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
257
-  (38.4ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
258
-  (1.5ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
259
-  (26.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
260
-  (11.2ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
261
-  (8.7ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
262
-  (8.5ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
263
-  (9.3ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
264
-  (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
265
-  (8.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
266
-  (8.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
267
-  (12.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
268
-  (0.1ms) SELECT version FROM `schema_migrations`
269
-  (0.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
270
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
271
-  (22.0ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
272
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
273
-  (27.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
274
-  (10.8ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
275
-  (11.0ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
276
-  (8.0ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
277
-  (9.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
278
-  (7.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
279
-  (8.7ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
280
-  (29.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
281
-  (10.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
282
-  (0.3ms) SELECT version FROM `schema_migrations`
283
-  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
284
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
285
-  (28.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
286
-  (0.5ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
287
-  (23.5ms) CREATE TABLE `redirect_rules` (`id` int(11) 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
288
-  (9.3ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
289
-  (9.3ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
290
-  (8.9ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
291
-  (8.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
292
-  (7.4ms) CREATE TABLE `request_environment_rules` (`id` int(11) 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
293
-  (8.4ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
294
-  (26.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
295
-  (12.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
296
-  (0.2ms) SELECT version FROM `schema_migrations`
297
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
298
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
299
-  (28.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
300
-  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
301
-  (21.6ms) CREATE TABLE `redirect_rules` (`id` int(11) 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
302
-  (8.7ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
303
-  (9.4ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
304
-  (10.7ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
305
-  (9.3ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
306
-  (8.0ms) CREATE TABLE `request_environment_rules` (`id` int(11) 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
307
-  (9.2ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
308
-  (25.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
309
-  (11.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
310
-  (0.2ms) SELECT version FROM `schema_migrations`
311
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
312
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
313
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
314
-  (5.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
315
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
316
-  (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
317
-  (9.2ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
318
-  (8.2ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
319
-  (9.0ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
320
-  (12.2ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
321
-  (7.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
322
-  (8.2ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
323
-  (7.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
324
-  (11.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
325
-  (0.1ms) SELECT version FROM `schema_migrations`
326
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
327
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
328
-  (11.5ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
329
-  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
330
-  (21.7ms) CREATE TABLE `redirect_rules` (`id` int(11) 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
331
-  (9.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
332
-  (14.3ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
333
-  (9.0ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
334
-  (8.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
335
-  (7.9ms) CREATE TABLE `request_environment_rules` (`id` int(11) 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
336
-  (8.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
337
-  (7.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
338
-  (11.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
339
-  (0.2ms) SELECT version FROM `schema_migrations`
340
-  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
341
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
342
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
343
-  (28.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
344
-  (1.1ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
345
-  (24.0ms) 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
346
-  (9.3ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
347
-  (9.2ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
348
-  (8.5ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
349
-  (8.8ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
350
-  (7.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
351
-  (8.3ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
352
-  (7.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
353
-  (12.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
354
-  (0.1ms) SELECT version FROM `schema_migrations`
355
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
356
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
357
-  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
358
-  (5.3ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
359
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
360
-  (10.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
361
-  (8.8ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
362
-  (8.9ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
363
-  (9.4ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
364
-  (8.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
365
-  (7.8ms) 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
366
-  (9.4ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
367
-  (7.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
368
-  (11.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
369
-  (0.1ms) SELECT version FROM `schema_migrations`
370
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
371
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
372
-  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
373
-  (5.1ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
374
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
375
-  (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
376
-  (8.7ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
377
-  (10.1ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
378
-  (9.8ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
379
-  (8.1ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
380
-  (7.9ms) CREATE TABLE `request_environment_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `redirect_rule_id` int(11) NOT NULL, `environment_key_name` varchar(255) NOT NULL, `environment_value` varchar(255) NOT NULL, `environment_value_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `environment_value_is_case_sensitive` tinyint(1) DEFAULT 1 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
381
-  (13.1ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
382
-  (6.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
383
-  (10.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
384
-  (0.2ms) SELECT version FROM `schema_migrations`
385
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
386
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
387
- Connecting to database specified by database.yml
388
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
389
-  (9.6ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
390
-  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
391
-  (25.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
392
-  (13.4ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
393
-  (9.5ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
394
-  (13.4ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
395
-  (12.4ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
396
-  (7.9ms) CREATE TABLE `request_environment_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `redirect_rule_id` int(11) NOT NULL, `environment_key_name` varchar(255) NOT NULL, `environment_value` varchar(255) NOT NULL, `environment_value_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `environment_value_is_case_sensitive` tinyint(1) DEFAULT 1 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
397
-  (10.1ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
398
-  (7.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
399
-  (10.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
400
-  (0.1ms) SELECT version FROM `schema_migrations`
401
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
402
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
403
-  (76.3ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
404
-  (5.5ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
405
-  (56.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
406
-  (48.1ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
407
-  (46.9ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
408
-  (46.9ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
409
-  (47.0ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
410
-  (49.7ms) 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
411
-  (46.2ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
412
-  (50.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
413
-  (79.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
414
-  (0.3ms) SELECT version FROM `schema_migrations`
415
-  (5.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
416
-  (5.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
417
-  (16.5ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
418
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
419
-  (25.5ms) CREATE TABLE `redirect_rules` (`id` int(11) 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
420
-  (8.7ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
421
-  (9.9ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
422
-  (7.6ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
423
-  (8.9ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
424
-  (7.4ms) CREATE TABLE `request_environment_rules` (`id` int(11) 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
425
-  (9.0ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
426
-  (7.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
427
-  (11.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
428
-  (0.2ms) SELECT version FROM `schema_migrations`
429
-  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
430
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
431
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
432
-  (4.8ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
433
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
434
-  (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
435
-  (7.3ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
436
-  (8.3ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
437
-  (9.3ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
438
-  (8.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
439
-  (6.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
440
-  (7.7ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
441
-  (7.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
442
-  (11.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
443
-  (0.1ms) SELECT version FROM `schema_migrations`
444
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
445
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
446
- Connecting to database specified by database.yml
447
-  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
448
-  (5.7ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
449
-  (0.6ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
450
-  (18.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
451
-  (11.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
452
-  (8.8ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
453
-  (8.5ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
454
-  (8.5ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
455
-  (7.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
456
-  (8.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
457
-  (7.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
458
-  (11.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
459
-  (0.1ms) SELECT version FROM `schema_migrations`
460
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
461
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
462
-  (5.7ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
463
-  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
464
-  (20.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
465
-  (10.1ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
466
-  (9.9ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
467
-  (9.4ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
468
-  (8.7ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
469
-  (6.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
470
-  (8.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
471
-  (6.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
472
-  (10.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
473
-  (0.2ms) SELECT version FROM `schema_migrations`
474
-  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
475
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
476
-  (5.8ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
477
-  (0.3ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
478
-  (36.3ms) CREATE TABLE `redirect_rules` (`id` int(11) 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
479
-  (9.0ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
480
-  (9.2ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) 
481
-  (9.8ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
482
-  (8.3ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) 
483
-  (7.3ms) CREATE TABLE `request_environment_rules` (`id` int(11) 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
484
-  (8.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) 
485
-  (7.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
486
-  (11.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
487
-  (0.2ms) SELECT version FROM `schema_migrations`
488
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
489
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
5
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`