green_flag 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -34576,3 +34576,725 @@ Completed 200 OK in 6.3ms (Views: 0.2ms | ActiveRecord: 2.5ms)
34576
34576
   (0.2ms) RELEASE SAVEPOINT active_record_1
34577
34577
   (0.3ms) SELECT COUNT(*) FROM "green_flag_rules"
34578
34578
   (0.1ms) ROLLBACK
34579
+ Connecting to database specified by database.yml
34580
+  (0.3ms) BEGIN
34581
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-08-06 20:29:29 -0400
34582
+ Processing by FeatureChecksController#index as HTML
34583
+ GreenFlag::SiteVisitor Load (1.0ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'c452796e-e3b4-4209-b006-4e65dc05952f' LIMIT 1
34584
+  (0.2ms) SAVEPOINT active_record_1
34585
+ SQL (33.0ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "c452796e-e3b4-4209-b006-4e65dc05952f"]]
34586
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34587
+ GreenFlag::Feature Load (0.5ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature' LIMIT 1
34588
+  (0.2ms) SAVEPOINT active_record_1
34589
+ SQL (0.8ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34590
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34591
+ GreenFlag::FeatureDecision Load (0.7ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 1 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
34592
+ GreenFlag::Rule Load (0.9ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 1 AND (version_number = 1) ORDER BY order_by
34593
+  (0.1ms) SAVEPOINT active_record_1
34594
+ SQL (1.0ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 1], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34595
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34596
+ Rendered text template (0.0ms)
34597
+ Completed 200 OK in 78.0ms (Views: 3.6ms | ActiveRecord: 43.5ms)
34598
+ GreenFlag::FeatureDecision Load (1.1ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" ORDER BY created_at DESC LIMIT 1
34599
+  (0.1ms) SAVEPOINT active_record_1
34600
+  (0.4ms) UPDATE "green_flag_feature_decisions" SET "enabled" = 't', "updated_at" = '2015-08-07 00:29:29.162099' WHERE "green_flag_feature_decisions"."id" = 1
34601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34602
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-08-06 20:29:29 -0400
34603
+ Processing by FeatureChecksController#index as HTML
34604
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'c452796e-e3b4-4209-b006-4e65dc05952f' LIMIT 1
34605
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature' LIMIT 1
34606
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 1 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
34607
+ Rendered text template (0.0ms)
34608
+ Completed 200 OK in 3.3ms (Views: 0.3ms | ActiveRecord: 1.1ms)
34609
+  (0.2ms) ROLLBACK
34610
+  (0.1ms) BEGIN
34611
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-08-06 20:29:29 -0400
34612
+ Processing by FeatureChecksController#index as HTML
34613
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'a06ac6a0-e869-494b-baa1-8c0d50a56587' LIMIT 1
34614
+  (0.1ms) SAVEPOINT active_record_1
34615
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "a06ac6a0-e869-494b-baa1-8c0d50a56587"]]
34616
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34617
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature' LIMIT 1
34618
+  (0.1ms) SAVEPOINT active_record_1
34619
+ SQL (0.4ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34620
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34621
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 2 LIMIT 1
34622
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 2 AND (version_number = 1) ORDER BY order_by
34623
+  (0.1ms) SAVEPOINT active_record_1
34624
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 2], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 2], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34626
+ Rendered text template (0.0ms)
34627
+ Completed 200 OK in 8.3ms (Views: 0.3ms | ActiveRecord: 3.4ms)
34628
+  (0.2ms) ROLLBACK
34629
+  (0.1ms) BEGIN
34630
+  (0.2ms) SAVEPOINT active_record_1
34631
+ SQL (0.4ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34632
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34633
+ Started GET "/feature_checks" for 127.0.0.1 at 2015-08-06 20:29:29 -0400
34634
+ Processing by FeatureChecksController#index as HTML
34635
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = '4176df52-3b84-46b5-bfe4-3399f0c13268' LIMIT 1
34636
+  (0.1ms) SAVEPOINT active_record_1
34637
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "4176df52-3b84-46b5-bfe4-3399f0c13268"]]
34638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34639
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature' LIMIT 1
34640
+ GreenFlag::FeatureDecision Load (0.4ms) 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" = 3 LIMIT 1
34641
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 3 AND (version_number = 1) ORDER BY order_by
34642
+  (0.1ms) SAVEPOINT active_record_1
34643
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 3], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 3], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34645
+ Rendered text template (0.0ms)
34646
+ Completed 200 OK in 6.4ms (Views: 0.3ms | ActiveRecord: 2.5ms)
34647
+  (0.2ms) ROLLBACK
34648
+  (0.1ms) BEGIN
34649
+  (0.2ms) ROLLBACK
34650
+  (0.1ms) BEGIN
34651
+ Processing by AnonymousController#index as HTML
34652
+ Rendered text template (0.0ms)
34653
+ Completed 200 OK in 1.3ms (Views: 0.7ms | ActiveRecord: 0.0ms)
34654
+  (0.2ms) ROLLBACK
34655
+  (0.1ms) BEGIN
34656
+ Processing by AnonymousController#index as HTML
34657
+ Completed 200 OK in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
34658
+  (0.2ms) ROLLBACK
34659
+  (0.1ms) BEGIN
34660
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
34661
+ Processing by AnonymousController#index as HTML
34662
+ Completed 200 OK in 0.2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
34663
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors" 
34664
+  (0.1ms) ROLLBACK
34665
+  (0.1ms) BEGIN
34666
+ Processing by AnonymousController#index as HTML
34667
+ Completed 200 OK in 0.5ms (Views: 0.2ms | ActiveRecord: 0.0ms)
34668
+  (0.1ms) ROLLBACK
34669
+  (0.1ms) BEGIN
34670
+  (0.4ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
34671
+ Processing by AnonymousController#index as HTML
34672
+ Completed 200 OK in 0.5ms (Views: 0.2ms | ActiveRecord: 0.0ms)
34673
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors" 
34674
+  (0.1ms) ROLLBACK
34675
+  (0.1ms) BEGIN
34676
+  (0.2ms) SAVEPOINT active_record_1
34677
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "asdf"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34678
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34679
+ Processing by GreenFlag::Admin::RuleListsController#update as JS
34680
+ Parameters: {"_json"=>[], "feature_id"=>"4"}
34681
+ Completed 200 OK in 0.6ms (Views: 0.1ms | ActiveRecord: 0.0ms)
34682
+  (0.2ms) ROLLBACK
34683
+  (0.1ms) BEGIN
34684
+  (0.2ms) SAVEPOINT active_record_1
34685
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "asdf"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34686
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34687
+ Processing by GreenFlag::Admin::RuleListsController#update as JS
34688
+ Parameters: {"_json"=>[], "feature_id"=>"5"}
34689
+ Completed 200 OK in 0.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
34690
+  (0.2ms) ROLLBACK
34691
+  (0.1ms) BEGIN
34692
+  (0.2ms) SAVEPOINT active_record_1
34693
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "asdf"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34695
+ Processing by GreenFlag::Admin::RuleListsController#show as JS
34696
+ Parameters: {"feature_id"=>"6"}
34697
+ GreenFlag::Feature Load (0.5ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "6"]]
34698
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 6 AND (version_number = 1) ORDER BY order_by
34699
+ Completed 200 OK in 2.6ms (Views: 0.1ms | ActiveRecord: 0.9ms)
34700
+  (0.1ms) ROLLBACK
34701
+  (0.1ms) BEGIN
34702
+  (0.2ms) SAVEPOINT active_record_1
34703
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "asdf"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34704
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34705
+ Processing by GreenFlag::Admin::FeatureDecisionSummariesController#update as JS
34706
+ Parameters: {"feature_id"=>"7"}
34707
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "7"]]
34708
+  (0.4ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 7 AND "green_flag_feature_decisions"."enabled" = 't'
34709
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 7 AND "green_flag_feature_decisions"."enabled" = 'f'
34710
+ Completed 200 OK in 5.1ms (Views: 0.2ms | ActiveRecord: 1.0ms)
34711
+  (0.1ms) ROLLBACK
34712
+  (0.1ms) BEGIN
34713
+  (0.2ms) SAVEPOINT active_record_1
34714
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "asdf"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34715
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34716
+ Processing by GreenFlag::Admin::FeatureDecisionSummariesController#show as JS
34717
+ Parameters: {"feature_id"=>"8"}
34718
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "8"]]
34719
+  (0.4ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 8 AND "green_flag_feature_decisions"."enabled" = 't'
34720
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 8 AND "green_flag_feature_decisions"."enabled" = 'f'
34721
+ Completed 200 OK in 3.8ms (Views: 0.2ms | ActiveRecord: 1.0ms)
34722
+  (0.1ms) ROLLBACK
34723
+  (0.1ms) BEGIN
34724
+  (0.1ms) SAVEPOINT active_record_1
34725
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "huge_banner_ad"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34726
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34727
+  (0.1ms) SAVEPOINT active_record_1
34728
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 9], ["manual", false], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34729
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34730
+  (0.4ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 9 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34731
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 9 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34732
+  (0.2ms) SAVEPOINT active_record_1
34733
+ SQL (1.0ms) INSERT INTO "green_flag_feature_events" ("count", "created_at", "event_type_code", "feature_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["count", 1], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["event_type_code", 0], ["feature_id", 9], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34734
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34735
+ SQL (0.3ms) DELETE FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 9 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34736
+ GreenFlag::FeatureEvent Load (0.4ms) SELECT "green_flag_feature_events".* FROM "green_flag_feature_events" ORDER BY "green_flag_feature_events"."id" DESC LIMIT 1
34737
+  (0.2ms) ROLLBACK
34738
+  (0.1ms) BEGIN
34739
+  (0.1ms) SAVEPOINT active_record_1
34740
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "huge_banner_ad"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34741
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34742
+  (0.1ms) SAVEPOINT active_record_1
34743
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 10], ["manual", false], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34745
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 10 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34746
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 10 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34747
+  (0.1ms) SAVEPOINT active_record_1
34748
+ SQL (0.4ms) INSERT INTO "green_flag_feature_events" ("count", "created_at", "event_type_code", "feature_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["count", 1], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["event_type_code", 0], ["feature_id", 10], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34749
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34750
+ SQL (0.3ms) DELETE FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 10 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34751
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 10 AND "green_flag_feature_decisions"."enabled" = 't' AND (manual is not true)
34752
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."id" = 5 LIMIT 1
34753
+  (0.2ms) ROLLBACK
34754
+  (0.1ms) BEGIN
34755
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_events"
34756
+  (0.1ms) ROLLBACK
34757
+  (0.1ms) BEGIN
34758
+  (0.1ms) ROLLBACK
34759
+  (0.1ms) BEGIN
34760
+  (0.1ms) SAVEPOINT active_record_1
34761
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "big_font"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34763
+  (0.1ms) SAVEPOINT active_record_1
34764
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 11], ["manual", true], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34765
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34766
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_events" 
34767
+  (0.1ms) ROLLBACK
34768
+  (0.1ms) BEGIN
34769
+  (0.1ms) SAVEPOINT active_record_1
34770
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "big_font"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34772
+  (0.1ms) SAVEPOINT active_record_1
34773
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 12], ["manual", true], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34775
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."id" = 7 LIMIT 1
34776
+  (0.1ms) ROLLBACK
34777
+  (0.1ms) BEGIN
34778
+  (0.1ms) SAVEPOINT active_record_1
34779
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "foo"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34781
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_features"
34782
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'foo' LIMIT 1
34783
+  (0.6ms) SELECT COUNT(*) FROM "green_flag_features"
34784
+  (0.1ms) ROLLBACK
34785
+  (0.1ms) BEGIN
34786
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_features" 
34787
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'foo' LIMIT 1
34788
+  (0.1ms) SAVEPOINT active_record_1
34789
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "foo"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34791
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_features"
34792
+  (0.1ms) ROLLBACK
34793
+  (0.1ms) BEGIN
34794
+  (0.1ms) SAVEPOINT active_record_1
34795
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "big_font"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34797
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 15 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
34798
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."id" = 1 LIMIT 1
34799
+  (0.1ms) SAVEPOINT active_record_1
34800
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", false], ["feature_id", 15], ["manual", nil], ["rule_id", 3], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34802
+  (0.2ms) ROLLBACK
34803
+  (0.1ms) BEGIN
34804
+  (0.1ms) SAVEPOINT active_record_1
34805
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "big_font"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34807
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 16 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
34808
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 16 AND (version_number = 1) ORDER BY order_by
34809
+  (0.1ms) SAVEPOINT active_record_1
34810
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 16], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34812
+  (0.1ms) ROLLBACK
34813
+  (0.1ms) BEGIN
34814
+  (0.1ms) SAVEPOINT active_record_1
34815
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "big_font"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34817
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 17 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
34818
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."id" = 1 LIMIT 1
34819
+  (0.1ms) SAVEPOINT active_record_1
34820
+ SQL (0.4ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 17], ["manual", nil], ["rule_id", 2], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34822
+  (0.2ms) ROLLBACK
34823
+  (0.1ms) BEGIN
34824
+  (0.1ms) SAVEPOINT active_record_1
34825
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34827
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 18 ORDER BY version_number DESC LIMIT 1
34828
+  (0.1ms) ROLLBACK
34829
+  (0.1ms) BEGIN
34830
+  (0.1ms) SAVEPOINT active_record_1
34831
+ SQL (0.8ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34832
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34833
+  (0.1ms) SAVEPOINT active_record_1
34834
+ SQL (0.9ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 19], ["group_key", "Factory Test Group"], ["order_by", 1], ["percentage", 100], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 15]]
34835
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34836
+  (0.3ms) SAVEPOINT active_record_1
34837
+ SQL (0.5ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 19], ["group_key", "Factory Test Group"], ["order_by", 1], ["percentage", 100], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 14]]
34838
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34839
+  (0.1ms) SAVEPOINT active_record_1
34840
+ SQL (0.4ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 19], ["group_key", "Factory Test Group"], ["order_by", 1], ["percentage", 100], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 13]]
34841
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34842
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 19 ORDER BY version_number DESC LIMIT 1
34843
+  (0.2ms) ROLLBACK
34844
+  (0.1ms) BEGIN
34845
+  (0.1ms) ROLLBACK
34846
+  (0.1ms) BEGIN
34847
+  (0.1ms) ROLLBACK
34848
+  (0.1ms) BEGIN
34849
+  (0.1ms) SAVEPOINT active_record_1
34850
+ SQL (0.4ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", false], ["feature_id", 2], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 2], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34851
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34852
+  (0.1ms) ROLLBACK
34853
+  (0.1ms) BEGIN
34854
+  (0.2ms) ROLLBACK
34855
+  (0.1ms) BEGIN
34856
+  (0.1ms) SAVEPOINT active_record_1
34857
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34858
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34859
+  (0.1ms) SAVEPOINT active_record_1
34860
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", false], ["feature_id", 20], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34862
+  (0.1ms) SAVEPOINT active_record_1
34863
+ SQL (1.2ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", false], ["feature_id", 20], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 1], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34864
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_gf_feature_decisions_on_site_visitor_id_feature_id"
34865
+ DETAIL: Key (site_visitor_id, feature_id)=(1, 20) already exists.
34866
+ : 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"
34867
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
34868
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 20 AND "green_flag_feature_decisions"."site_visitor_id" = 1 LIMIT 1
34869
+  (0.1ms) ROLLBACK
34870
+  (0.1ms) BEGIN
34871
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_features" 
34872
+  (0.1ms) SAVEPOINT active_record_1
34873
+ SQL (0.6ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "123"]]
34874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34875
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34876
+  (0.1ms) SAVEPOINT active_record_1
34877
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34879
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 21 AND "green_flag_feature_decisions"."site_visitor_id" = 4 LIMIT 1
34880
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 21 AND (version_number = 1) ORDER BY order_by
34881
+  (0.1ms) SAVEPOINT active_record_1
34882
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 21], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 4], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34884
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_features"
34885
+  (0.2ms) ROLLBACK
34886
+  (0.1ms) BEGIN
34887
+  (0.1ms) SAVEPOINT active_record_1
34888
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34890
+  (0.1ms) SAVEPOINT active_record_1
34891
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "123"]]
34892
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34893
+  (0.1ms) SAVEPOINT active_record_1
34894
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", false], ["feature_id", 22], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 5], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34896
+  (0.1ms) SAVEPOINT active_record_1
34897
+  (0.3ms) UPDATE "green_flag_feature_decisions" SET "enabled" = 't', "updated_at" = '2015-08-07 00:29:29.440417' WHERE "green_flag_feature_decisions"."id" = 15
34898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34899
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34900
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 22 AND "green_flag_feature_decisions"."site_visitor_id" = 5 LIMIT 1
34901
+  (0.1ms) ROLLBACK
34902
+  (0.1ms) BEGIN
34903
+  (0.1ms) SAVEPOINT active_record_1
34904
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34906
+  (0.1ms) SAVEPOINT active_record_1
34907
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "123"]]
34908
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34909
+  (0.1ms) SAVEPOINT active_record_1
34910
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", false], ["feature_id", 23], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 6], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34912
+  (0.1ms) SAVEPOINT active_record_1
34913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34914
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34915
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 23 AND "green_flag_feature_decisions"."site_visitor_id" = 6 LIMIT 1
34916
+  (0.1ms) ROLLBACK
34917
+  (0.1ms) BEGIN
34918
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_feature_decisions"
34919
+  (0.1ms) SAVEPOINT active_record_1
34920
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "123"]]
34921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34922
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34923
+  (0.1ms) SAVEPOINT active_record_1
34924
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34926
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 24 AND "green_flag_feature_decisions"."site_visitor_id" = 7 LIMIT 1
34927
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 24 AND (version_number = 1) ORDER BY order_by
34928
+  (0.1ms) SAVEPOINT active_record_1
34929
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 24], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 7], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34931
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" 
34932
+  (0.1ms) ROLLBACK
34933
+  (0.1ms) BEGIN
34934
+  (0.2ms) SAVEPOINT active_record_1
34935
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "123"]]
34936
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34937
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34938
+  (0.1ms) SAVEPOINT active_record_1
34939
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34940
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34941
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 25 AND "green_flag_feature_decisions"."site_visitor_id" = 8 LIMIT 1
34942
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 25 AND (version_number = 1) ORDER BY order_by
34943
+  (0.1ms) SAVEPOINT active_record_1
34944
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 25], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 8], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34945
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34946
+  (0.2ms) ROLLBACK
34947
+  (0.1ms) BEGIN
34948
+  (0.2ms) SAVEPOINT active_record_1
34949
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "123"]]
34950
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34951
+  (0.1ms) SAVEPOINT active_record_1
34952
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34953
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34954
+  (0.1ms) SAVEPOINT active_record_1
34955
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 26], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 9], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34956
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34957
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34958
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
34959
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 26 AND "green_flag_feature_decisions"."site_visitor_id" = 9 LIMIT 1
34960
+  (0.1ms) SAVEPOINT active_record_1
34961
+  (0.4ms) UPDATE "green_flag_feature_decisions" SET "enabled" = 't', "manual" = 'f', "updated_at" = '2015-08-07 00:29:29.476532' WHERE "green_flag_feature_decisions"."id" = 19
34962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34963
+  (0.1ms) ROLLBACK
34964
+  (0.1ms) BEGIN
34965
+  (0.1ms) SAVEPOINT active_record_1
34966
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "123"]]
34967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34968
+  (0.1ms) SAVEPOINT active_record_1
34969
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34970
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34971
+  (0.1ms) SAVEPOINT active_record_1
34972
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 27], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 10], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34973
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34974
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions"
34975
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34976
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
34977
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 27 AND "green_flag_feature_decisions"."site_visitor_id" = 10 LIMIT 1
34978
+  (0.1ms) SAVEPOINT active_record_1
34979
+  (0.3ms) UPDATE "green_flag_feature_decisions" SET "enabled" = 't', "manual" = 'f', "updated_at" = '2015-08-07 00:29:29.487616' WHERE "green_flag_feature_decisions"."id" = 20
34980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34981
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" 
34982
+  (0.1ms) ROLLBACK
34983
+  (0.1ms) BEGIN
34984
+  (0.1ms) SAVEPOINT active_record_1
34985
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "123"]]
34986
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34987
+  (0.1ms) SAVEPOINT active_record_1
34988
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
34989
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34990
+  (0.1ms) SAVEPOINT active_record_1
34991
+ SQL (0.4ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", nil], ["feature_id", 28], ["manual", nil], ["rule_id", nil], ["site_visitor_id", 11], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
34992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34993
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
34994
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
34995
+ GreenFlag::FeatureDecision Load (0.4ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 28 AND "green_flag_feature_decisions"."site_visitor_id" = 11 LIMIT 1
34996
+  (0.1ms) SAVEPOINT active_record_1
34997
+  (0.3ms) UPDATE "green_flag_feature_decisions" SET "enabled" = 't', "manual" = 'f', "updated_at" = '2015-08-07 00:29:29.497937' WHERE "green_flag_feature_decisions"."id" = 21
34998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34999
+  (0.1ms) ROLLBACK
35000
+  (0.1ms) BEGIN
35001
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors" 
35002
+  (0.1ms) SAVEPOINT active_record_1
35003
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35004
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35005
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
35006
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35007
+  (0.1ms) SAVEPOINT active_record_1
35008
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "7b7ad23e-239e-494e-b960-6f0737ad43cc"]]
35009
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35010
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 29 AND "green_flag_feature_decisions"."site_visitor_id" = 12 LIMIT 1
35011
+  (0.1ms) SAVEPOINT active_record_1
35012
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 29], ["manual", false], ["rule_id", nil], ["site_visitor_id", 12], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
35013
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35014
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
35015
+  (0.1ms) ROLLBACK
35016
+  (0.1ms) BEGIN
35017
+  (0.1ms) SAVEPOINT active_record_1
35018
+ SQL (0.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_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35019
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35020
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
35021
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35022
+  (0.1ms) SAVEPOINT active_record_1
35023
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "4850499d-7fa7-4479-8787-0fc8fecd7d8d"]]
35024
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35025
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 30 AND "green_flag_feature_decisions"."site_visitor_id" = 13 LIMIT 1
35026
+  (0.1ms) SAVEPOINT active_record_1
35027
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 30], ["manual", false], ["rule_id", nil], ["site_visitor_id", 13], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
35028
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35029
+  (0.2ms) ROLLBACK
35030
+  (0.1ms) BEGIN
35031
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions" 
35032
+  (0.1ms) SAVEPOINT active_record_1
35033
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35035
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
35036
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35037
+  (0.1ms) SAVEPOINT active_record_1
35038
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "d4f4413e-bfc6-4ddf-b3fc-4eb3482d8c76"]]
35039
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35040
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 31 AND "green_flag_feature_decisions"."site_visitor_id" = 14 LIMIT 1
35041
+  (0.1ms) SAVEPOINT active_record_1
35042
+ SQL (0.3ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 31], ["manual", false], ["rule_id", nil], ["site_visitor_id", 14], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
35043
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35044
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_feature_decisions"
35045
+  (0.1ms) ROLLBACK
35046
+  (0.1ms) BEGIN
35047
+  (0.2ms) SAVEPOINT active_record_1
35048
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "test_feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35049
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35050
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'test_feature_code' LIMIT 1
35051
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35052
+  (0.1ms) SAVEPOINT active_record_1
35053
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "c2bf08e3-a292-4ddc-844d-0cf7a4569e53"]]
35054
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35055
+ GreenFlag::FeatureDecision Load (0.3ms) SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 32 AND "green_flag_feature_decisions"."site_visitor_id" = 15 LIMIT 1
35056
+  (0.1ms) SAVEPOINT active_record_1
35057
+ SQL (0.4ms) 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", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["enabled", true], ["feature_id", 32], ["manual", false], ["rule_id", nil], ["site_visitor_id", 15], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00]]
35058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35059
+  (0.2ms) ROLLBACK
35060
+  (0.1ms) BEGIN
35061
+  (0.2ms) SAVEPOINT active_record_1
35062
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35063
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35064
+ Started GET "/green_flag/admin/features" for 127.0.0.1 at 2015-08-06 20:29:29 -0400
35065
+ Processing by GreenFlag::Admin::FeaturesController#index as HTML
35066
+ GreenFlag::Feature Load (0.4ms) SELECT "green_flag_features".* FROM "green_flag_features"
35067
+ Completed 200 OK in 44.5ms (Views: 42.9ms | ActiveRecord: 0.4ms)
35068
+ Started GET "/green_flag/admin/features/33" for 127.0.0.1 at 2015-08-06 20:29:29 -0400
35069
+ Processing by GreenFlag::Admin::FeaturesController#show as HTML
35070
+ Parameters: {"id"=>"33"}
35071
+ GreenFlag::Feature Load (0.8ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "33"]]
35072
+ Completed 200 OK in 8.9ms (Views: 6.1ms | ActiveRecord: 0.8ms)
35073
+  (0.3ms) ROLLBACK
35074
+  (0.1ms) BEGIN
35075
+  (0.2ms) ROLLBACK
35076
+  (0.1ms) BEGIN
35077
+  (0.1ms) ROLLBACK
35078
+  (0.1ms) BEGIN
35079
+  (0.2ms) ROLLBACK
35080
+  (0.1ms) BEGIN
35081
+  (0.1ms) ROLLBACK
35082
+  (0.1ms) BEGIN
35083
+  (0.1ms) ROLLBACK
35084
+  (0.1ms) BEGIN
35085
+  (0.1ms) ROLLBACK
35086
+  (0.1ms) BEGIN
35087
+  (0.1ms) ROLLBACK
35088
+  (0.1ms) BEGIN
35089
+  (0.1ms) ROLLBACK
35090
+  (0.1ms) BEGIN
35091
+  (0.1ms) ROLLBACK
35092
+  (0.1ms) BEGIN
35093
+  (0.1ms) ROLLBACK
35094
+  (0.1ms) BEGIN
35095
+  (0.1ms) SAVEPOINT active_record_1
35096
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "foo"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", nil], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35098
+ Processing by GreenFlag::Admin::FeaturesController#show as HTML
35099
+ Parameters: {"id"=>"34"}
35100
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "34"]]
35101
+ Completed 200 OK in 2.1ms (Views: 0.9ms | ActiveRecord: 0.3ms)
35102
+  (0.2ms) ROLLBACK
35103
+  (0.1ms) BEGIN
35104
+ Processing by GreenFlag::Admin::FeaturesController#index as HTML
35105
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features"
35106
+ Completed 200 OK in 1.5ms (Views: 0.6ms | ActiveRecord: 0.3ms)
35107
+  (0.2ms) ROLLBACK
35108
+  (0.1ms) BEGIN
35109
+ Processing by GreenFlag::Admin::WhiteListUsersController#index as JS
35110
+ Parameters: {"feature_id"=>"1"}
35111
+ Completed 200 OK in 0.6ms (Views: 0.1ms | ActiveRecord: 0.0ms)
35112
+  (0.2ms) ROLLBACK
35113
+  (0.1ms) BEGIN
35114
+  (0.2ms) ROLLBACK
35115
+  (0.1ms) BEGIN
35116
+  (0.3ms) ROLLBACK
35117
+  (0.1ms) BEGIN
35118
+  (0.1ms) SAVEPOINT active_record_1
35119
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35121
+  (0.2ms) SAVEPOINT active_record_1
35122
+ SQL (0.5ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 35], ["group_key", "Factory Test Group"], ["order_by", 1], ["percentage", 100], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 10]]
35123
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35124
+ GreenFlag::Feature Load (0.3ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 35]]
35125
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 35 ORDER BY version_number DESC LIMIT 1
35126
+  (0.1ms) SAVEPOINT active_record_1
35127
+  (0.3ms) UPDATE "green_flag_features" SET "version_number" = 11, "updated_at" = '2015-08-07 00:29:29.686737' WHERE "green_flag_features"."id" = 35
35128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35129
+  (0.1ms) SAVEPOINT active_record_1
35130
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["feature_id", 35], ["group_key", "Pre-existing Visitors"], ["order_by", 0], ["percentage", 22], ["updated_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["version_number", 11]]
35131
+ SQL (0.5ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 35], ["group_key", "Everyone"], ["order_by", 1], ["percentage", 40], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 11]]
35132
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35133
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 35]]
35134
+  (0.1ms) ROLLBACK
35135
+  (0.1ms) BEGIN
35136
+  (0.2ms) SAVEPOINT active_record_1
35137
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35138
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35139
+  (0.1ms) ROLLBACK
35140
+  (0.1ms) BEGIN
35141
+  (0.2ms) SAVEPOINT active_record_1
35142
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35143
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35144
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 37]]
35145
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 37 ORDER BY version_number DESC LIMIT 1
35146
+  (0.1ms) SAVEPOINT active_record_1
35147
+  (0.3ms) UPDATE "green_flag_features" SET "version_number" = 2, "updated_at" = '2015-08-07 00:29:29.700307' WHERE "green_flag_features"."id" = 37
35148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35149
+  (0.1ms) SAVEPOINT active_record_1
35150
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["feature_id", 37], ["group_key", "Pre-existing Visitors"], ["order_by", 0], ["percentage", 22], ["updated_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["version_number", 2]]
35151
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 37], ["group_key", "Everyone"], ["order_by", 1], ["percentage", 40], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 2]]
35152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35153
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 37]]
35154
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 37 AND (version_number = 2) ORDER BY order_by LIMIT 1
35155
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 37 AND (version_number = 2) ORDER BY order_by DESC LIMIT 1
35156
+  (0.1ms) ROLLBACK
35157
+  (0.2ms) BEGIN
35158
+  (0.1ms) SAVEPOINT active_record_1
35159
+ SQL (0.3ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35160
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35161
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 38]]
35162
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 38 ORDER BY version_number DESC LIMIT 1
35163
+  (0.1ms) SAVEPOINT active_record_1
35164
+  (0.4ms) UPDATE "green_flag_features" SET "version_number" = 2, "updated_at" = '2015-08-07 00:29:29.710850' WHERE "green_flag_features"."id" = 38
35165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35166
+  (0.1ms) SAVEPOINT active_record_1
35167
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["feature_id", 38], ["group_key", "Pre-existing Visitors"], ["order_by", 0], ["percentage", 22], ["updated_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["version_number", 2]]
35168
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 38], ["group_key", "Everyone"], ["order_by", 1], ["percentage", 40], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 2]]
35169
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35170
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 38]]
35171
+  (0.2ms) ROLLBACK
35172
+  (0.1ms) BEGIN
35173
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_rules"
35174
+  (0.1ms) SAVEPOINT active_record_1
35175
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35176
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35177
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 39]]
35178
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 39 ORDER BY version_number DESC LIMIT 1
35179
+  (0.1ms) SAVEPOINT active_record_1
35180
+  (0.3ms) UPDATE "green_flag_features" SET "version_number" = 2, "updated_at" = '2015-08-07 00:29:29.721110' WHERE "green_flag_features"."id" = 39
35181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35182
+  (0.1ms) SAVEPOINT active_record_1
35183
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["feature_id", 39], ["group_key", "Pre-existing Visitors"], ["order_by", 0], ["percentage", 22], ["updated_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["version_number", 2]]
35184
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 39], ["group_key", "Everyone"], ["order_by", 1], ["percentage", 40], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 2]]
35185
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35186
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_rules" 
35187
+  (0.1ms) ROLLBACK
35188
+  (0.1ms) BEGIN
35189
+  (0.1ms) SAVEPOINT active_record_1
35190
+ SQL (0.4ms) INSERT INTO "green_flag_features" ("code", "created_at", "description", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["code", "feature_code"], ["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["description", "Feature Description"], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 1]]
35191
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35192
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 40]]
35193
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 40 ORDER BY version_number DESC LIMIT 1
35194
+  (0.1ms) SAVEPOINT active_record_1
35195
+  (0.3ms) UPDATE "green_flag_features" SET "version_number" = 2, "updated_at" = '2015-08-07 00:29:29.730353' WHERE "green_flag_features"."id" = 40
35196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35197
+  (0.1ms) SAVEPOINT active_record_1
35198
+ SQL (0.3ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["feature_id", 40], ["group_key", "Pre-existing Visitors"], ["order_by", 0], ["percentage", 22], ["updated_at", Wed, 18 Feb 2015 18:30:56 UTC +00:00], ["version_number", 2]]
35199
+ SQL (0.4ms) INSERT INTO "green_flag_rules" ("created_at", "feature_id", "group_key", "order_by", "percentage", "updated_at", "version_number") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["feature_id", 40], ["group_key", "Everyone"], ["order_by", 1], ["percentage", 40], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["version_number", 2]]
35200
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35201
+ GreenFlag::Feature Load (0.2ms) SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", 40]]
35202
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 40 AND (version_number = 2) ORDER BY order_by LIMIT 1
35203
+ GreenFlag::Rule Load (0.4ms) SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 40 AND (version_number = 2) ORDER BY order_by DESC LIMIT 1
35204
+  (0.1ms) ROLLBACK
35205
+  (0.1ms) BEGIN
35206
+  (0.2ms) SAVEPOINT active_record_1
35207
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "asdf2"]]
35208
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35209
+  (0.1ms) SAVEPOINT active_record_1
35210
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 2], ["visitor_code", "asdf"]]
35211
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35212
+  (0.1ms) ROLLBACK
35213
+  (0.1ms) BEGIN
35214
+  (0.1ms) SAVEPOINT active_record_1
35215
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "asdf2"]]
35216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35217
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35218
+  (0.1ms) ROLLBACK
35219
+  (0.1ms) BEGIN
35220
+  (0.1ms) SAVEPOINT active_record_1
35221
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "asdf2"]]
35222
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35223
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
35224
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35225
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
35226
+  (0.1ms) ROLLBACK
35227
+  (0.1ms) BEGIN
35228
+  (0.2ms) SAVEPOINT active_record_1
35229
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "asdf2"]]
35230
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35231
+  (0.1ms) SAVEPOINT active_record_1
35232
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "asdf"]]
35233
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35234
+ GreenFlag::SiteVisitor Load (0.4ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35235
+  (0.1ms) ROLLBACK
35236
+  (0.1ms) BEGIN
35237
+  (0.2ms) SAVEPOINT active_record_1
35238
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 2], ["visitor_code", "asdf"]]
35239
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35240
+  (0.2ms) ROLLBACK
35241
+  (0.1ms) BEGIN
35242
+  (0.1ms) SAVEPOINT active_record_1
35243
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 2], ["visitor_code", "asdf"]]
35244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35245
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
35246
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35247
+  (0.1ms) SAVEPOINT active_record_1
35248
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "4b75d2bb-6d40-497b-a955-e6592fd97212"]]
35249
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35250
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors" 
35251
+  (0.1ms) ROLLBACK
35252
+  (0.1ms) BEGIN
35253
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35254
+  (0.1ms) SAVEPOINT active_record_1
35255
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "663ee5bc-127d-4ac6-9e40-1e333dee1307"]]
35256
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35257
+  (0.2ms) ROLLBACK
35258
+  (0.1ms) BEGIN
35259
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
35260
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35261
+  (0.1ms) SAVEPOINT active_record_1
35262
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", 1], ["visitor_code", "2ce192cc-7bce-4fb4-8489-f89f62d75341"]]
35263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35264
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors" 
35265
+  (0.1ms) ROLLBACK
35266
+  (0.1ms) BEGIN
35267
+  (0.1ms) SAVEPOINT active_record_1
35268
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "asdf"]]
35269
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35270
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35271
+  (0.1ms) SAVEPOINT active_record_1
35272
+  (0.3ms) UPDATE "green_flag_site_visitors" SET "user_id" = 1, "updated_at" = '2015-08-07 00:29:29.807758' WHERE "green_flag_site_visitors"."id" = 27
35273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35274
+  (0.1ms) ROLLBACK
35275
+  (0.1ms) BEGIN
35276
+  (0.1ms) SAVEPOINT active_record_1
35277
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "asdf"]]
35278
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35279
+  (0.3ms) SELECT COUNT(*) FROM "green_flag_site_visitors"
35280
+ GreenFlag::SiteVisitor Load (0.3ms) SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
35281
+  (0.1ms) SAVEPOINT active_record_1
35282
+  (0.3ms) UPDATE "green_flag_site_visitors" SET "user_id" = 1, "updated_at" = '2015-08-07 00:29:29.813397' WHERE "green_flag_site_visitors"."id" = 28
35283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35284
+  (0.2ms) SELECT COUNT(*) FROM "green_flag_site_visitors" 
35285
+  (0.1ms) ROLLBACK
35286
+  (0.1ms) BEGIN
35287
+  (0.1ms) SAVEPOINT active_record_1
35288
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "asdf"]]
35289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35290
+  (0.2ms) ROLLBACK
35291
+  (0.1ms) BEGIN
35292
+  (0.1ms) SAVEPOINT active_record_1
35293
+ SQL (0.3ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "asdf"]]
35294
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35295
+  (0.2ms) ROLLBACK
35296
+  (0.1ms) BEGIN
35297
+  (0.1ms) SAVEPOINT active_record_1
35298
+ SQL (0.4ms) INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["updated_at", Fri, 07 Aug 2015 00:29:29 UTC +00:00], ["user_id", nil], ["visitor_code", "asdf"]]
35299
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35300
+  (0.2ms) ROLLBACK