redirector 0.1.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY +10 -0
- data/README.md +39 -28
- data/Rakefile +1 -1
- data/lib/redirector.rb +1 -0
- data/lib/redirector/engine.rb +1 -0
- data/lib/redirector/middleware.rb +1 -0
- data/lib/redirector/version.rb +1 -1
- data/redirector.gemspec +3 -0
- data/spec/dummy/config/database.travis.yml +26 -0
- data/spec/dummy/config/database.yml.example +2 -2
- data/spec/dummy/log/development.log +238 -0
- data/spec/dummy/log/test.log +15116 -0
- data/spec/features/middleware_spec.rb +19 -1
- data/spec/spec_helper.rb +3 -0
- metadata +46 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d4890e47ab811b654b55b9858d2ecb1f26cbcc3
|
4
|
+
data.tar.gz: 1ec2d840fb1e1d8d91c1d18be77d039f5a47a928
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
31
|
+
```ruby
|
32
|
+
module MyApplication
|
33
|
+
class Application < Rails::Application
|
34
|
+
# ...
|
27
35
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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
data/lib/redirector.rb
CHANGED
data/lib/redirector/engine.rb
CHANGED
@@ -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
|
data/lib/redirector/version.rb
CHANGED
data/redirector.gemspec
CHANGED
@@ -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:
|
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:
|
16
|
+
username: travis
|
17
17
|
password:
|
@@ -14,3 +14,241 @@ Migrating to CreateRequestEnvironmentRules (20120823163756)
|
|
14
14
|
[1m[36m (9.5ms)[0m [1mCREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)[0m
|
15
15
|
[1m[35m (0.9ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
|
16
16
|
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
[1m[36m (22.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
19
|
+
[1m[35m (14.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
20
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
21
|
+
Migrating to CreateRedirectRules (20120815212612)
|
22
|
+
[1m[35m (25.2ms)[0m 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
|
+
[1m[36m (13.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)[0m
|
24
|
+
[1m[35m (15.3ms)[0m CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
|
25
|
+
[1m[36m (21.1ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)[0m
|
26
|
+
[1m[35m (14.2ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
|
27
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612')[0m
|
28
|
+
Migrating to CreateRequestEnvironmentRules (20120823163756)
|
29
|
+
[1m[35m (28.6ms)[0m 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
|
+
[1m[36m (21.0ms)[0m [1mCREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)[0m
|
31
|
+
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')
|
32
|
+
[1m[36m (0.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
33
|
+
Connecting to database specified by database.yml
|
34
|
+
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
35
|
+
[1m[35m (0.4ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
36
|
+
[1m[36m (0.4ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
37
|
+
[1m[35m (26.1ms)[0m 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
|
+
[1m[36m (11.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
39
|
+
[1m[35m (11.7ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
40
|
+
[1m[36m (12.8ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
41
|
+
[1m[35m (17.8ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
42
|
+
[1m[36m (10.5ms)[0m [1mCREATE 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[0m
|
43
|
+
[1m[35m (10.7ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
44
|
+
[1m[36m (9.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
45
|
+
[1m[35m (14.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
46
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
47
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
48
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
49
|
+
Connecting to database specified by database.yml
|
50
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
51
|
+
[1m[35m (9.3ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
52
|
+
[1m[36m (0.4ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
53
|
+
[1m[35m (21.1ms)[0m 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
|
+
[1m[36m (16.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
55
|
+
[1m[35m (12.4ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
56
|
+
[1m[36m (18.3ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
57
|
+
[1m[35m (15.9ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
58
|
+
[1m[36m (7.5ms)[0m [1mCREATE 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[0m
|
59
|
+
[1m[35m (10.9ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
60
|
+
[1m[36m (7.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
61
|
+
[1m[35m (16.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
62
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
63
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
64
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
65
|
+
Connecting to database specified by database.yml
|
66
|
+
[1m[36m (27.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
67
|
+
[1m[35m (45.2ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
68
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
69
|
+
[1m[35m (28.6ms)[0m 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
|
+
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
71
|
+
[1m[35m (10.9ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
72
|
+
[1m[36m (11.7ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
73
|
+
[1m[35m (13.8ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
74
|
+
[1m[36m (10.4ms)[0m [1mCREATE 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[0m
|
75
|
+
[1m[35m (10.6ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
76
|
+
[1m[36m (6.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
77
|
+
[1m[35m (12.8ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
78
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
79
|
+
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
80
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
81
|
+
Connecting to database specified by database.yml
|
82
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
83
|
+
[1m[35m (6.1ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
84
|
+
[1m[36m (0.5ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
85
|
+
[1m[35m (19.3ms)[0m 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
|
+
[1m[36m (9.5ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
87
|
+
[1m[35m (10.6ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
88
|
+
[1m[36m (11.3ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
89
|
+
[1m[35m (13.6ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
90
|
+
[1m[36m (7.2ms)[0m [1mCREATE 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[0m
|
91
|
+
[1m[35m (9.4ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
92
|
+
[1m[36m (7.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
93
|
+
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
94
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
95
|
+
[1m[35m (0.9ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
96
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
97
|
+
Connecting to database specified by database.yml
|
98
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
99
|
+
[1m[35m (11.1ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
100
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
101
|
+
[1m[35m (7.3ms)[0m 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
|
+
[1m[36m (9.7ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
103
|
+
[1m[35m (12.3ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
104
|
+
[1m[36m (11.4ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
105
|
+
[1m[35m (13.6ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
106
|
+
[1m[36m (7.1ms)[0m [1mCREATE 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[0m
|
107
|
+
[1m[35m (10.6ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
108
|
+
[1m[36m (7.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
109
|
+
[1m[35m (11.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
110
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
111
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
112
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
113
|
+
Connecting to database specified by database.yml
|
114
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
115
|
+
[1m[35m (5.6ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
116
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
117
|
+
[1m[35m (10.3ms)[0m 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
|
+
[1m[36m (11.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
119
|
+
[1m[35m (11.5ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
120
|
+
[1m[36m (13.7ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
121
|
+
[1m[35m (13.2ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
122
|
+
[1m[36m (8.3ms)[0m [1mCREATE 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[0m
|
123
|
+
[1m[35m (10.0ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
124
|
+
[1m[36m (8.6ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
125
|
+
[1m[35m (12.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
126
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
127
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
128
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
129
|
+
Connecting to database specified by database.yml
|
130
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
131
|
+
[1m[35m (5.6ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
132
|
+
[1m[36m (0.4ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
133
|
+
[1m[35m (8.2ms)[0m 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
|
+
[1m[36m (9.6ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
135
|
+
[1m[35m (12.1ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
136
|
+
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
137
|
+
[1m[35m (13.8ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
138
|
+
[1m[36m (8.4ms)[0m [1mCREATE 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[0m
|
139
|
+
[1m[35m (9.6ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
140
|
+
[1m[36m (7.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
141
|
+
[1m[35m (12.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
142
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
143
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
144
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
145
|
+
Connecting to database specified by database.yml
|
146
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
147
|
+
[1m[35m (5.5ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
148
|
+
[1m[36m (0.4ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
149
|
+
[1m[35m (8.1ms)[0m 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
|
+
[1m[36m (9.5ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
151
|
+
[1m[35m (11.5ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
152
|
+
[1m[36m (11.9ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
153
|
+
[1m[35m (13.4ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
154
|
+
[1m[36m (8.1ms)[0m [1mCREATE 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[0m
|
155
|
+
[1m[35m (9.8ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
156
|
+
[1m[36m (8.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
157
|
+
[1m[35m (12.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
158
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
159
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
160
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
161
|
+
Connecting to database specified by database.yml
|
162
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
163
|
+
[1m[35m (7.8ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
164
|
+
[1m[36m (0.7ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
165
|
+
[1m[35m (10.3ms)[0m 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
|
+
[1m[36m (13.2ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
167
|
+
[1m[35m (10.8ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
168
|
+
[1m[36m (15.1ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
169
|
+
[1m[35m (13.9ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
170
|
+
[1m[36m (7.5ms)[0m [1mCREATE 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[0m
|
171
|
+
[1m[35m (9.8ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
172
|
+
[1m[36m (7.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
173
|
+
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
174
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
175
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
176
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
177
|
+
Connecting to database specified by database.yml
|
178
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
179
|
+
[1m[35m (11.6ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
180
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
181
|
+
[1m[35m (28.7ms)[0m 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
|
+
[1m[36m (13.3ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
183
|
+
[1m[35m (14.9ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
184
|
+
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
185
|
+
[1m[35m (13.0ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
186
|
+
[1m[36m (8.3ms)[0m [1mCREATE 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[0m
|
187
|
+
[1m[35m (11.4ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
188
|
+
[1m[36m (8.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
189
|
+
[1m[35m (11.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
190
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
191
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
192
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
193
|
+
Connecting to database specified by database.yml
|
194
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
195
|
+
[1m[35m (6.1ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
196
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
197
|
+
[1m[35m (19.2ms)[0m 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
|
+
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
199
|
+
[1m[35m (11.3ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
200
|
+
[1m[36m (12.7ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
201
|
+
[1m[35m (14.6ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
202
|
+
[1m[36m (8.1ms)[0m [1mCREATE 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[0m
|
203
|
+
[1m[35m (11.4ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
204
|
+
[1m[36m (8.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
205
|
+
[1m[35m (12.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
206
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
207
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
208
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
209
|
+
Connecting to database specified by database.yml
|
210
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
211
|
+
[1m[35m (5.8ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
212
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
213
|
+
[1m[35m (11.4ms)[0m 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
|
+
[1m[36m (11.4ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
215
|
+
[1m[35m (11.4ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
216
|
+
[1m[36m (13.8ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
217
|
+
[1m[35m (13.0ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
218
|
+
[1m[36m (8.2ms)[0m [1mCREATE 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[0m
|
219
|
+
[1m[35m (10.1ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
220
|
+
[1m[36m (7.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
221
|
+
[1m[35m (12.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
222
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
223
|
+
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
224
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
225
|
+
Connecting to database specified by database.yml
|
226
|
+
[1m[36m (5.9ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
227
|
+
[1m[35m (15.8ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
228
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
229
|
+
[1m[35m (28.5ms)[0m 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
|
+
[1m[36m (11.0ms)[0m [1mCREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)[0m
|
231
|
+
[1m[35m (10.2ms)[0m CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)
|
232
|
+
[1m[36m (10.7ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)[0m
|
233
|
+
[1m[35m (12.9ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)
|
234
|
+
[1m[36m (8.6ms)[0m [1mCREATE 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[0m
|
235
|
+
[1m[35m (9.3ms)[0m CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)
|
236
|
+
[1m[36m (7.6ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
237
|
+
[1m[35m (18.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
238
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
239
|
+
[1m[35m (12.1ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
|
240
|
+
[1m[36m (5.1ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120815212612')[0m
|
241
|
+
[1m[36m (29.4ms)[0m [1mDROP DATABASE IF EXISTS `redirector_dummy_test`[0m
|
242
|
+
[1m[35m (0.3ms)[0m CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
|
243
|
+
[1m[36m (26.2ms)[0m [1mCREATE 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[0m
|
244
|
+
[1m[35m (11.2ms)[0m CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)
|
245
|
+
[1m[36m (11.5ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`) [0m
|
246
|
+
[1m[35m (12.6ms)[0m CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)
|
247
|
+
[1m[36m (15.2ms)[0m [1mCREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`) [0m
|
248
|
+
[1m[35m (8.2ms)[0m 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
|
+
[1m[36m (10.7ms)[0m [1mCREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`) [0m
|
250
|
+
[1m[35m (30.8ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
251
|
+
[1m[36m (11.8ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) [0m
|
252
|
+
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
253
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120823163756')[0m
|
254
|
+
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
|