Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (253.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (12.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (23.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (28.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:18:56')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:18:56', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:18:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:18:56', '/news/5', '/my_custom_url', 0, '2012-08-23 20:18:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:18:57 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (1.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.5ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (16.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:19:42', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:19:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:19:42', '/news/5', '/my_custom_url', 0, '2012-08-23 20:19:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:19:42 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (0.9ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:00', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:00')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:20:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:01', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:20:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:01', '/news/5', '/my_custom_url', 0, '2012-08-23 20:20:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:20:01 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.5ms) TRUNCATE TABLE `redirect_rules`;  (1.2ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:06', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:20:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:06', '/news/5', '/my_custom_url', 0, '2012-08-23 20:20:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:20:06 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (1.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:24', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:20:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:25', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:20:25')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:25', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:25', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:25', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:20:25')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:20:25', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:20:25', '/news/5', '/my_custom_url', 0, '2012-08-23 20:20:25')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:20:25 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.0ms) TRUNCATE TABLE `redirect_rules`;  (1.2ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (15.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:21:06', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:21:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:21:06', '/news/5', '/my_custom_url', 0, '2012-08-23 20:21:06')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:21:06 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (1.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (16.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:40', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', '/news/5', '/my_custom_url', 0, '2012-08-23 20:22:40')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', '/news/$1', '/my_custom_url/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:22:40 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.2ms) TRUNCATE TABLE `redirect_rules`;  (1.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', '/news/5', '/my_custom_url', 0, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:40', '/news/$1', '/my_custom_url/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url/20') OR (source_is_regex = 1 AND '/my_custom_url/20' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/2') OR (source_is_regex = 1 AND '/news/2' REGEXP redirect_rules.source = 1))) Started GET "/news/2" for 127.0.0.1 at 2012-08-23 14:22:40 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"2"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (22.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/news/$1', '[A-Za-z1-9_]+shiny\\/([A-Za-z1-9_]+)', 1, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:22:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:22:56', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', '/news/5', '/my_custom_url', 0, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:56', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 1, '2012-08-23 20:22:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:22:57 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:57', '/news/5', '/my_custom_url', 0, '2012-08-23 20:22:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:22:57', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 1, '2012-08-23 20:22:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url/20') OR (source_is_regex = 1 AND '/my_custom_url/20' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/20') OR (source_is_regex = 1 AND '/news/20' REGEXP redirect_rules.source = 1))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 14:22:57 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.0ms) TRUNCATE TABLE `redirect_rules`;  (1.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:11', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:11')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 15  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 16, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 16  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 17, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 17  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 18, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'something=value', 1, 18, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 18  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 19, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'something=value', 1, 19, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 20, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'something=value', 1, 20, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 21, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'another=value', 1, 21, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 22, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'something=value', 1, 22, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 23, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'another=value', 1, 23, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22 RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 24, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'something=value', 1, 24, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 25, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'another=value', 1, 25, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 35, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 36, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 37, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 38, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 39, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 40, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 41, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 42, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 43, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 44, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 45, '2012-08-23 20:23:12')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 46, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'SERVER_NAME', 'example.com', 0, 48, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', 'http://www.example.com/products/1', '/catchy_thingy', 0, '2012-08-23 20:23:12')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 20:23:12', 'QUERY_STRING', 'something=value', 1, 49, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', '/news/5', '/my_custom_url', 0, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 1, '2012-08-23 20:23:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 50 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:23:12 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (0.9ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.2ms) TRUNCATE TABLE `redirect_rules`;  (1.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', '/news/5', '/my_custom_url', 0, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 20:23:12', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 1, '2012-08-23 20:23:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url/20') OR (source_is_regex = 1 AND '/my_custom_url/20' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/20') OR (source_is_regex = 1 AND '/news/20' REGEXP redirect_rules.source = 1))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 14:23:12 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (1.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (33.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'schema_migrations' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateRedirectRules (20120815212612)  (0.1ms) BEGIN  (5.0ms) CREATE TABLE "redirect_rules" ("id" serial primary key, "source" character varying(255) NOT NULL, "source_is_regex" boolean DEFAULT 'f' NOT NULL, "destination" character varying(255) NOT NULL, "active" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'redirect_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname   (1.4ms) CREATE INDEX "index_redirect_rules_on_source" ON "redirect_rules" ("source")  (1.2ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'redirect_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname  Columns for index index_redirect_rules_on_source on redirect_rules (0.5ms) SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78851 AND a.attnum IN (2)  (1.3ms) CREATE INDEX "index_redirect_rules_on_active" ON "redirect_rules" ("active")  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120815212612')  (1.3ms) COMMIT Migrating to CreateRequestEnvironmentRules (20120823163756)  (0.2ms) BEGIN  (4.6ms) CREATE TABLE "request_environment_rules" ("id" serial primary key, "redirect_rule_id" integer NOT NULL, "environment_key_name" character varying(255) NOT NULL, "environment_value" character varying(255) NOT NULL, "environment_value_is_regex" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'request_environment_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname  (1.3ms) CREATE INDEX "index_request_environment_rules_on_redirect_rule_id" ON "request_environment_rules" ("redirect_rule_id")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120823163756')  (0.6ms) COMMIT  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" PK and serial sequence (3.8ms)  SELECT attr.attname, seq.relname FROM pg_class seq, pg_attribute attr, pg_depend dep, pg_namespace name, pg_constraint cons WHERE seq.oid = dep.objid AND seq.relkind = 'S' AND attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid AND attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] AND cons.contype = 'p' AND dep.refobjid = '"redirect_rules"'::regclass   (3.6ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'redirect_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname Columns for index index_redirect_rules_on_active on redirect_rules (0.4ms)  SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78851 AND a.attnum IN (5)  Columns for index index_redirect_rules_on_source on redirect_rules (0.2ms) SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78851 AND a.attnum IN (2) PK and serial sequence (2.1ms)  SELECT attr.attname, seq.relname FROM pg_class seq, pg_attribute attr, pg_depend dep, pg_namespace name, pg_constraint cons WHERE seq.oid = dep.objid AND seq.relkind = 'S' AND attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid AND attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] AND cons.contype = 'p' AND dep.refobjid = '"request_environment_rules"'::regclass   (1.2ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'request_environment_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname Columns for index index_request_environment_rules_on_redirect_rule_id on request_environment_rules (0.3ms)  SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78866 AND a.attnum IN (2)  Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (19.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.1ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/someplace') OR (source_is_regex = 't' AND '/someplace' ~ redirect_rules.source)))  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.9ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 15  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 16], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 16  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 17], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 17  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 18], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 18], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 18  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 19], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 19], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 19  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 20], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 20], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 21], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 21], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 20  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 22], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 22], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 23], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 23], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.2ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 22 RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 23  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 24], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 24], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 25], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 25], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 24 RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 25  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/new_shiny/from_company') OR (source_is_regex = 't' AND '/new_shiny/from_company' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 27  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/catchy_thingy') OR (source_is_regex = 't' AND '/catchy_thingy' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 28  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/someplace') OR (source_is_regex = 't' AND '/someplace' ~ redirect_rules.source)))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 35], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 36], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 37], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 38], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 39], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 40], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 41], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 42], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 43], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 44], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 45], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 46], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_regex", false], ["redirect_rule_id", 48], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_regex", true], ["redirect_rule_id", 49], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/my_custom_url') OR (source_is_regex = 't' AND '/my_custom_url' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 50 RedirectRule Load (0.3ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/news/5') OR (source_is_regex = 't' AND '/news/5' ~ redirect_rules.source))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 14:40:21 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (0.3ms) select current_database()  (1.5ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (24.6ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 20:40:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/my_custom_url/20') OR (source_is_regex = 't' AND '/my_custom_url/20' ~ redirect_rules.source))) RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 2 RedirectRule Load (0.4ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (active = 't' AND ((source_is_regex = 'f' AND source = '/news/20') OR (source_is_regex = 't' AND '/news/20' ~ redirect_rules.source))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 14:40:21 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL Connecting to database specified by database.yml  (350.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (375.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateRedirectRules (20120815212612)  (164.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  (160.4ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)  (191.7ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612') Migrating to CreateRequestEnvironmentRules (20120823163756)  (236.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  (493.3ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (19.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 19  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:34', 'SERVER_NAME', 'example.com', 1, 0, 20, '2012-08-23 21:54:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:34', 'SERVER_NAME', 'example.com', 1, 0, 21, '2012-08-23 21:54:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 21  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:34', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:34')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:34', 'SERVER_NAME', 'example.com', 1, 0, 22, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:34', 'QUERY_STRING', 'something=value', 1, 1, 22, '2012-08-23 21:54:34')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 23, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'something=value', 1, 1, 23, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 24, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'something=value', 1, 1, 24, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 25, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'another=value', 1, 1, 25, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 26, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'something=value', 1, 1, 26, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 27, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'another=value', 1, 1, 27, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 28, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'something=value', 1, 1, 28, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'another=value', 1, 1, 29, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/new_shiny/from_company') OR (source_is_regex = 1 AND '/new_shiny/from_company' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/catchy_thingy') OR (source_is_regex = 1 AND '/catchy_thingy' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/someplace') OR (source_is_regex = 1 AND '/someplace' REGEXP redirect_rules.source = 1)))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 39, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 40, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 41, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 42, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 43, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 44, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 45, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 46, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 47, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (13.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (13.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-23 21:54:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'something=value', 1, 1, 57, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:54:35', 'QUERY_STRING', 'something=value', 0, 1, 58, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url') OR (source_is_regex = 1 AND '/my_custom_url' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 59 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/5') OR (source_is_regex = 1 AND '/news/5' REGEXP redirect_rules.source = 1))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 15:54:35 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 18ms (Views: 17.7ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.5ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (22.3ms) TRUNCATE TABLE `redirect_rules`;  (10.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:54:35', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:54:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/my_custom_url/20') OR (source_is_regex = 1 AND '/my_custom_url/20' REGEXP redirect_rules.source = 1))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (active = 1 AND ((source_is_regex = 0 AND source = '/news/20') OR (source_is_regex = 1 AND '/news/20' REGEXP redirect_rules.source = 1))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 15:54:35 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (2.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 21, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 21  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 22, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 23, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 1, 1, 23, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 23  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 24, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 1, 1, 24, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 24  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 25, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 1, 1, 25, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 26, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'another=value', 1, 1, 26, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 25  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 27, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 1, 1, 27, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 28, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'another=value', 1, 1, 28, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 27 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 1, 1, 29, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'another=value', 1, 1, 30, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 40, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 41, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 42, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 43, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 44, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 45, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 46, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 47, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 1, 1, 59, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 21:59:32', 'QUERY_STRING', 'something=value', 0, 1, 60, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:59:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 61 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 15:59:32 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (1.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 21:59:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 21:59:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 21:59:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 15:59:32 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.2ms) TRUNCATE TABLE `redirect_rules`;  (1.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:52', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-23 22:04:52')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-23 22:04:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:52', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-23 22:04:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:04:53', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 16:04:53 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.7ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (1.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:04:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:04:53', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:04:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 16:04:53 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (1.2ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (2.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.8ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:14', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:14', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-23 22:08:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:15', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:08:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:08:15', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-23 22:08:15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:15', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:08:15')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:15', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:15')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 16:08:15 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.2ms) TRUNCATE TABLE `redirect_rules`;  (1.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:15', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:08:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:08:15', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:08:15')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 16:08:15 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'schema_migrations' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateRedirectRules (20120815212612)  (0.2ms) BEGIN  (5.1ms) CREATE TABLE "redirect_rules" ("id" serial primary key, "source" character varying(255) NOT NULL, "source_is_regex" boolean DEFAULT 'f' NOT NULL, "source_is_case_sensitive" boolean DEFAULT 'f' NOT NULL, "destination" character varying(255) NOT NULL, "active" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'redirect_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname   (1.3ms) CREATE INDEX "index_redirect_rules_on_source" ON "redirect_rules" ("source")  (1.2ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'redirect_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname  Columns for index index_redirect_rules_on_source on redirect_rules (0.6ms) SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78910 AND a.attnum IN (2)  (1.2ms) CREATE INDEX "index_redirect_rules_on_active" ON "redirect_rules" ("active")  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120815212612')  (1.3ms) COMMIT Migrating to CreateRequestEnvironmentRules (20120823163756)  (0.2ms) BEGIN  (4.3ms) CREATE TABLE "request_environment_rules" ("id" serial primary key, "redirect_rule_id" integer NOT NULL, "environment_key_name" character varying(255) NOT NULL, "environment_value" character varying(255) NOT NULL, "environment_value_is_regex" boolean DEFAULT 'f' NOT NULL, "environment_value_is_case_sensitive" boolean DEFAULT 't' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'request_environment_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname  (1.0ms) CREATE INDEX "index_request_environment_rules_on_redirect_rule_id" ON "request_environment_rules" ("redirect_rule_id")  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120823163756')  (1.2ms) COMMIT  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" PK and serial sequence (3.6ms)  SELECT attr.attname, seq.relname FROM pg_class seq, pg_attribute attr, pg_depend dep, pg_namespace name, pg_constraint cons WHERE seq.oid = dep.objid AND seq.relkind = 'S' AND attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid AND attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] AND cons.contype = 'p' AND dep.refobjid = '"redirect_rules"'::regclass   (2.5ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'redirect_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname Columns for index index_redirect_rules_on_active on redirect_rules (0.5ms)  SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78910 AND a.attnum IN (6)  Columns for index index_redirect_rules_on_source on redirect_rules (0.2ms) SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78910 AND a.attnum IN (2) PK and serial sequence (3.3ms)  SELECT attr.attname, seq.relname FROM pg_class seq, pg_attribute attr, pg_depend dep, pg_namespace name, pg_constraint cons WHERE seq.oid = dep.objid AND seq.relkind = 'S' AND attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid AND attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] AND cons.contype = 'p' AND dep.refobjid = '"request_environment_rules"'::regclass   (1.2ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid WHERE i.relkind = 'i' AND d.indisprimary = 'f' AND t.relname = 'request_environment_rules' AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) ) ORDER BY i.relname Columns for index index_request_environment_rules_on_redirect_rule_id on request_environment_rules (0.3ms)  SELECT a.attnum, a.attname FROM pg_attribute a WHERE a.attrelid = 78926 AND a.attnum IN (2)  Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (16.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.2ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/someplace') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/someplace' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/someplace' ~* redirect_rules.source)))))  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.9ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 20  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", true], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 22  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", true], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_SHINY/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_SHINY/from_company' ~* redirect_rules.source)))))  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 26  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_SHINY/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_SHINY/from_company' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 28  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 29], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 29  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 30], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 30  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 31], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 31], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 31  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 32], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 32], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 32  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 33], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 33], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 34], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 34], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 33  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 35], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 35], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 36], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 36], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 35 RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 36  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 37], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 37], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 38], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 38], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 37 RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 38  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 40  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 41  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/someplace') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/someplace' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/someplace' ~* redirect_rules.source)))))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 48], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 49], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 50], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 51], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 52], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 53], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 54], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 55], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 56], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 57], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 58], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 59], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 60], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 61], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 62], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 63], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 64], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 66], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 67], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", false], ["environment_value_is_regex", true], ["redirect_rule_id", 68], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_custom_url' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_custom_url' ~* redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 69 RedirectRule Load (0.7ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/news/5') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news/5' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news/5' ~* redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 16:10:21 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (0.3ms) select current_database()  (1.7ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (12.4ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Thu, 23 Aug 2012 22:10:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.0ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_custom_url/20' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_custom_url/20' ~* redirect_rules.source))))) RequestEnvironmentRule Load (1.0ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 2 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/news/20') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news/20' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news/20' ~* redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 16:10:21 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (17.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:28:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:28:39', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:28:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 16:28:39 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (1.3ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (0.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:28:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:28:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 16:28:39 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.4ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.5ms) TRUNCATE TABLE `redirect_rules`;  (1.4ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (13.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.0ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.7ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-23 22:29:24')  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (1.9ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-23 22:29:24')  (6.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-23 22:29:24')  (1.4ms) RELEASE SAVEPOINT active_record_1  (3.2ms) SAVEPOINT active_record_1 SQL (9.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-23 22:29:24')  (0.5ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (2.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (4.9ms) ROLLBACK  (1.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (17.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:24', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:24', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-23 22:29:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-23 22:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-23 22:29:25', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-23 22:29:25')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:25')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-23 16:29:25 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.5ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', '/news/5', '/my_custom_url', 0, 0, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-23 22:29:25', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-23 22:29:25')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-23 16:29:25 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (0.9ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (19.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 17:48:50')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 17:48:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:50', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:50', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 17:48:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.9ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 17:48:51', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 17:48:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 11:48:51 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.6ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (25.3ms) TRUNCATE TABLE `redirect_rules`;  (30.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 17:48:51')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 17:48:51', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 17:48:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 11:48:51 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) TRUNCATE TABLE `redirect_rules`;  (1.2ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (16.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.1ms) RELEASE SAVEPOINT active_record_1  (16.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (13.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:29', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:29')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.2ms) RELEASE SAVEPOINT active_record_1  (20.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (16.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (11.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (12.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (12.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (60.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:27:30')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (12.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:30')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (12.5ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (30.8ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:30', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:27:30')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (52.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:30', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (82.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:30', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:30', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:27:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:30', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:27:30')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (96.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (15.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (55.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (39.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (13.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (13.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (16.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (26.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (9.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (16.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (23.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (12.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) ROLLBACK  (0.1ms) BEGIN [35m (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:27:31', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:31', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.1ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:27:31 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 72ms (Views: 71.4ms | ActiveRecord: 0.0ms)  (4.8ms) ROLLBACK  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (137.8ms) TRUNCATE TABLE `redirect_rules`;  (35.7ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:27:32 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (18.4ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:27:32 -0600  (0.7ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) TRUNCATE TABLE `redirect_rules`;  (1.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:27:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:27:32', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:27:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.2ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (1.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) Started GET "/news" for 127.0.0.1 at 2012-08-24 16:27:32 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) TRUNCATE TABLE `redirect_rules`;  (1.6ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (14.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (10.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:34:45')  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:34:45')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:34:45', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:34:45 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (50.4ms) TRUNCATE TABLE `redirect_rules`;  (3.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:34:45 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (2.4ms) TRUNCATE TABLE `redirect_rules`;  (1.7ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:45', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:34:45 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:22:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (1.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:46', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:34:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:46', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:34:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:34:46', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:34:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) Started GET "/news" for 127.0.0.1 at 2012-08-24 16:34:46 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (19.9ms) TRUNCATE TABLE `request_environment_rules`;  (0.5ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (1.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:00')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:00', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:00', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:35:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:35:01')  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:35:01', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:35:01 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (14.4ms) TRUNCATE TABLE `redirect_rules`;  (1.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:35:01 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (1.2ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.5ms) TRUNCATE TABLE `redirect_rules`;  (20.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:35:01 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:22:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) TRUNCATE TABLE `redirect_rules`;  (2.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:35:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:35:01', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:35:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) Started GET "/news" for 127.0.0.1 at 2012-08-24 16:35:01 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (20.3ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.2ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:37:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:08', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:08', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:37:09 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (19.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:37:09 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.5ms) TRUNCATE TABLE `redirect_rules`;  (1.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:37:09 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (0.6ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (1.7ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) Started GET "/news" for 127.0.0.1 at 2012-08-24 16:37:09 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.4ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (29.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:38', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:38', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:37:38')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:37:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:37:39')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:39', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:39', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:37:39', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:37:39 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (1.3ms) TRUNCATE TABLE `redirect_rules`;  (1.2ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:37:39 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (21.8ms) TRUNCATE TABLE `redirect_rules`;  (13.3ms) TRUNCATE TABLE `request_environment_rules`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:37:39 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (1.0ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (53.2ms) TRUNCATE TABLE `request_environment_rules`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (11.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:37:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:37:39', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:37:39')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) Started GET "/news" for 127.0.0.1 at 2012-08-24 16:37:39 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.9ms) TRUNCATE TABLE `redirect_rules`;  (1.6ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (67.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (279.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateRedirectRules (20120815212612)  (100.8ms) CREATE TABLE `redirect_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `source` varchar(255) NOT NULL, `source_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `source_is_case_sensitive` tinyint(1) DEFAULT 0 NOT NULL, `destination` varchar(255) NOT NULL, `active` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (149.4ms) CREATE INDEX `index_redirect_rules_on_source` ON `redirect_rules` (`source`)  (132.1ms) CREATE INDEX `index_redirect_rules_on_active` ON `redirect_rules` (`active`)  (140.6ms) CREATE INDEX `index_redirect_rules_on_source_is_regex` ON `redirect_rules` (`source_is_regex`)  (132.9ms) CREATE INDEX `index_redirect_rules_on_source_is_case_sensitive` ON `redirect_rules` (`source_is_case_sensitive`)  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120815212612') Migrating to CreateRequestEnvironmentRules (20120823163756)  (121.4ms) CREATE TABLE `request_environment_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `redirect_rule_id` int(11) NOT NULL, `environment_key_name` varchar(255) NOT NULL, `environment_value` varchar(255) NOT NULL, `environment_value_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `environment_value_is_case_sensitive` tinyint(1) DEFAULT 1 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (183.6ms) CREATE INDEX `index_request_environment_rules_on_redirect_rule_id` ON `request_environment_rules` (`redirect_rule_id`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120823163756')  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (15.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:08', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (30.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source)))))  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (2.0ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (8.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (40.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 41  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source)))))  (11.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (16.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (16.5ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 48, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (11.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 49, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (12.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (8.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (22.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (13.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (13.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (18.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (13.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-24 22:44:09')  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 1, 1, 67, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-24 22:44:09', 'QUERY_STRING', 'something=value', 0, 1, 68, '2012-08-24 22:44:09')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:09', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 69 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) Started GET "/news/5" for 127.0.0.1 at 2012-08-24 16:44:10 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (46.9ms) TRUNCATE TABLE `redirect_rules`;  (10.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (16.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:10')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:10')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:10')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) Started GET "/news/20" for 127.0.0.1 at 2012-08-24 16:44:10 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.8ms) TRUNCATE TABLE `redirect_rules`;  (1.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:10')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-24 16:44:10 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (1.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.8ms) TRUNCATE TABLE `redirect_rules`;  (1.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/5', '/my_custom_url', 0, 0, '2012-08-24 22:44:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-24 22:44:10')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-24 22:44:10', '/news', 'categoryID=12345', 0, 1, '2012-08-24 22:44:10')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) Started GET "/news" for 127.0.0.1 at 2012-08-24 16:44:10 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (2.4ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:31', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (59.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (11.1ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.4ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (16.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (15.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9]_thingy', 0, 1, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 40  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 42  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 43  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 65, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'SERVER_NAME', 'example.com', 1, 0, 68, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 1, 1, 69, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:32', 'QUERY_STRING', 'something=value', 0, 1, 70, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:32', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 71 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC Started GET "/news/5" for 127.0.0.1 at 2012-08-27 13:14:33 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (91.9ms) TRUNCATE TABLE `redirect_rules`;  (31.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:33')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:33')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:33')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC Started GET "/news/20" for 127.0.0.1 at 2012-08-27 13:14:33 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (44.6ms) TRUNCATE TABLE `redirect_rules`;  (14.0ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:33')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:33')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:33')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-27 13:14:33 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (0.8ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (15.8ms) TRUNCATE TABLE `redirect_rules`;  (8.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:33')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:33')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:33', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:33')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex DESC, LENGTH(redirect_rules.source) DESC Started GET "/news" for 127.0.0.1 at 2012-08-27 13:14:33 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) TRUNCATE TABLE `redirect_rules`;  (15.5ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (22.0ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 20  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.3ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 22  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 1, 1, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (2.3ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 26  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_SHINY/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_SHINY/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 28  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 29, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.8ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 29  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 30, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 30  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 31, '2012-08-27 19:14:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 31, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 31  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 32, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 32, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.8ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 32  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 33, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 33, '2012-08-27 19:14:53')  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 34, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'another=value', 1, 1, 34, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 33  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 35, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 35, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 36, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'another=value', 1, 1, 36, '2012-08-27 19:14:53')  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 35 RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 36  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (2.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 37, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'something=value', 1, 1, 37, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 38, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'QUERY_STRING', 'another=value', 1, 1, 38, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 37 RequestEnvironmentRule Load (0.7ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 38  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9]_thingy', 0, 1, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 39  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/new_shiny/from_company' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/new_shiny/from_company' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 42  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/catchy_thingy' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/catchy_thingy' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 43  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/someplace') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/someplace' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/someplace' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (15.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/news/$1', '[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 50, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 51, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 52, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 53, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 54, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 55, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 56, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 57, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:53', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:53', 'SERVER_NAME', 'example.com', 1, 0, 58, '2012-08-27 19:14:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 59, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 60, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 61, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 62, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 63, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 64, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 65, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 66, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'SERVER_NAME', 'example.com', 1, 0, 68, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'QUERY_STRING', 'something=value', 1, 1, 69, '2012-08-27 19:14:54')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', 'http://www.example.com/products/1', '/catchy_thingy', 0, 0, '2012-08-27 19:14:54')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `request_environment_rules` (`created_at`, `environment_key_name`, `environment_value`, `environment_value_is_case_sensitive`, `environment_value_is_regex`, `redirect_rule_id`, `updated_at`) VALUES ('2012-08-27 19:14:54', 'QUERY_STRING', 'something=value', 0, 1, 70, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 71 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/5') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/5' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/5' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/news/5" for 127.0.0.1 at 2012-08-27 13:14:54 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (26.8ms) TRUNCATE TABLE `redirect_rules`;  (1.6ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_custom_url/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_custom_url/20' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 2 RedirectRule Load (0.5ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news/20') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news/20' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news/20' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/news/20" for 127.0.0.1 at 2012-08-27 13:14:54 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (2.2ms) TRUNCATE TABLE `redirect_rules`;  (1.9ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')  (1.4ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-27 13:14:54 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (1.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.5ms) TRUNCATE TABLE `redirect_rules`;  (19.8ms) TRUNCATE TABLE `request_environment_rules`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/5', '/my_custom_url', 0, 0, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news/$1', '/my_custom_url/([A-Za-z0-9_]+)', 0, 1, '2012-08-27 19:14:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `redirect_rules` (`active`, `created_at`, `destination`, `source`, `source_is_case_sensitive`, `source_is_regex`, `updated_at`) VALUES (1, '2012-08-27 19:14:54', '/news', 'categoryID=12345', 0, 1, '2012-08-27 19:14:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/my_old_url?categoryID=12345' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/my_old_url?categoryID=12345' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT `request_environment_rules`.* FROM `request_environment_rules` WHERE `request_environment_rules`.`redirect_rule_id` = 3 RedirectRule Load (0.7ms) SELECT `redirect_rules`.* FROM `redirect_rules` WHERE (redirect_rules.active = 1 AND ((source_is_regex = 0 AND redirect_rules.source = '/news') OR (source_is_regex = 1 AND ((redirect_rules.source_is_case_sensitive = 1 AND '/news' REGEXP BINARY redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 0 AND '/news' REGEXP redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/news" for 127.0.0.1 at 2012-08-27 13:14:54 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (2.7ms) TRUNCATE TABLE `redirect_rules`;  (1.1ms) TRUNCATE TABLE `request_environment_rules`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (113.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (25.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (12.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (139.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/someplace') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/someplace' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/someplace' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (21.9ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 20  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", true], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (35.1ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 22  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", true], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_SHINY/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_SHINY/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (13.0ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.5ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 26  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_SHINY/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_SHINY/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_SHINY/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 28  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (8.2ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 29], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.7ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 29  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 30], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 30  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 31], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 31], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 31  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 32], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 32], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 32  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 33], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 33], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 34], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 34], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 33  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 35], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 35], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 36], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 36], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 35 RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 36  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 37], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 37], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 38], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "another=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 38], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.3ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 37 RequestEnvironmentRule Load (0.2ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 38  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9]_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 39  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/new_shiny/from_company') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/new_shiny/from_company' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/new_shiny/from_company' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.4ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 42  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/catchy_thingy') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/catchy_thingy' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/catchy_thingy' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 43  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/someplace') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/someplace' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/someplace' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/news/$1"], ["source", "[A-Za-z0-9_]+shiny\\/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 50], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 51], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 52], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 53], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 54], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 55], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 56], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 57], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 58], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 59], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 60], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 61], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 62], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 63], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 64], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 65], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 66], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "SERVER_NAME"], ["environment_value", "example.com"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", false], ["redirect_rule_id", 68], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", true], ["environment_value_is_regex", true], ["redirect_rule_id", 69], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "http://www.example.com/products/1"], ["source", "/catchy_thingy"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "request_environment_rules" ("created_at", "environment_key_name", "environment_value", "environment_value_is_case_sensitive", "environment_value_is_regex", "redirect_rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["environment_key_name", "QUERY_STRING"], ["environment_value", "something=value"], ["environment_value_is_case_sensitive", false], ["environment_value_is_regex", true], ["redirect_rule_id", 70], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.9ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/my_custom_url') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_custom_url' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_custom_url' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.6ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 71 RedirectRule Load (1.5ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/news/5') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news/5' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news/5' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/news/5" for 127.0.0.1 at 2012-08-27 13:16:05 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"5"} Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (7.1ms) select current_database()  (32.5ms) select table_name from information_schema.views where table_schema = 'redirector_dummy_test'  (80.4ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.2ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/my_custom_url/20') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_custom_url/20' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_custom_url/20' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.9ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 2 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/news/20') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news/20' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news/20' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/news/20" for 127.0.0.1 at 2012-08-27 13:16:06 -0600 Processing by NewsController#show as HTML Parameters: {"id"=>"20"} Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (31.4ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (0.8ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/my_old_url') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_old_url' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_old_url' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/my_old_url?categoryID=12345" for 127.0.0.1 at 2012-08-27 13:16:06 -0600 ActionController::RoutingError (No route matches [GET] "/my_old_url"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:23:in `response' /Users/brianlandau/Projects/redirector/lib/redirector/middleware.rb:8:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' rack (1.4.1) lib/rack/builder.rb:134:in `call' rack (1.4.1) lib/rack/urlmap.rb:64:in `block in call' rack (1.4.1) lib/rack/urlmap.rb:49:in `each' rack (1.4.1) lib/rack/urlmap.rb:49:in `call' rack-test (0.6.1) lib/rack/mock_session.rb:30:in `request' rack-test (0.6.1) lib/rack/test.rb:219:in `process_request' rack-test (0.6.1) lib/rack/test.rb:57:in `get' /Users/brianlandau/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/forwardable.rb:201:in `get' capybara (1.1.2) lib/capybara/rack_test/browser.rb:62:in `process' capybara (1.1.2) lib/capybara/rack_test/browser.rb:21:in `visit' capybara (1.1.2) lib/capybara/rack_test/driver.rb:32:in `visit' capybara (1.1.2) lib/capybara/session.rb:157:in `visit' capybara (1.1.2) lib/capybara/dsl.rb:161:in `visit' /Users/brianlandau/Projects/redirector/spec/requests/middleware_spec.rb:21:in `block (2 levels) in ' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `instance_eval' rspec-core (2.11.1) lib/rspec/core/example.rb:113:in `block in run' rspec-core (2.11.1) lib/rspec/core/example.rb:253:in `with_around_each_hooks' rspec-core (2.11.1) lib/rspec/core/example.rb:110:in `run' rspec-core (2.11.1) lib/rspec/core/example_group.rb:378:in `block in run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `map' rspec-core (2.11.1) lib/rspec/core/example_group.rb:374:in `run_examples' rspec-core (2.11.1) lib/rspec/core/example_group.rb:360:in `run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `map' rspec-core (2.11.1) lib/rspec/core/command_line.rb:28:in `block in run' rspec-core (2.11.1) lib/rspec/core/reporter.rb:34:in `report' rspec-core (2.11.1) lib/rspec/core/command_line.rb:25:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:69:in `run' rspec-core (2.11.1) lib/rspec/core/runner.rb:8:in `block in autorun'  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL  (9.5ms) TRUNCATE TABLE "redirect_rules", "request_environment_rules" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/5"], ["source", "/my_custom_url"], ["source_is_case_sensitive", false], ["source_is_regex", false], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news/$1"], ["source", "/my_custom_url/([A-Za-z0-9_]+)"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "redirect_rules" ("active", "created_at", "destination", "source", "source_is_case_sensitive", "source_is_regex", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00], ["destination", "/news"], ["source", "categoryID=12345"], ["source_is_case_sensitive", false], ["source_is_regex", true], ["updated_at", Mon, 27 Aug 2012 19:16:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RedirectRule Load (1.0ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/my_old_url?categoryID=12345') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/my_old_url?categoryID=12345' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/my_old_url?categoryID=12345' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC RequestEnvironmentRule Load (0.7ms) SELECT "request_environment_rules".* FROM "request_environment_rules" WHERE "request_environment_rules"."redirect_rule_id" = 3 RedirectRule Load (0.6ms) SELECT "redirect_rules".* FROM "redirect_rules" WHERE (redirect_rules.active = 't' AND ((source_is_regex = 'f' AND redirect_rules.source = '/news') OR (source_is_regex = 't' AND ((redirect_rules.source_is_case_sensitive = 't' AND '/news' ~ redirect_rules.source) OR (redirect_rules.source_is_case_sensitive = 'f' AND '/news' ~* redirect_rules.source))))) ORDER BY redirect_rules.source_is_regex ASC, LENGTH(redirect_rules.source) DESC Started GET "/news" for 127.0.0.1 at 2012-08-27 13:16:06 -0600 Processing by NewsController#index as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" DISABLE TRIGGER ALL;ALTER TABLE "redirect_rules" DISABLE TRIGGER ALL  (8.2ms) TRUNCATE TABLE "request_environment_rules", "redirect_rules" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "request_environment_rules" ENABLE TRIGGER ALL;ALTER TABLE "redirect_rules" ENABLE TRIGGER ALL