green_flag 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9045,3 +9045,628 @@ Connecting to database specified by database.yml
9045
9045
   (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9046
9046
   (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9047
9047
   (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9048
+ Connecting to database specified by database.yml
9049
+  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9050
+  (284.6ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9051
+  (341.2ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9052
+  (10.8ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9053
+  (1.2ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9054
+  (4.0ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9055
+  (1.2ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9056
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9057
+  (5.1ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9058
+  (1.6ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9059
+  (3.8ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9060
+  (1.4ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9061
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9062
+  (3.2ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9063
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9064
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9065
+  (2.8ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9066
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9067
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9068
+  (0.4ms) SELECT version FROM "schema_migrations"
9069
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9070
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9071
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9072
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9073
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9074
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9075
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9076
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9077
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9078
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9079
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9080
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9081
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9082
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9083
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9084
+
9085
+
9086
+ Started GET "/" for 127.0.0.1 at 2015-09-28 12:09:51 -0400
9087
+ Connecting to database specified by database.yml
9088
+
9089
+ ActionController::RoutingError (No route matches [GET] "/"):
9090
+ actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
9091
+ actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9092
+ railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
9093
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
9094
+ activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
9095
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
9096
+ actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9097
+ rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
9098
+ rack (1.4.7) lib/rack/runtime.rb:17:in `call'
9099
+ activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9100
+ rack (1.4.7) lib/rack/lock.rb:15:in `call'
9101
+ actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
9102
+ railties (3.2.22) lib/rails/engine.rb:484:in `call'
9103
+ railties (3.2.22) lib/rails/application.rb:231:in `call'
9104
+ rack (1.4.7) lib/rack/content_length.rb:14:in `call'
9105
+ railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
9106
+ rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
9107
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
9108
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
9109
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
9110
+
9111
+
9112
+ Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.2ms)
9113
+
9114
+
9115
+ Started GET "/green_flag" for 127.0.0.1 at 2015-09-28 12:10:09 -0400
9116
+
9117
+ ActionController::RoutingError (No route matches [GET] "/green_flag"):
9118
+ actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
9119
+ actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9120
+ railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
9121
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
9122
+ activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
9123
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
9124
+ actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9125
+ rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
9126
+ rack (1.4.7) lib/rack/runtime.rb:17:in `call'
9127
+ activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9128
+ rack (1.4.7) lib/rack/lock.rb:15:in `call'
9129
+ actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
9130
+ railties (3.2.22) lib/rails/engine.rb:484:in `call'
9131
+ railties (3.2.22) lib/rails/application.rb:231:in `call'
9132
+ rack (1.4.7) lib/rack/content_length.rb:14:in `call'
9133
+ railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
9134
+ rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
9135
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
9136
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
9137
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
9138
+
9139
+
9140
+ Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
9141
+
9142
+
9143
+ Started GET "/green_flag/features" for 127.0.0.1 at 2015-09-28 12:10:14 -0400
9144
+
9145
+ ActionController::RoutingError (No route matches [GET] "/green_flag/features"):
9146
+ actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
9147
+ actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9148
+ railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
9149
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
9150
+ activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
9151
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
9152
+ actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9153
+ rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
9154
+ rack (1.4.7) lib/rack/runtime.rb:17:in `call'
9155
+ activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9156
+ rack (1.4.7) lib/rack/lock.rb:15:in `call'
9157
+ actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
9158
+ railties (3.2.22) lib/rails/engine.rb:484:in `call'
9159
+ railties (3.2.22) lib/rails/application.rb:231:in `call'
9160
+ rack (1.4.7) lib/rack/content_length.rb:14:in `call'
9161
+ railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
9162
+ rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
9163
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
9164
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
9165
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
9166
+
9167
+
9168
+ Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (27.4ms)
9169
+ Connecting to database specified by database.yml
9170
+
9171
+
9172
+ Started GET "/green_flag/admin/features" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9173
+ Processing by GreenFlag::Admin::FeaturesController#index as HTML
9174
+ GreenFlag::Feature Load (2.1ms) SELECT "green_flag_features".* FROM "green_flag_features" 
9175
+ Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/index.html.erb within layouts/green_flag/application (1.2ms)
9176
+ Compiled green_flag/admin/features.js (0ms) (pid 56813)
9177
+ Compiled green_flag/application.js (1ms) (pid 56813)
9178
+ Completed 200 OK in 60.0ms (Views: 44.3ms | ActiveRecord: 6.3ms)
9179
+
9180
+
9181
+ Started GET "/assets/green_flag/application.css?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9182
+ Served asset /green_flag/application.css - 200 OK (3ms)
9183
+
9184
+
9185
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9186
+ Served asset /jquery_ujs.js - 200 OK (1ms)
9187
+
9188
+
9189
+ Started GET "/assets/green_flag/admin/features.css?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9190
+ Served asset /green_flag/admin/features.css - 200 OK (1ms)
9191
+
9192
+
9193
+ Started GET "/assets/green_flag/admin/features.js?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9194
+ Served asset /green_flag/admin/features.js - 200 OK (1ms)
9195
+
9196
+
9197
+ Started GET "/assets/green_flag/admin/rules.css?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9198
+ Served asset /green_flag/admin/rules.css - 200 OK (1ms)
9199
+
9200
+
9201
+ Started GET "/assets/green_flag/admin/rules.js?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9202
+ Served asset /green_flag/admin/rules.js - 200 OK (1ms)
9203
+
9204
+
9205
+ Started GET "/assets/green_flag/application.js?body=1" for 127.0.0.1 at 2015-09-28 12:10:40 -0400
9206
+ Served asset /green_flag/application.js - 200 OK (3ms)
9207
+
9208
+
9209
+ Started GET "/green_flag/admin/features/3" for 127.0.0.1 at 2015-09-28 12:10:44 -0400
9210
+ Processing by GreenFlag::Admin::FeaturesController#show as HTML
9211
+ Parameters: {"id"=>"3"}
9212
+ GreenFlag::Feature Load (2.1ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "3"]]
9213
+ Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/show.html.erb within layouts/green_flag/application (10.3ms)
9214
+ Completed 200 OK in 18.6ms (Views: 14.1ms | ActiveRecord: 2.3ms)
9215
+
9216
+
9217
+ Started GET "/green_flag/admin/features/3/rule_list" for 127.0.0.1 at 2015-09-28 12:10:44 -0400
9218
+ Processing by GreenFlag::Admin::RuleListsController#show as JSON
9219
+ Parameters: {"feature_id"=>"3"}
9220
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "3"]]
9221
+ GreenFlag::Rule Load (2.8ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 3 AND (version_number = 1) ORDER BY order_by
9222
+ Completed 200 OK in 23.2ms (Views: 0.1ms | ActiveRecord: 8.4ms)
9223
+
9224
+
9225
+ Started GET "/green_flag/admin/features/3/feature_decision_summary" for 127.0.0.1 at 2015-09-28 12:10:45 -0400
9226
+ Processing by GreenFlag::Admin::FeatureDecisionSummariesController#show as JSON
9227
+ Parameters: {"feature_id"=>"3"}
9228
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "3"]]
9229
+  (1.7ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 3 AND "green_flag_feature_decisions"."enabled" = 't'
9230
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 3 AND "green_flag_feature_decisions"."enabled" = 'f'
9231
+ Completed 200 OK in 14.7ms (Views: 0.2ms | ActiveRecord: 4.7ms)
9232
+
9233
+
9234
+ Started GET "/green_flag/admin/features/3/white_list_users" for 127.0.0.1 at 2015-09-28 12:10:45 -0400
9235
+ Processing by GreenFlag::Admin::WhiteListUsersController#index as JSON
9236
+ Parameters: {"feature_id"=>"3"}
9237
+ GreenFlag::FeatureDecision Load (4.5ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" INNER JOIN "users" ON "users"."id" = "green_flag_site_visitors"."user_id" WHERE "green_flag_feature_decisions"."feature_id" = 3 AND "green_flag_feature_decisions"."enabled" = 't' AND "green_flag_feature_decisions"."manual" = 't' ORDER BY created_at
9238
+ Completed 200 OK in 18.7ms (Views: 0.1ms | ActiveRecord: 7.6ms)
9239
+
9240
+
9241
+ Started GET "/green_flag/admin/features/3/current_visitor_status" for 127.0.0.1 at 2015-09-28 12:10:45 -0400
9242
+ Processing by GreenFlag::Admin::FeaturesController#current_visitor_status as JSON
9243
+ Parameters: {"id"=>"3"}
9244
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "3"]]
9245
+ GreenFlag::SiteVisitor Load (2.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'cf9ddac9-d92b-4eea-8359-0463ff85d72b' LIMIT 1
9246
+  (0.1ms) BEGIN
9247
+ SQL (2.2ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 28 Sep 2015 16:10:45 UTC +00:00], ["updated_at", Mon, 28 Sep 2015 16:10:45 UTC +00:00], ["user_id", nil], ["visitor_code", "cf9ddac9-d92b-4eea-8359-0463ff85d72b"]]
9248
+  (0.3ms) COMMIT
9249
+ GreenFlag::FeatureDecision Load (0.6ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 3 AND "green_flag_feature_decisions"."site_visitor_id" = 4 LIMIT 1
9250
+ Completed 200 OK in 13.8ms (Views: 0.2ms | ActiveRecord: 6.2ms)
9251
+ Connecting to database specified by database.yml
9252
+  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9253
+ Migrating to CreateGreenFlagSiteVisitors (20140502112602)
9254
+ Migrating to CreateGreenFlagFeatures (20140502221059)
9255
+ Migrating to CreateGreenFlagFeatureDecisions (20140502221423)
9256
+ Migrating to AddVisitorCodeToSiteVisitors (20140505204611)
9257
+ Migrating to CreateGreenFlagRules (20140511045110)
9258
+ Migrating to SetDefaultPercentageInGreenFlagRules (20140513203728)
9259
+ Migrating to RequireOrderingForGreenFlagRules (20140514202337)
9260
+ Migrating to AddRestrictionsToGreenFlagRules (20140516214909)
9261
+ Migrating to CreateGreenFlagFeatureEvents (20150211214159)
9262
+ Migrating to AddRuleIdToGreenFlagFeatureDecisions (20150213191101)
9263
+ Migrating to AddVersionNumberToGreenFlagRules (20150218035000)
9264
+ Migrating to AddVersionNumberToGreenFlagFeatures (20150218035805)
9265
+ Migrating to AddVersionNumberToGreenFlagRulesIndices (20150218171852)
9266
+ Migrating to CreateUsers (20150726195118)
9267
+ Migrating to AddEmailToUsers (20150726204409)
9268
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
9269
+ Connecting to database specified by database.yml
9270
+ Connecting to database specified by database.yml
9271
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9272
+  (260.3ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9273
+  (308.1ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9274
+  (9.1ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9275
+  (1.2ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9276
+  (2.5ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9277
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9278
+  (1.0ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9279
+  (4.7ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9280
+  (1.4ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9281
+  (2.8ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9282
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9283
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9284
+  (2.5ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9285
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9286
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9287
+  (4.3ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9288
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9289
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9290
+  (0.4ms) SELECT version FROM "schema_migrations"
9291
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9292
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9293
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9294
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9295
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9296
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9297
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9298
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9299
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9300
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9301
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9302
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9303
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9304
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9305
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9306
+
9307
+
9308
+ Started GET "/" for 127.0.0.1 at 2015-09-29 14:02:35 -0400
9309
+ Connecting to database specified by database.yml
9310
+
9311
+ ActionController::RoutingError (No route matches [GET] "/"):
9312
+ actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
9313
+ actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9314
+ railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
9315
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
9316
+ activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
9317
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
9318
+ actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9319
+ rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
9320
+ rack (1.4.7) lib/rack/runtime.rb:17:in `call'
9321
+ activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9322
+ rack (1.4.7) lib/rack/lock.rb:15:in `call'
9323
+ actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
9324
+ railties (3.2.22) lib/rails/engine.rb:484:in `call'
9325
+ railties (3.2.22) lib/rails/application.rb:231:in `call'
9326
+ rack (1.4.7) lib/rack/content_length.rb:14:in `call'
9327
+ railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
9328
+ rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
9329
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
9330
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
9331
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
9332
+
9333
+
9334
+ Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.5ms)
9335
+
9336
+
9337
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-09-29 14:02:42 -0400
9338
+
9339
+ ActionController::RoutingError (uninitialized constant FeatureChecksController):
9340
+ activesupport (3.2.22) lib/active_support/inflector/methods.rb:230:in `block in constantize'
9341
+ activesupport (3.2.22) lib/active_support/inflector/methods.rb:229:in `each'
9342
+ activesupport (3.2.22) lib/active_support/inflector/methods.rb:229:in `constantize'
9343
+ actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference'
9344
+ actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:54:in `controller'
9345
+ actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:32:in `call'
9346
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9347
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9348
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9349
+ actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
9350
+ actionpack (3.2.22) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
9351
+ rack (1.4.7) lib/rack/etag.rb:23:in `call'
9352
+ rack (1.4.7) lib/rack/conditionalget.rb:25:in `call'
9353
+ actionpack (3.2.22) lib/action_dispatch/middleware/head.rb:14:in `call'
9354
+ actionpack (3.2.22) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
9355
+ actionpack (3.2.22) lib/action_dispatch/middleware/flash.rb:242:in `call'
9356
+ rack (1.4.7) lib/rack/session/abstract/id.rb:210:in `context'
9357
+ rack (1.4.7) lib/rack/session/abstract/id.rb:205:in `call'
9358
+ actionpack (3.2.22) lib/action_dispatch/middleware/cookies.rb:341:in `call'
9359
+ activerecord (3.2.22) lib/active_record/query_cache.rb:64:in `call'
9360
+ activerecord (3.2.22) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
9361
+ actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
9362
+ activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `_run__248233098580449770__call__4041447048879497852__callbacks'
9363
+ activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
9364
+ activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
9365
+ activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
9366
+ actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
9367
+ actionpack (3.2.22) lib/action_dispatch/middleware/reloader.rb:65:in `call'
9368
+ actionpack (3.2.22) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
9369
+ actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
9370
+ actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9371
+ railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
9372
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
9373
+ activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
9374
+ railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
9375
+ actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9376
+ rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
9377
+ rack (1.4.7) lib/rack/runtime.rb:17:in `call'
9378
+ activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9379
+ rack (1.4.7) lib/rack/lock.rb:15:in `call'
9380
+ actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
9381
+ railties (3.2.22) lib/rails/engine.rb:484:in `call'
9382
+ railties (3.2.22) lib/rails/application.rb:231:in `call'
9383
+ rack (1.4.7) lib/rack/content_length.rb:14:in `call'
9384
+ railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
9385
+ rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
9386
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
9387
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
9388
+ /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
9389
+
9390
+
9391
+ Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
9392
+ Connecting to database specified by database.yml
9393
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9394
+  (117.1ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9395
+  (234.0ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9396
+  (4.9ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9397
+  (1.1ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9398
+  (2.5ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9399
+  (1.2ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9400
+  (1.0ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9401
+  (5.4ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9402
+  (1.6ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9403
+  (2.8ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9404
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9405
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9406
+  (2.4ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9407
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9408
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9409
+  (2.4ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9410
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9411
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9412
+  (0.3ms) SELECT version FROM "schema_migrations"
9413
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9414
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9415
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9416
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9417
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9418
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9419
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9420
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9421
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9422
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9423
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9424
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9425
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9426
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9427
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9428
+
9429
+
9430
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-09-29 14:15:44 -0400
9431
+ Connecting to database specified by database.yml
9432
+ Processing by FeatureChecksController#index as HTML
9433
+ GreenFlag::SiteVisitor Load (4.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = '2' LIMIT 1
9434
+ GreenFlag::Feature Load (1.8ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature' LIMIT 1
9435
+  (0.2ms) BEGIN
9436
+ SQL (4.6ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature"], ["created_at", Tue, 29 Sep 2015 18:15:45 UTC +00:00], ["description", nil], ["updated_at", Tue, 29 Sep 2015 18:15:45 UTC +00:00], ["version_number", 1]]
9437
+  (0.4ms) COMMIT
9438
+ GreenFlag::FeatureDecision Load (1.9ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 4 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
9439
+ GreenFlag::Rule Load (2.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 4 AND (version_number = 1) ORDER BY order_by
9440
+  (0.1ms) BEGIN
9441
+ SQL (1.9ms) INSERT INTO "green_flag_feature_decisions" ("created_at", "enabled", "feature_id", "manual", "rule_id", "site_visitor_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 29 Sep 2015 18:15:45 UTC +00:00], ["enabled", nil], ["feature_id", 4], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Tue, 29 Sep 2015 18:15:45 UTC +00:00]]
9442
+  (0.4ms) COMMIT
9443
+ Rendered text template (0.0ms)
9444
+ Completed 200 OK in 147.7ms (Views: 3.6ms | ActiveRecord: 32.5ms)
9445
+
9446
+
9447
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-09-29 14:15:47 -0400
9448
+ Processing by FeatureChecksController#index as HTML
9449
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = '2' LIMIT 1
9450
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature' LIMIT 1
9451
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 4 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
9452
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 4 AND (version_number = 1) ORDER BY order_by
9453
+  (0.1ms) BEGIN
9454
+  (0.2ms) COMMIT
9455
+ Rendered text template (0.0ms)
9456
+ Completed 200 OK in 5.9ms (Views: 0.5ms | ActiveRecord: 1.8ms)
9457
+ Connecting to database specified by database.yml
9458
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9459
+  (272.0ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9460
+  (335.4ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9461
+  (10.8ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9462
+  (1.2ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9463
+  (2.8ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9464
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9465
+  (1.0ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9466
+  (5.3ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9467
+  (1.4ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9468
+  (3.0ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9469
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9470
+  (1.3ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9471
+  (2.7ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9472
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9473
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9474
+  (2.7ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9475
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9476
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9477
+  (0.3ms) SELECT version FROM "schema_migrations"
9478
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9479
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9480
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9481
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9482
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9483
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9484
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9485
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9486
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9487
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9488
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9489
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9490
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9491
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9492
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9493
+ Connecting to database specified by database.yml
9494
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9495
+  (116.9ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9496
+  (236.6ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9497
+  (4.7ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9498
+  (1.1ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9499
+  (3.1ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9500
+  (1.3ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9501
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9502
+  (4.1ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9503
+  (1.4ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9504
+  (3.0ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9505
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9506
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9507
+  (2.5ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9508
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9509
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9510
+  (2.5ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9511
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9512
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9513
+  (0.3ms) SELECT version FROM "schema_migrations"
9514
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9515
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9516
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9517
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9518
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9519
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9520
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9521
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9522
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9523
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9524
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9525
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9526
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9527
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9528
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9529
+ Connecting to database specified by database.yml
9530
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9531
+  (263.9ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9532
+  (249.5ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9533
+  (5.0ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9534
+  (1.2ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9535
+  (3.6ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9536
+  (1.7ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9537
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9538
+  (4.2ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9539
+  (1.7ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9540
+  (3.3ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9541
+  (1.3ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9542
+  (1.4ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9543
+  (2.6ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9544
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9545
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9546
+  (2.5ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9547
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9548
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9549
+  (0.3ms) SELECT version FROM "schema_migrations"
9550
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9551
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9552
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9553
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9554
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9555
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9556
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9557
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9558
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9559
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9560
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9561
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9562
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9563
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9564
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9565
+ Connecting to database specified by database.yml
9566
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9567
+  (115.9ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9568
+  (252.2ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9569
+  (5.3ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9570
+  (1.3ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9571
+  (2.9ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9572
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9573
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9574
+  (4.4ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9575
+  (1.5ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9576
+  (2.7ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9577
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9578
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9579
+  (2.7ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9580
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9581
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9582
+  (2.5ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9583
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9584
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9585
+  (0.3ms) SELECT version FROM "schema_migrations"
9586
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9587
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9588
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9589
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9590
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9591
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9592
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9593
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9594
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9595
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9596
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9597
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9598
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9599
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9600
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9601
+ Connecting to database specified by database.yml
9602
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9603
+  (280.3ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9604
+  (338.6ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9605
+  (10.0ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9606
+  (1.2ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9607
+  (3.6ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9608
+  (1.2ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9609
+  (1.1ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9610
+  (5.5ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9611
+  (1.6ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9612
+  (3.7ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9613
+  (1.4ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9614
+  (1.3ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9615
+  (3.4ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9616
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9617
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9618
+  (2.8ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9619
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9620
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9621
+  (0.5ms) SELECT version FROM "schema_migrations"
9622
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9623
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9624
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9625
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9626
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9627
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9628
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9629
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9630
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9631
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9632
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9633
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9634
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9635
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9636
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')
9637
+ Connecting to database specified by database.yml
9638
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9639
+  (117.8ms) DROP DATABASE IF EXISTS "green_flag_dummy_test"
9640
+  (237.5ms) CREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'
9641
+  (6.1ms) CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
9642
+  (1.4ms) CREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")
9643
+  (2.7ms) CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9644
+  (1.2ms) CREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")
9645
+  (1.0ms) CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
9646
+  (4.3ms) CREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9647
+  (1.6ms) CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
9648
+  (2.6ms) CREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) 
9649
+  (1.2ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
9650
+  (1.1ms) CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")
9651
+  (2.5ms) CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
9652
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")
9653
+  (1.0ms) CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
9654
+  (2.6ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) 
9655
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
9656
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9657
+  (0.3ms) SELECT version FROM "schema_migrations"
9658
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726204409')
9659
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
9660
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502112602')
9661
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
9662
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140502221423')
9663
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
9664
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140511045110')
9665
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
9666
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140514202337')
9667
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
9668
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211214159')
9669
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
9670
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035000')
9671
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
9672
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150218171852')