we_bridge_rails_engine_orgs 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -3654,3 +3654,1781 @@ Migrating to CreateOrgDepartmentPositions (20151204183612)
3654
3654
   (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
3655
3655
  OrgMember Load (0.1ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
3656
3656
   (0.6ms) rollback transaction
3657
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3658
+  (1.5ms) CREATE TABLE "lang_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3659
+  (0.1ms) select sqlite_version(*)
3660
+  (1.2ms) CREATE UNIQUE INDEX "index_lang_texts_on_parent_id_and_lang_id" ON "lang_texts" ("parent_id", "lang_id")
3661
+  (1.3ms) CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 10000 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3662
+  (1.1ms) CREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")
3663
+  (1.0ms) CREATE TABLE "org_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3664
+  (1.2ms) CREATE TABLE "org_activity_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3665
+  (1.3ms) CREATE UNIQUE INDEX "index_org_activity_texts_on_lang_id_and_parent_id" ON "org_activity_texts" ("lang_id", "parent_id")
3666
+  (1.3ms) CREATE TABLE "org_branch_member_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_member_id" integer NOT NULL, "org_branch_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3667
+  (1.4ms) CREATE UNIQUE INDEX "index_org_branch_member_mappings" ON "org_branch_member_mappings" ("org_member_id", "org_branch_id")
3668
+  (1.2ms) CREATE TABLE "org_branch_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3669
+  (1.6ms) CREATE UNIQUE INDEX "index_org_branch_texts" ON "org_branch_texts" ("parent_id", "lang_id")
3670
+  (1.3ms) CREATE TABLE "org_branch_type_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "desc" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3671
+  (1.2ms) CREATE UNIQUE INDEX "index_org_branch_type_texts" ON "org_branch_type_texts" ("parent_id", "lang_id")
3672
+  (1.3ms) CREATE TABLE "org_branch_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3673
+  (1.4ms) CREATE TABLE "org_branches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_branch_type_id" integer NOT NULL, "org_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer DEFAULT 0 NOT NULL)
3674
+  (1.3ms) CREATE TABLE "org_department_position_member_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_department_position_id" integer NOT NULL, "org_member_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3675
+  (1.2ms) CREATE UNIQUE INDEX "index_org_department_position_member_mappings" ON "org_department_position_member_mappings" ("org_department_position_id", "org_member_id")
3676
+  (1.0ms) CREATE TABLE "org_department_position_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar DEFAULT '' NOT NULL, "desc" text DEFAULT '' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3677
+  (1.2ms) CREATE UNIQUE INDEX "index_org_department_position_texts" ON "org_department_position_texts" ("lang_id", "parent_id")
3678
+  (1.4ms) CREATE TABLE "org_department_positions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_department_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "limit" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3679
+  (1.5ms) CREATE TABLE "org_department_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar DEFAULT '' NOT NULL, "desc" text DEFAULT '' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3680
+  (1.3ms) CREATE UNIQUE INDEX "index_org_department_texts" ON "org_department_texts" ("lang_id", "parent_id")
3681
+  (1.3ms) CREATE TABLE "org_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "manager_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3682
+  (1.4ms) CREATE TABLE "org_director_type_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "desc" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3683
+  (1.5ms) CREATE UNIQUE INDEX "index_org_director_type_texts_on_parent_id_and_lang_id" ON "org_director_type_texts" ("parent_id", "lang_id")
3684
+  (1.5ms) CREATE TABLE "org_director_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "limit" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3685
+  (1.2ms) CREATE TABLE "org_member_tag_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_member_tag_id" integer NOT NULL, "org_member_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3686
+  (1.0ms) CREATE UNIQUE INDEX "index_org_member_tag_mappings" ON "org_member_tag_mappings" ("org_member_tag_id", "org_member_id")
3687
+  (1.1ms) CREATE TABLE "org_member_tag_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3688
+  (1.0ms) CREATE UNIQUE INDEX "index_org_member_tag_texts_on_lang_id_and_parent_id" ON "org_member_tag_texts" ("lang_id", "parent_id")
3689
+  (1.1ms) CREATE TABLE "org_member_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3690
+  (1.1ms) CREATE TABLE "org_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "family_name" varchar DEFAULT '' NOT NULL, "given_name" varchar DEFAULT '' NOT NULL, "family_name_pron" varchar DEFAULT '' NOT NULL, "given_name_pron" varchar DEFAULT '' NOT NULL) 
3691
+  (1.0ms) CREATE UNIQUE INDEX "index_org_member_texts_on_lang_id_and_parent_id" ON "org_member_texts" ("lang_id", "parent_id")
3692
+  (1.0ms) CREATE TABLE "org_member_type_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "desc" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3693
+  (1.1ms) CREATE UNIQUE INDEX "index_org_member_type_texts_on_lang_id_and_parent_id" ON "org_member_type_texts" ("lang_id", "parent_id")
3694
+  (1.1ms) CREATE TABLE "org_member_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3695
+  (1.1ms) CREATE TABLE "org_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer, "user_id" integer, "lang_id" integer, "type_id" integer DEFAULT 0 NOT NULL, "org_director_type_id" integer, "org_member_type_id" integer, "byear" integer, "bmonth" integer, "bday" integer, "entried_on" date NOT NULL, "sex" integer(1), "expire_at" datetime, "retired_on" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "handle_name" varchar DEFAULT '' NOT NULL)
3696
+  (1.2ms) CREATE TABLE "org_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar, "description" text, "www_author" varchar, "www_keywords" varchar, "address" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3697
+  (1.0ms) CREATE UNIQUE INDEX "index_org_texts" ON "org_texts" ("lang_id", "parent_id")
3698
+  (1.0ms) CREATE TABLE "orgs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "lang_id" integer NOT NULL, "email" varchar, "url" varchar, "domain" varchar, "started_on" date, "post_number" varchar, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3699
+  (1.0ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sex" integer DEFAULT 1 NOT NULL, "birth_year" integer DEFAULT 0 NOT NULL, "birth_month" integer DEFAULT 0 NOT NULL, "birth_day" integer DEFAULT 0 NOT NULL, "blood_type" varchar, "created_by" integer NOT NULL, "updated_by" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
3700
+  (1.2ms) CREATE TABLE "person_name_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "first_name" varchar, "first_name_pron" varchar, "last_name" varchar, "last_name_pron" varchar) 
3701
+  (1.2ms) CREATE UNIQUE INDEX "idx_person_name_texts" ON "person_name_texts" ("parent_id", "lang_id")
3702
+  (1.1ms) CREATE TABLE "person_names" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer NOT NULL, "revision" integer DEFAULT 0 NOT NULL, "modified_on" date NOT NULL, "created_at" datetime, "updated_at" datetime) 
3703
+  (1.2ms) CREATE UNIQUE INDEX "index_person_names_on_person_id_and_revision" ON "person_names" ("person_id", "revision")
3704
+  (1.2ms) CREATE TABLE "person_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "created_by" integer NOT NULL, "updated_by" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
3705
+  (1.2ms) CREATE UNIQUE INDEX "index_person_texts_on_parent_id_and_lang_id" ON "person_texts" ("parent_id", "lang_id")
3706
+  (1.2ms) CREATE TABLE "user_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "provider" varchar NOT NULL, "uid" varchar NOT NULL, "token" varchar, "name" varchar, "nickname" varchar, "email" varchar, "url" varchar, "image_url" varchar, "description" varchar, "other" text, "credentials" text, "raw_info" text, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
3707
+  (1.4ms) CREATE UNIQUE INDEX "index_user_accounts_on_uid" ON "user_accounts" ("uid")
3708
+  (1.2ms) CREATE TABLE "user_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "nick_name" varchar, "nick_name_pron" varchar, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
3709
+  (1.1ms) CREATE UNIQUE INDEX "index_user_texts_on_lang_id_and_parent_id" ON "user_texts" ("lang_id", "parent_id")
3710
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "email" varchar, "user_img_url" varchar, "lang_id" integer NOT NULL, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
3711
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3712
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3713
+  (0.1ms) SELECT version FROM "schema_migrations"
3714
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151204183612')
3715
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150812025526')
3716
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150814183339')
3717
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151009112829')
3718
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151203153522')
3719
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151204024709')
3720
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151204183447')
3721
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803101150')
3722
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150814101311')
3723
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150612005752')
3724
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150712132226')
3725
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3726
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3727
+ Migrating to AddSecretColumnToOrgMembers (20151216145030)
3728
+  (0.1ms) begin transaction
3729
+  (0.7ms) ALTER TABLE "org_members" ADD "private" boolean DEFAULT 'f' NOT NULL
3730
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151216145030"]]
3731
+  (1.1ms) commit transaction
3732
+ Migrating to AddUuidColumnToOrgMembers (20151216145424)
3733
+  (0.1ms) begin transaction
3734
+  (0.2ms) ALTER TABLE "org_members" ADD "uuid" varchar(40) NOT NULL
3735
+  (0.1ms) rollback transaction
3736
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3737
+ Migrating to AddUuidColumnToOrgMembers (20151216145424)
3738
+  (0.1ms) begin transaction
3739
+  (0.5ms) ALTER TABLE "org_members" ADD "uuid" varchar(40) DEFAULT '' NOT NULL
3740
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151216145424"]]
3741
+  (9.3ms) commit transaction
3742
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3743
+  (0.1ms)  SELECT sql
3744
+ FROM sqlite_master
3745
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
3746
+ UNION ALL
3747
+ SELECT sql
3748
+ FROM sqlite_temp_master
3749
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
3750
+ 
3751
+  (0.1ms) SELECT sql
3752
+ FROM sqlite_master
3753
+ WHERE name='index_langs_on_code' AND type='index'
3754
+ UNION ALL
3755
+ SELECT sql
3756
+ FROM sqlite_temp_master
3757
+ WHERE name='index_langs_on_code' AND type='index'
3758
+
3759
+  (0.1ms)  SELECT sql
3760
+ FROM sqlite_master
3761
+ WHERE name='index_org_activity_texts_on_lang_id_and_parent_id' AND type='index'
3762
+ UNION ALL
3763
+ SELECT sql
3764
+ FROM sqlite_temp_master
3765
+ WHERE name='index_org_activity_texts_on_lang_id_and_parent_id' AND type='index'
3766
+ 
3767
+  (0.1ms) SELECT sql
3768
+ FROM sqlite_master
3769
+ WHERE name='index_org_branch_member_mappings' AND type='index'
3770
+ UNION ALL
3771
+ SELECT sql
3772
+ FROM sqlite_temp_master
3773
+ WHERE name='index_org_branch_member_mappings' AND type='index'
3774
+
3775
+  (0.1ms)  SELECT sql
3776
+ FROM sqlite_master
3777
+ WHERE name='index_org_branch_texts' AND type='index'
3778
+ UNION ALL
3779
+ SELECT sql
3780
+ FROM sqlite_temp_master
3781
+ WHERE name='index_org_branch_texts' AND type='index'
3782
+ 
3783
+  (0.1ms) SELECT sql
3784
+ FROM sqlite_master
3785
+ WHERE name='index_org_branch_type_texts' AND type='index'
3786
+ UNION ALL
3787
+ SELECT sql
3788
+ FROM sqlite_temp_master
3789
+ WHERE name='index_org_branch_type_texts' AND type='index'
3790
+
3791
+  (0.1ms)  SELECT sql
3792
+ FROM sqlite_master
3793
+ WHERE name='index_org_department_position_member_mappings' AND type='index'
3794
+ UNION ALL
3795
+ SELECT sql
3796
+ FROM sqlite_temp_master
3797
+ WHERE name='index_org_department_position_member_mappings' AND type='index'
3798
+ 
3799
+  (0.1ms) SELECT sql
3800
+ FROM sqlite_master
3801
+ WHERE name='index_org_department_position_texts' AND type='index'
3802
+ UNION ALL
3803
+ SELECT sql
3804
+ FROM sqlite_temp_master
3805
+ WHERE name='index_org_department_position_texts' AND type='index'
3806
+
3807
+  (0.2ms)  SELECT sql
3808
+ FROM sqlite_master
3809
+ WHERE name='index_org_department_texts' AND type='index'
3810
+ UNION ALL
3811
+ SELECT sql
3812
+ FROM sqlite_temp_master
3813
+ WHERE name='index_org_department_texts' AND type='index'
3814
+ 
3815
+  (0.1ms) SELECT sql
3816
+ FROM sqlite_master
3817
+ WHERE name='index_org_director_type_texts_on_parent_id_and_lang_id' AND type='index'
3818
+ UNION ALL
3819
+ SELECT sql
3820
+ FROM sqlite_temp_master
3821
+ WHERE name='index_org_director_type_texts_on_parent_id_and_lang_id' AND type='index'
3822
+
3823
+  (0.1ms)  SELECT sql
3824
+ FROM sqlite_master
3825
+ WHERE name='index_org_member_tag_mappings' AND type='index'
3826
+ UNION ALL
3827
+ SELECT sql
3828
+ FROM sqlite_temp_master
3829
+ WHERE name='index_org_member_tag_mappings' AND type='index'
3830
+ 
3831
+  (0.1ms) SELECT sql
3832
+ FROM sqlite_master
3833
+ WHERE name='index_org_member_tag_texts_on_lang_id_and_parent_id' AND type='index'
3834
+ UNION ALL
3835
+ SELECT sql
3836
+ FROM sqlite_temp_master
3837
+ WHERE name='index_org_member_tag_texts_on_lang_id_and_parent_id' AND type='index'
3838
+
3839
+  (0.1ms)  SELECT sql
3840
+ FROM sqlite_master
3841
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
3842
+ UNION ALL
3843
+ SELECT sql
3844
+ FROM sqlite_temp_master
3845
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
3846
+ 
3847
+  (0.2ms) SELECT sql
3848
+ FROM sqlite_master
3849
+ WHERE name='index_org_member_type_texts_on_lang_id_and_parent_id' AND type='index'
3850
+ UNION ALL
3851
+ SELECT sql
3852
+ FROM sqlite_temp_master
3853
+ WHERE name='index_org_member_type_texts_on_lang_id_and_parent_id' AND type='index'
3854
+
3855
+  (0.2ms)  SELECT sql
3856
+ FROM sqlite_master
3857
+ WHERE name='index_org_texts' AND type='index'
3858
+ UNION ALL
3859
+ SELECT sql
3860
+ FROM sqlite_temp_master
3861
+ WHERE name='index_org_texts' AND type='index'
3862
+ 
3863
+  (0.1ms) SELECT sql
3864
+ FROM sqlite_master
3865
+ WHERE name='idx_person_name_texts' AND type='index'
3866
+ UNION ALL
3867
+ SELECT sql
3868
+ FROM sqlite_temp_master
3869
+ WHERE name='idx_person_name_texts' AND type='index'
3870
+
3871
+  (0.1ms)  SELECT sql
3872
+ FROM sqlite_master
3873
+ WHERE name='index_person_names_on_person_id_and_revision' AND type='index'
3874
+ UNION ALL
3875
+ SELECT sql
3876
+ FROM sqlite_temp_master
3877
+ WHERE name='index_person_names_on_person_id_and_revision' AND type='index'
3878
+ 
3879
+  (0.1ms) SELECT sql
3880
+ FROM sqlite_master
3881
+ WHERE name='index_person_texts_on_parent_id_and_lang_id' AND type='index'
3882
+ UNION ALL
3883
+ SELECT sql
3884
+ FROM sqlite_temp_master
3885
+ WHERE name='index_person_texts_on_parent_id_and_lang_id' AND type='index'
3886
+
3887
+  (0.1ms)  SELECT sql
3888
+ FROM sqlite_master
3889
+ WHERE name='index_user_accounts_on_uid' AND type='index'
3890
+ UNION ALL
3891
+ SELECT sql
3892
+ FROM sqlite_temp_master
3893
+ WHERE name='index_user_accounts_on_uid' AND type='index'
3894
+ 
3895
+  (0.1ms) SELECT sql
3896
+ FROM sqlite_master
3897
+ WHERE name='index_user_texts_on_lang_id_and_parent_id' AND type='index'
3898
+ UNION ALL
3899
+ SELECT sql
3900
+ FROM sqlite_temp_master
3901
+ WHERE name='index_user_texts_on_lang_id_and_parent_id' AND type='index'
3902
+
3903
+  (9.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
3904
+  (0.1ms) select sqlite_version(*)
3905
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3906
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3907
+ Migrating to CreatePeople (20150612005752)
3908
+  (0.1ms) begin transaction
3909
+  (0.5ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sex" integer DEFAULT 1 NOT NULL, "birth_year" integer DEFAULT 0 NOT NULL, "birth_month" integer DEFAULT 0 NOT NULL, "birth_day" integer DEFAULT 0 NOT NULL, "blood_type" varchar, "created_by" integer NOT NULL, "updated_by" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
3910
+  (0.2ms) CREATE TABLE "person_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "created_by" integer NOT NULL, "updated_by" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
3911
+  (0.4ms) CREATE UNIQUE INDEX "index_person_texts_on_parent_id_and_lang_id" ON "person_texts" ("parent_id", "lang_id")
3912
+  (0.3ms) CREATE TABLE "person_names" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer NOT NULL, "revision" integer DEFAULT 0 NOT NULL, "modified_on" date NOT NULL, "created_at" datetime, "updated_at" datetime) 
3913
+  (0.4ms) CREATE UNIQUE INDEX "index_person_names_on_person_id_and_revision" ON "person_names" ("person_id", "revision")
3914
+  (0.2ms) CREATE TABLE "person_name_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "first_name" varchar, "first_name_pron" varchar, "last_name" varchar, "last_name_pron" varchar) 
3915
+  (0.3ms) CREATE UNIQUE INDEX "idx_person_name_texts" ON "person_name_texts" ("parent_id", "lang_id")
3916
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150612005752"]]
3917
+  (1.2ms) commit transaction
3918
+ Migrating to AddUsers (20150712132226)
3919
+  (0.1ms) begin transaction
3920
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "email" varchar, "user_img_url" varchar, "lang_id" integer NOT NULL, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime)
3921
+  (0.2ms) CREATE TABLE "user_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "nick_name" varchar, "nick_name_pron" varchar, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
3922
+  (0.3ms) CREATE UNIQUE INDEX "index_user_texts_on_lang_id_and_parent_id" ON "user_texts" ("lang_id", "parent_id")
3923
+  (0.3ms) CREATE TABLE "user_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "provider" varchar NOT NULL, "uid" varchar NOT NULL, "token" varchar, "name" varchar, "nickname" varchar, "email" varchar, "url" varchar, "image_url" varchar, "description" varchar, "other" text, "credentials" text, "raw_info" text, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) 
3924
+  (0.1ms) CREATE UNIQUE INDEX "index_user_accounts_on_uid" ON "user_accounts" ("uid")
3925
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150712132226"]]
3926
+  (0.9ms) commit transaction
3927
+ Migrating to CreateLangs (20150803101150)
3928
+  (0.1ms) begin transaction
3929
+  (0.4ms) CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3930
+  (0.3ms) CREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")
3931
+  (0.1ms) CREATE TABLE "lang_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3932
+  (0.1ms) CREATE UNIQUE INDEX "index_lang_texts_on_parent_id_and_lang_id" ON "lang_texts" ("parent_id", "lang_id")
3933
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150803101150"]]
3934
+  (1.4ms) commit transaction
3935
+ Migrating to CreateOrgs (20150812025526)
3936
+  (0.1ms) begin transaction
3937
+  (0.9ms) CREATE TABLE "orgs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "lang_id" integer NOT NULL, "email" varchar, "url" varchar, "domain" varchar, "started_on" date, "post_number" varchar, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3938
+  (0.4ms) CREATE TABLE "org_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar, "description" text, "www_author" varchar, "www_keywords" varchar, "address" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3939
+  (1.1ms) CREATE UNIQUE INDEX "index_org_texts" ON "org_texts" ("lang_id", "parent_id")
3940
+  (0.4ms) CREATE TABLE "org_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3941
+  (0.2ms) CREATE TABLE "org_activity_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3942
+  (0.2ms) CREATE UNIQUE INDEX "index_org_activity_texts_on_lang_id_and_parent_id" ON "org_activity_texts" ("lang_id", "parent_id")
3943
+  (0.2ms) CREATE TABLE "org_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer, "user_id" integer, "lang_id" integer, "type_id" integer DEFAULT 0 NOT NULL, "org_director_type_id" integer, "org_member_type_id" integer, "byear" integer, "bmonth" integer, "bday" integer, "entried_on" date NOT NULL, "sex" integer(1), "expire_at" datetime, "retired_on" date, "handle_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3944
+  (0.2ms) CREATE TABLE "org_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "family_name" varchar, "given_name" varchar, "family_name_pron" varchar, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3945
+  (0.2ms) CREATE UNIQUE INDEX "index_org_member_texts_on_lang_id_and_parent_id" ON "org_member_texts" ("lang_id", "parent_id")
3946
+  (0.2ms) CREATE TABLE "org_member_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3947
+  (0.2ms) CREATE TABLE "org_member_type_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "desc" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3948
+  (0.3ms) CREATE UNIQUE INDEX "index_org_member_type_texts_on_lang_id_and_parent_id" ON "org_member_type_texts" ("lang_id", "parent_id")
3949
+  (0.2ms) CREATE TABLE "org_member_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3950
+  (0.1ms) CREATE TABLE "org_member_tag_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3951
+  (0.2ms) CREATE UNIQUE INDEX "index_org_member_tag_texts_on_lang_id_and_parent_id" ON "org_member_tag_texts" ("lang_id", "parent_id")
3952
+  (0.1ms) CREATE TABLE "org_member_tag_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_member_tag_id" integer NOT NULL, "org_member_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3953
+  (0.1ms) CREATE UNIQUE INDEX "index_org_member_tag_mappings" ON "org_member_tag_mappings" ("org_member_tag_id", "org_member_id")
3954
+  (0.1ms) CREATE TABLE "org_director_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "limit" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3955
+  (0.1ms) CREATE TABLE "org_director_type_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "desc" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3956
+  (0.1ms) CREATE UNIQUE INDEX "index_org_director_type_texts_on_parent_id_and_lang_id" ON "org_director_type_texts" ("parent_id", "lang_id")
3957
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150812025526"]]
3958
+  (1.4ms) commit transaction
3959
+ Migrating to ModifyLangPositionDefault (20150814101311)
3960
+  (0.1ms) begin transaction
3961
+  (0.6ms) CREATE TEMPORARY TABLE "alangs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3962
+  (0.1ms)  SELECT sql
3963
+ FROM sqlite_master
3964
+ WHERE name='index_langs_on_code' AND type='index'
3965
+ UNION ALL
3966
+ SELECT sql
3967
+ FROM sqlite_temp_master
3968
+ WHERE name='index_langs_on_code' AND type='index'
3969
+ 
3970
+  (0.4ms) CREATE UNIQUE INDEX "tindex_alangs_on_code" ON "alangs" ("code")
3971
+  (0.1ms) SELECT * FROM "langs"
3972
+  (0.3ms) DROP TABLE "langs"
3973
+  (0.2ms) CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 10000 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3974
+  (0.1ms) SELECT sql
3975
+ FROM sqlite_master
3976
+ WHERE name='tindex_alangs_on_code' AND type='index'
3977
+ UNION ALL
3978
+ SELECT sql
3979
+ FROM sqlite_temp_master
3980
+ WHERE name='tindex_alangs_on_code' AND type='index'
3981
+
3982
+  (0.3ms) CREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")
3983
+  (0.1ms) SELECT * FROM "alangs"
3984
+  (0.4ms) DROP TABLE "alangs"
3985
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150814101311"]]
3986
+  (1.5ms) commit transaction
3987
+ Migrating to CreateOrgBranchesTable (20150814183339)
3988
+  (0.1ms) begin transaction
3989
+  (0.3ms) CREATE TABLE "org_branch_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3990
+  (0.1ms) CREATE TABLE "org_branch_type_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "desc" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3991
+  (0.3ms) CREATE UNIQUE INDEX "index_org_branch_type_texts" ON "org_branch_type_texts" ("parent_id", "lang_id")
3992
+  (0.1ms) CREATE TABLE "org_branches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_branch_type_id" integer NOT NULL, "org_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3993
+  (0.1ms) CREATE TABLE "org_branch_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3994
+  (0.1ms) CREATE UNIQUE INDEX "index_org_branch_texts" ON "org_branch_texts" ("parent_id", "lang_id")
3995
+  (0.1ms) CREATE TABLE "org_branch_member_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_member_id" integer NOT NULL, "org_branch_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3996
+  (0.1ms) CREATE UNIQUE INDEX "index_org_branch_member_mappings" ON "org_branch_member_mappings" ("org_member_id", "org_branch_id")
3997
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150814183339"]]
3998
+  (1.2ms) commit transaction
3999
+ Migrating to DeleteNames (20151009112829)
4000
+  (0.1ms) begin transaction
4001
+  (0.3ms) CREATE TEMPORARY TABLE "aorg_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer, "user_id" integer, "lang_id" integer, "type_id" integer DEFAULT 0 NOT NULL, "org_director_type_id" integer, "org_member_type_id" integer, "byear" integer, "bmonth" integer, "bday" integer, "entried_on" date NOT NULL, "sex" integer(1), "expire_at" datetime, "retired_on" date, "handle_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4002
+  (0.1ms) SELECT * FROM "org_members"
4003
+  (0.3ms) DROP TABLE "org_members"
4004
+  (0.2ms) CREATE TABLE "org_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer, "user_id" integer, "lang_id" integer, "type_id" integer DEFAULT 0 NOT NULL, "org_director_type_id" integer, "org_member_type_id" integer, "byear" integer, "bmonth" integer, "bday" integer, "entried_on" date NOT NULL, "sex" integer(1), "expire_at" datetime, "retired_on" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4005
+  (0.1ms) SELECT * FROM "aorg_members"
4006
+  (0.1ms) DROP TABLE "aorg_members"
4007
+  (0.1ms) CREATE TEMPORARY TABLE "aorg_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "family_name" varchar, "given_name" varchar, "family_name_pron" varchar, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4008
+  (0.1ms)  SELECT sql
4009
+ FROM sqlite_master
4010
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4011
+ UNION ALL
4012
+ SELECT sql
4013
+ FROM sqlite_temp_master
4014
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4015
+ 
4016
+  (0.1ms) CREATE UNIQUE INDEX "tindex_aorg_member_texts_on_lang_id_and_parent_id" ON "aorg_member_texts" ("lang_id", "parent_id")
4017
+  (0.1ms) SELECT * FROM "org_member_texts"
4018
+  (0.3ms) DROP TABLE "org_member_texts"
4019
+  (0.1ms) CREATE TABLE "org_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "given_name" varchar, "family_name_pron" varchar, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4020
+  (0.1ms) SELECT sql
4021
+ FROM sqlite_master
4022
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4023
+ UNION ALL
4024
+ SELECT sql
4025
+ FROM sqlite_temp_master
4026
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4027
+
4028
+  (0.1ms) CREATE UNIQUE INDEX "index_org_member_texts_on_lang_id_and_parent_id" ON "org_member_texts" ("lang_id", "parent_id")
4029
+  (0.2ms) SELECT * FROM "aorg_member_texts"
4030
+  (0.2ms) DROP TABLE "aorg_member_texts"
4031
+  (0.4ms) CREATE TEMPORARY TABLE "aorg_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "given_name" varchar, "family_name_pron" varchar, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4032
+  (0.2ms)  SELECT sql
4033
+ FROM sqlite_master
4034
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4035
+ UNION ALL
4036
+ SELECT sql
4037
+ FROM sqlite_temp_master
4038
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4039
+ 
4040
+  (0.2ms) CREATE UNIQUE INDEX "tindex_aorg_member_texts_on_lang_id_and_parent_id" ON "aorg_member_texts" ("lang_id", "parent_id")
4041
+  (0.1ms) SELECT * FROM "org_member_texts"
4042
+  (0.2ms) DROP TABLE "org_member_texts"
4043
+  (0.2ms) CREATE TABLE "org_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "family_name_pron" varchar, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4044
+  (0.1ms) SELECT sql
4045
+ FROM sqlite_master
4046
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4047
+ UNION ALL
4048
+ SELECT sql
4049
+ FROM sqlite_temp_master
4050
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4051
+
4052
+  (0.1ms) CREATE UNIQUE INDEX "index_org_member_texts_on_lang_id_and_parent_id" ON "org_member_texts" ("lang_id", "parent_id")
4053
+  (0.1ms) SELECT * FROM "aorg_member_texts"
4054
+  (0.1ms) DROP TABLE "aorg_member_texts"
4055
+  (0.1ms) CREATE TEMPORARY TABLE "aorg_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "family_name_pron" varchar, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4056
+  (0.1ms)  SELECT sql
4057
+ FROM sqlite_master
4058
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4059
+ UNION ALL
4060
+ SELECT sql
4061
+ FROM sqlite_temp_master
4062
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4063
+ 
4064
+  (0.1ms) CREATE UNIQUE INDEX "tindex_aorg_member_texts_on_lang_id_and_parent_id" ON "aorg_member_texts" ("lang_id", "parent_id")
4065
+  (0.1ms) SELECT * FROM "org_member_texts"
4066
+  (0.1ms) DROP TABLE "org_member_texts"
4067
+  (0.1ms) CREATE TABLE "org_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4068
+  (0.1ms) SELECT sql
4069
+ FROM sqlite_master
4070
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4071
+ UNION ALL
4072
+ SELECT sql
4073
+ FROM sqlite_temp_master
4074
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4075
+
4076
+  (0.1ms) CREATE UNIQUE INDEX "index_org_member_texts_on_lang_id_and_parent_id" ON "org_member_texts" ("lang_id", "parent_id")
4077
+  (0.1ms) SELECT * FROM "aorg_member_texts"
4078
+  (0.1ms) DROP TABLE "aorg_member_texts"
4079
+  (0.1ms) CREATE TEMPORARY TABLE "aorg_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "given_name_pron" varchar, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4080
+  (0.1ms)  SELECT sql
4081
+ FROM sqlite_master
4082
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4083
+ UNION ALL
4084
+ SELECT sql
4085
+ FROM sqlite_temp_master
4086
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4087
+ 
4088
+  (0.2ms) CREATE UNIQUE INDEX "tindex_aorg_member_texts_on_lang_id_and_parent_id" ON "aorg_member_texts" ("lang_id", "parent_id")
4089
+  (0.1ms) SELECT * FROM "org_member_texts"
4090
+  (0.1ms) DROP TABLE "org_member_texts"
4091
+  (0.1ms) CREATE TABLE "org_member_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "comment" text, "comment_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4092
+  (0.1ms) SELECT sql
4093
+ FROM sqlite_master
4094
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4095
+ UNION ALL
4096
+ SELECT sql
4097
+ FROM sqlite_temp_master
4098
+ WHERE name='tindex_aorg_member_texts_on_lang_id_and_parent_id' AND type='index'
4099
+
4100
+  (0.1ms) CREATE UNIQUE INDEX "index_org_member_texts_on_lang_id_and_parent_id" ON "org_member_texts" ("lang_id", "parent_id")
4101
+  (0.0ms) SELECT * FROM "aorg_member_texts"
4102
+  (0.1ms) DROP TABLE "aorg_member_texts"
4103
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151009112829"]]
4104
+  (0.9ms) commit transaction
4105
+ Migrating to AddBranchPosition (20151203153522)
4106
+  (0.1ms) begin transaction
4107
+  (0.4ms) ALTER TABLE "org_branches" ADD "position" integer DEFAULT 0 NOT NULL
4108
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151203153522"]]
4109
+  (0.8ms) commit transaction
4110
+ Migrating to AddNamesToOrgMembers (20151204024709)
4111
+  (0.1ms) begin transaction
4112
+  (0.4ms) ALTER TABLE "org_members" ADD "handle_name" varchar DEFAULT '' NOT NULL
4113
+  (0.6ms) ALTER TABLE "org_member_texts" ADD "family_name" varchar DEFAULT '' NOT NULL
4114
+  (0.5ms) ALTER TABLE "org_member_texts" ADD "given_name" varchar DEFAULT '' NOT NULL
4115
+  (0.3ms) ALTER TABLE "org_member_texts" ADD "family_name_pron" varchar DEFAULT '' NOT NULL
4116
+  (0.3ms) ALTER TABLE "org_member_texts" ADD "given_name_pron" varchar DEFAULT '' NOT NULL
4117
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151204024709"]]
4118
+  (1.1ms) commit transaction
4119
+ Migrating to CreateOrgDepartments (20151204183447)
4120
+  (0.1ms) begin transaction
4121
+  (0.4ms) CREATE TABLE "org_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_id" integer NOT NULL, "manager_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4122
+  (0.2ms) CREATE TABLE "org_department_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar DEFAULT '' NOT NULL, "desc" text DEFAULT '' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4123
+  (0.3ms) CREATE UNIQUE INDEX "index_org_department_texts" ON "org_department_texts" ("lang_id", "parent_id")
4124
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151204183447"]]
4125
+  (1.1ms) commit transaction
4126
+ Migrating to CreateOrgDepartmentPositions (20151204183612)
4127
+  (0.1ms) begin transaction
4128
+  (0.4ms) CREATE TABLE "org_department_positions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_department_id" integer NOT NULL, "position" integer DEFAULT 0 NOT NULL, "limit" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4129
+  (0.3ms) CREATE TABLE "org_department_position_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "name" varchar DEFAULT '' NOT NULL, "desc" text DEFAULT '' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4130
+  (0.5ms) CREATE UNIQUE INDEX "index_org_department_position_texts" ON "org_department_position_texts" ("lang_id", "parent_id")
4131
+  (0.3ms) CREATE TABLE "org_department_position_member_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "org_department_position_id" integer NOT NULL, "org_member_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4132
+  (0.2ms) CREATE UNIQUE INDEX "index_org_department_position_member_mappings" ON "org_department_position_member_mappings" ("org_department_position_id", "org_member_id")
4133
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151204183612"]]
4134
+  (1.5ms) commit transaction
4135
+ Migrating to AddSecretColumnToOrgMembers (20151216145030)
4136
+  (0.1ms) begin transaction
4137
+  (0.6ms) ALTER TABLE "org_members" ADD "private" boolean DEFAULT 'f' NOT NULL
4138
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151216145030"]]
4139
+  (1.4ms) commit transaction
4140
+ Migrating to AddUuidColumnToOrgMembers (20151216145424)
4141
+  (0.2ms) begin transaction
4142
+  (0.5ms) ALTER TABLE "org_members" ADD "uuid" varchar(40) DEFAULT '' NOT NULL
4143
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151216145424"]]
4144
+  (0.7ms) commit transaction
4145
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4146
+  (0.1ms)  SELECT sql
4147
+ FROM sqlite_master
4148
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
4149
+ UNION ALL
4150
+ SELECT sql
4151
+ FROM sqlite_temp_master
4152
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
4153
+ 
4154
+  (0.1ms) SELECT sql
4155
+ FROM sqlite_master
4156
+ WHERE name='index_langs_on_code' AND type='index'
4157
+ UNION ALL
4158
+ SELECT sql
4159
+ FROM sqlite_temp_master
4160
+ WHERE name='index_langs_on_code' AND type='index'
4161
+
4162
+  (0.1ms)  SELECT sql
4163
+ FROM sqlite_master
4164
+ WHERE name='index_org_activity_texts_on_lang_id_and_parent_id' AND type='index'
4165
+ UNION ALL
4166
+ SELECT sql
4167
+ FROM sqlite_temp_master
4168
+ WHERE name='index_org_activity_texts_on_lang_id_and_parent_id' AND type='index'
4169
+ 
4170
+  (0.2ms) SELECT sql
4171
+ FROM sqlite_master
4172
+ WHERE name='index_org_branch_member_mappings' AND type='index'
4173
+ UNION ALL
4174
+ SELECT sql
4175
+ FROM sqlite_temp_master
4176
+ WHERE name='index_org_branch_member_mappings' AND type='index'
4177
+
4178
+  (0.1ms)  SELECT sql
4179
+ FROM sqlite_master
4180
+ WHERE name='index_org_branch_texts' AND type='index'
4181
+ UNION ALL
4182
+ SELECT sql
4183
+ FROM sqlite_temp_master
4184
+ WHERE name='index_org_branch_texts' AND type='index'
4185
+ 
4186
+  (0.1ms) SELECT sql
4187
+ FROM sqlite_master
4188
+ WHERE name='index_org_branch_type_texts' AND type='index'
4189
+ UNION ALL
4190
+ SELECT sql
4191
+ FROM sqlite_temp_master
4192
+ WHERE name='index_org_branch_type_texts' AND type='index'
4193
+
4194
+  (0.1ms)  SELECT sql
4195
+ FROM sqlite_master
4196
+ WHERE name='index_org_department_position_member_mappings' AND type='index'
4197
+ UNION ALL
4198
+ SELECT sql
4199
+ FROM sqlite_temp_master
4200
+ WHERE name='index_org_department_position_member_mappings' AND type='index'
4201
+ 
4202
+  (0.1ms) SELECT sql
4203
+ FROM sqlite_master
4204
+ WHERE name='index_org_department_position_texts' AND type='index'
4205
+ UNION ALL
4206
+ SELECT sql
4207
+ FROM sqlite_temp_master
4208
+ WHERE name='index_org_department_position_texts' AND type='index'
4209
+
4210
+  (0.1ms)  SELECT sql
4211
+ FROM sqlite_master
4212
+ WHERE name='index_org_department_texts' AND type='index'
4213
+ UNION ALL
4214
+ SELECT sql
4215
+ FROM sqlite_temp_master
4216
+ WHERE name='index_org_department_texts' AND type='index'
4217
+ 
4218
+  (0.1ms) SELECT sql
4219
+ FROM sqlite_master
4220
+ WHERE name='index_org_director_type_texts_on_parent_id_and_lang_id' AND type='index'
4221
+ UNION ALL
4222
+ SELECT sql
4223
+ FROM sqlite_temp_master
4224
+ WHERE name='index_org_director_type_texts_on_parent_id_and_lang_id' AND type='index'
4225
+
4226
+  (0.1ms)  SELECT sql
4227
+ FROM sqlite_master
4228
+ WHERE name='index_org_member_tag_mappings' AND type='index'
4229
+ UNION ALL
4230
+ SELECT sql
4231
+ FROM sqlite_temp_master
4232
+ WHERE name='index_org_member_tag_mappings' AND type='index'
4233
+ 
4234
+  (0.1ms) SELECT sql
4235
+ FROM sqlite_master
4236
+ WHERE name='index_org_member_tag_texts_on_lang_id_and_parent_id' AND type='index'
4237
+ UNION ALL
4238
+ SELECT sql
4239
+ FROM sqlite_temp_master
4240
+ WHERE name='index_org_member_tag_texts_on_lang_id_and_parent_id' AND type='index'
4241
+
4242
+  (0.1ms)  SELECT sql
4243
+ FROM sqlite_master
4244
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4245
+ UNION ALL
4246
+ SELECT sql
4247
+ FROM sqlite_temp_master
4248
+ WHERE name='index_org_member_texts_on_lang_id_and_parent_id' AND type='index'
4249
+ 
4250
+  (0.1ms) SELECT sql
4251
+ FROM sqlite_master
4252
+ WHERE name='index_org_member_type_texts_on_lang_id_and_parent_id' AND type='index'
4253
+ UNION ALL
4254
+ SELECT sql
4255
+ FROM sqlite_temp_master
4256
+ WHERE name='index_org_member_type_texts_on_lang_id_and_parent_id' AND type='index'
4257
+
4258
+  (0.1ms)  SELECT sql
4259
+ FROM sqlite_master
4260
+ WHERE name='index_org_texts' AND type='index'
4261
+ UNION ALL
4262
+ SELECT sql
4263
+ FROM sqlite_temp_master
4264
+ WHERE name='index_org_texts' AND type='index'
4265
+ 
4266
+  (0.2ms) SELECT sql
4267
+ FROM sqlite_master
4268
+ WHERE name='idx_person_name_texts' AND type='index'
4269
+ UNION ALL
4270
+ SELECT sql
4271
+ FROM sqlite_temp_master
4272
+ WHERE name='idx_person_name_texts' AND type='index'
4273
+
4274
+  (0.2ms)  SELECT sql
4275
+ FROM sqlite_master
4276
+ WHERE name='index_person_names_on_person_id_and_revision' AND type='index'
4277
+ UNION ALL
4278
+ SELECT sql
4279
+ FROM sqlite_temp_master
4280
+ WHERE name='index_person_names_on_person_id_and_revision' AND type='index'
4281
+ 
4282
+  (0.2ms) SELECT sql
4283
+ FROM sqlite_master
4284
+ WHERE name='index_person_texts_on_parent_id_and_lang_id' AND type='index'
4285
+ UNION ALL
4286
+ SELECT sql
4287
+ FROM sqlite_temp_master
4288
+ WHERE name='index_person_texts_on_parent_id_and_lang_id' AND type='index'
4289
+
4290
+  (0.2ms)  SELECT sql
4291
+ FROM sqlite_master
4292
+ WHERE name='index_user_accounts_on_uid' AND type='index'
4293
+ UNION ALL
4294
+ SELECT sql
4295
+ FROM sqlite_temp_master
4296
+ WHERE name='index_user_accounts_on_uid' AND type='index'
4297
+ 
4298
+  (0.2ms) SELECT sql
4299
+ FROM sqlite_master
4300
+ WHERE name='index_user_texts_on_lang_id_and_parent_id' AND type='index'
4301
+ UNION ALL
4302
+ SELECT sql
4303
+ FROM sqlite_temp_master
4304
+ WHERE name='index_user_texts_on_lang_id_and_parent_id' AND type='index'
4305
+
4306
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4307
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4308
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4309
+  (0.1ms) begin transaction
4310
+  (0.1ms) rollback transaction
4311
+  (0.1ms) begin transaction
4312
+  (0.1ms) rollback transaction
4313
+  (0.0ms) begin transaction
4314
+  (0.1ms) rollback transaction
4315
+  (0.1ms) begin transaction
4316
+  (0.1ms) rollback transaction
4317
+  (0.1ms) begin transaction
4318
+  (0.1ms) SELECT COUNT(*) FROM "org_activities"
4319
+  (0.1ms) rollback transaction
4320
+  (0.1ms) begin transaction
4321
+  (0.0ms) rollback transaction
4322
+  (0.1ms) begin transaction
4323
+  (0.1ms) rollback transaction
4324
+  (0.1ms) begin transaction
4325
+  (0.1ms) rollback transaction
4326
+  (0.2ms) begin transaction
4327
+  (0.1ms) rollback transaction
4328
+  (0.2ms) begin transaction
4329
+  (0.1ms) rollback transaction
4330
+  (0.1ms) begin transaction
4331
+  (0.1ms) rollback transaction
4332
+  (0.2ms) begin transaction
4333
+  (0.1ms) rollback transaction
4334
+  (0.1ms) begin transaction
4335
+  (0.0ms) rollback transaction
4336
+  (0.0ms) begin transaction
4337
+  (0.0ms) rollback transaction
4338
+  (0.0ms) begin transaction
4339
+  (0.1ms) rollback transaction
4340
+  (0.1ms) begin transaction
4341
+  (0.2ms) rollback transaction
4342
+  (0.2ms) begin transaction
4343
+  (0.1ms) rollback transaction
4344
+  (0.1ms) begin transaction
4345
+  (0.1ms) rollback transaction
4346
+  (0.1ms) begin transaction
4347
+  (0.1ms) rollback transaction
4348
+  (0.1ms) begin transaction
4349
+  (0.0ms) rollback transaction
4350
+  (0.0ms) begin transaction
4351
+  (0.1ms) SELECT COUNT(*) FROM "org_branches"
4352
+  (0.1ms) rollback transaction
4353
+  (0.1ms) begin transaction
4354
+  (0.1ms) rollback transaction
4355
+  (0.1ms) begin transaction
4356
+  (0.1ms) rollback transaction
4357
+  (0.3ms) begin transaction
4358
+  (0.2ms) rollback transaction
4359
+  (0.1ms) begin transaction
4360
+  (0.1ms) rollback transaction
4361
+  (0.1ms) begin transaction
4362
+  (0.1ms) rollback transaction
4363
+  (0.1ms) begin transaction
4364
+  (0.1ms) rollback transaction
4365
+  (0.1ms) begin transaction
4366
+  (0.0ms) rollback transaction
4367
+  (0.0ms) begin transaction
4368
+  (0.0ms) rollback transaction
4369
+  (0.1ms) begin transaction
4370
+  (0.0ms) rollback transaction
4371
+  (0.0ms) begin transaction
4372
+  (0.0ms) rollback transaction
4373
+  (0.0ms) begin transaction
4374
+  (0.0ms) rollback transaction
4375
+  (0.0ms) begin transaction
4376
+  (0.1ms) rollback transaction
4377
+  (0.1ms) begin transaction
4378
+  (0.1ms) rollback transaction
4379
+  (0.1ms) begin transaction
4380
+  (0.1ms) rollback transaction
4381
+  (0.1ms) begin transaction
4382
+  (0.0ms) rollback transaction
4383
+  (0.0ms) begin transaction
4384
+  (0.1ms) SELECT COUNT(*) FROM "org_department_positions"
4385
+  (0.1ms) rollback transaction
4386
+  (0.1ms) begin transaction
4387
+  (0.0ms) rollback transaction
4388
+  (0.0ms) begin transaction
4389
+  (0.0ms) rollback transaction
4390
+  (0.0ms) begin transaction
4391
+  (0.0ms) rollback transaction
4392
+  (0.2ms) begin transaction
4393
+  (0.1ms) rollback transaction
4394
+  (0.1ms) begin transaction
4395
+  (0.1ms) rollback transaction
4396
+  (0.1ms) begin transaction
4397
+  (0.1ms) rollback transaction
4398
+  (0.1ms) begin transaction
4399
+  (0.0ms) rollback transaction
4400
+  (0.0ms) begin transaction
4401
+  (0.0ms) rollback transaction
4402
+  (0.1ms) begin transaction
4403
+  (0.0ms) rollback transaction
4404
+  (0.0ms) begin transaction
4405
+  (0.0ms) rollback transaction
4406
+  (0.0ms) begin transaction
4407
+  (0.0ms) rollback transaction
4408
+  (0.2ms) begin transaction
4409
+  (0.1ms) rollback transaction
4410
+  (0.1ms) begin transaction
4411
+  (0.0ms) rollback transaction
4412
+  (0.0ms) begin transaction
4413
+  (0.0ms) rollback transaction
4414
+  (0.0ms) begin transaction
4415
+  (0.0ms) rollback transaction
4416
+  (0.0ms) begin transaction
4417
+  (0.1ms) SELECT COUNT(*) FROM "org_departments"
4418
+  (0.1ms) rollback transaction
4419
+  (0.0ms) begin transaction
4420
+  (0.0ms) rollback transaction
4421
+  (0.0ms) begin transaction
4422
+  (0.0ms) rollback transaction
4423
+  (0.0ms) begin transaction
4424
+  (0.0ms) rollback transaction
4425
+  (0.1ms) begin transaction
4426
+  (0.1ms) rollback transaction
4427
+  (0.1ms) begin transaction
4428
+  (0.1ms) rollback transaction
4429
+  (0.1ms) begin transaction
4430
+  (0.3ms) rollback transaction
4431
+  (0.1ms) begin transaction
4432
+  (0.0ms) rollback transaction
4433
+  (0.0ms) begin transaction
4434
+  (0.0ms) rollback transaction
4435
+  (0.1ms) begin transaction
4436
+  (0.2ms) rollback transaction
4437
+  (0.1ms) begin transaction
4438
+  (0.1ms) rollback transaction
4439
+  (0.1ms) begin transaction
4440
+  (0.1ms) rollback transaction
4441
+  (0.1ms) begin transaction
4442
+  (0.1ms) rollback transaction
4443
+  (0.1ms) begin transaction
4444
+  (0.1ms) rollback transaction
4445
+  (0.1ms) begin transaction
4446
+  (0.0ms) rollback transaction
4447
+  (0.0ms) begin transaction
4448
+  (0.0ms) rollback transaction
4449
+  (0.0ms) begin transaction
4450
+  (0.1ms) SELECT COUNT(*) FROM "org_director_types"
4451
+  (0.1ms) rollback transaction
4452
+  (0.1ms) begin transaction
4453
+  (0.1ms) rollback transaction
4454
+  (0.1ms) begin transaction
4455
+  (0.1ms) rollback transaction
4456
+  (0.1ms) begin transaction
4457
+  (0.2ms) rollback transaction
4458
+  (0.1ms) begin transaction
4459
+  (0.1ms) rollback transaction
4460
+  (0.1ms) begin transaction
4461
+  (0.1ms) rollback transaction
4462
+  (0.1ms) begin transaction
4463
+  (0.1ms) rollback transaction
4464
+  (0.1ms) begin transaction
4465
+  (0.0ms) rollback transaction
4466
+  (0.0ms) begin transaction
4467
+  (0.0ms) rollback transaction
4468
+  (0.0ms) begin transaction
4469
+  (0.0ms) rollback transaction
4470
+  (0.1ms) begin transaction
4471
+  (0.1ms) rollback transaction
4472
+  (0.2ms) begin transaction
4473
+  (0.1ms) rollback transaction
4474
+  (0.1ms) begin transaction
4475
+  (0.1ms) rollback transaction
4476
+  (0.1ms) begin transaction
4477
+  (0.1ms) rollback transaction
4478
+  (0.1ms) begin transaction
4479
+  (0.1ms) rollback transaction
4480
+  (0.1ms) begin transaction
4481
+  (0.0ms) rollback transaction
4482
+  (0.0ms) begin transaction
4483
+  (0.0ms) rollback transaction
4484
+  (0.0ms) begin transaction
4485
+  (0.0ms) rollback transaction
4486
+  (0.0ms) begin transaction
4487
+  (0.0ms) rollback transaction
4488
+  (0.1ms) begin transaction
4489
+  (0.1ms) rollback transaction
4490
+  (0.1ms) begin transaction
4491
+  (0.1ms) rollback transaction
4492
+  (0.2ms) begin transaction
4493
+  (0.1ms) rollback transaction
4494
+  (0.2ms) begin transaction
4495
+  (0.1ms) rollback transaction
4496
+  (0.1ms) begin transaction
4497
+  (0.1ms) rollback transaction
4498
+  (0.1ms) begin transaction
4499
+  (0.1ms) rollback transaction
4500
+  (0.1ms) begin transaction
4501
+  (0.1ms) rollback transaction
4502
+  (0.0ms) begin transaction
4503
+  (0.0ms) rollback transaction
4504
+  (0.0ms) begin transaction
4505
+  (0.0ms) rollback transaction
4506
+  (0.0ms) begin transaction
4507
+  (0.0ms) rollback transaction
4508
+  (0.1ms) begin transaction
4509
+  (0.2ms) rollback transaction
4510
+  (0.1ms) begin transaction
4511
+  (0.1ms) rollback transaction
4512
+  (0.2ms) begin transaction
4513
+  (0.1ms) rollback transaction
4514
+  (0.1ms) begin transaction
4515
+  (0.1ms) SELECT COUNT(*) FROM "org_member_tags"
4516
+  (0.1ms) rollback transaction
4517
+  (0.1ms) begin transaction
4518
+  (0.1ms) rollback transaction
4519
+  (0.0ms) begin transaction
4520
+  (0.0ms) rollback transaction
4521
+  (0.0ms) begin transaction
4522
+  (0.1ms) rollback transaction
4523
+  (0.1ms) begin transaction
4524
+  (0.0ms) rollback transaction
4525
+  (0.0ms) begin transaction
4526
+  (0.0ms) rollback transaction
4527
+  (0.0ms) begin transaction
4528
+  (0.0ms) rollback transaction
4529
+  (0.3ms) begin transaction
4530
+  (0.1ms) rollback transaction
4531
+  (0.1ms) begin transaction
4532
+  (0.1ms) rollback transaction
4533
+  (0.1ms) begin transaction
4534
+  (0.1ms) rollback transaction
4535
+  (0.1ms) begin transaction
4536
+  (0.1ms) rollback transaction
4537
+  (0.1ms) begin transaction
4538
+  (0.1ms) rollback transaction
4539
+  (0.1ms) begin transaction
4540
+  (0.0ms) rollback transaction
4541
+  (0.0ms) begin transaction
4542
+  (0.0ms) rollback transaction
4543
+  (0.1ms) begin transaction
4544
+  (0.0ms) rollback transaction
4545
+  (0.2ms) begin transaction
4546
+  (0.1ms) rollback transaction
4547
+  (0.2ms) begin transaction
4548
+  (0.2ms) SELECT COUNT(*) FROM "org_member_types"
4549
+  (0.1ms) rollback transaction
4550
+  (0.1ms) begin transaction
4551
+  (0.1ms) rollback transaction
4552
+  (0.1ms) begin transaction
4553
+  (0.1ms) rollback transaction
4554
+  (0.1ms) begin transaction
4555
+  (0.1ms) rollback transaction
4556
+  (0.1ms) begin transaction
4557
+  (0.1ms) rollback transaction
4558
+  (0.1ms) begin transaction
4559
+  (0.5ms) rollback transaction
4560
+  (0.1ms) begin transaction
4561
+  (0.0ms) rollback transaction
4562
+  (0.1ms) begin transaction
4563
+  (0.1ms) rollback transaction
4564
+  (0.1ms) begin transaction
4565
+  (0.2ms) rollback transaction
4566
+  (0.1ms) begin transaction
4567
+  (0.1ms) rollback transaction
4568
+  (0.1ms) begin transaction
4569
+  (0.1ms) rollback transaction
4570
+  (0.1ms) begin transaction
4571
+  (0.1ms) rollback transaction
4572
+  (0.1ms) begin transaction
4573
+  (0.1ms) rollback transaction
4574
+  (0.0ms) begin transaction
4575
+  (0.1ms) rollback transaction
4576
+  (0.0ms) begin transaction
4577
+  (0.1ms) rollback transaction
4578
+  (0.1ms) begin transaction
4579
+  (0.1ms) rollback transaction
4580
+  (0.2ms) begin transaction
4581
+  (0.1ms) SELECT COUNT(*) FROM "org_members" WHERE "org_members"."retired_on" IS NULL
4582
+  (0.1ms) rollback transaction
4583
+  (0.1ms) begin transaction
4584
+  (0.1ms) rollback transaction
4585
+  (0.1ms) begin transaction
4586
+  (0.0ms) rollback transaction
4587
+  (0.1ms) begin transaction
4588
+  (0.2ms) rollback transaction
4589
+  (0.2ms) begin transaction
4590
+  (0.1ms) rollback transaction
4591
+  (0.1ms) begin transaction
4592
+  (0.1ms) rollback transaction
4593
+  (0.1ms) begin transaction
4594
+  (0.0ms) rollback transaction
4595
+  (0.1ms) begin transaction
4596
+  (0.1ms) rollback transaction
4597
+  (0.1ms) begin transaction
4598
+  (0.1ms) rollback transaction
4599
+  (0.4ms) begin transaction
4600
+  (0.1ms) rollback transaction
4601
+  (0.1ms) begin transaction
4602
+  (0.1ms) rollback transaction
4603
+  (0.1ms) begin transaction
4604
+  (0.1ms) rollback transaction
4605
+  (0.0ms) begin transaction
4606
+  (0.0ms) rollback transaction
4607
+  (0.0ms) begin transaction
4608
+  (0.0ms) rollback transaction
4609
+  (0.0ms) begin transaction
4610
+ Processing by OrgsController#new as HTML
4611
+  (0.1ms) SELECT "langs"."code" FROM "langs" ORDER BY "langs"."position" ASC
4612
+ Rendered /Users/shinjiro/git/we_bridge_rails_engine_orgs/app/views/orgs/new.html.builder within layouts/application (0.5ms)
4613
+ Completed 200 OK in 41ms (Views: 28.0ms | ActiveRecord: 0.5ms)
4614
+  (0.2ms) rollback transaction
4615
+  (0.1ms) begin transaction
4616
+  (0.1ms) rollback transaction
4617
+  (0.1ms) begin transaction
4618
+  (0.2ms) SELECT COUNT(*) FROM "orgs"
4619
+  (0.1ms) rollback transaction
4620
+  (0.1ms) begin transaction
4621
+  (0.0ms) rollback transaction
4622
+  (0.0ms) begin transaction
4623
+  (0.0ms) rollback transaction
4624
+  (0.0ms) begin transaction
4625
+  (0.0ms) rollback transaction
4626
+  (0.0ms) begin transaction
4627
+  (0.0ms) rollback transaction
4628
+  (0.0ms) begin transaction
4629
+  (0.0ms) rollback transaction
4630
+  (0.0ms) begin transaction
4631
+  (0.0ms) rollback transaction
4632
+  (0.0ms) begin transaction
4633
+  (0.0ms) rollback transaction
4634
+  (0.2ms) begin transaction
4635
+  (0.1ms) rollback transaction
4636
+  (0.1ms) begin transaction
4637
+  (0.2ms) rollback transaction
4638
+  (0.1ms) begin transaction
4639
+  (0.1ms) rollback transaction
4640
+  (0.1ms) begin transaction
4641
+  (0.1ms) rollback transaction
4642
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
4643
+  (0.1ms) begin transaction
4644
+  (0.1ms) rollback transaction
4645
+  (0.1ms) begin transaction
4646
+  (0.1ms) rollback transaction
4647
+  (0.0ms) begin transaction
4648
+  (0.1ms) rollback transaction
4649
+  (0.1ms) begin transaction
4650
+  (0.0ms) rollback transaction
4651
+  (0.0ms) begin transaction
4652
+  (0.4ms) SELECT COUNT(*) FROM "org_activities"
4653
+  (0.1ms) rollback transaction
4654
+  (0.0ms) begin transaction
4655
+  (0.1ms) rollback transaction
4656
+  (0.1ms) begin transaction
4657
+  (0.0ms) rollback transaction
4658
+  (0.0ms) begin transaction
4659
+  (0.0ms) rollback transaction
4660
+  (0.1ms) begin transaction
4661
+  (0.1ms) rollback transaction
4662
+  (0.3ms) begin transaction
4663
+  (0.1ms) rollback transaction
4664
+  (0.1ms) begin transaction
4665
+  (0.1ms) rollback transaction
4666
+  (0.1ms) begin transaction
4667
+  (0.1ms) rollback transaction
4668
+  (0.0ms) begin transaction
4669
+  (0.1ms) rollback transaction
4670
+  (0.0ms) begin transaction
4671
+  (0.0ms) rollback transaction
4672
+  (0.1ms) begin transaction
4673
+  (0.0ms) rollback transaction
4674
+  (0.1ms) begin transaction
4675
+  (0.0ms) rollback transaction
4676
+  (0.0ms) begin transaction
4677
+  (0.0ms) rollback transaction
4678
+  (0.1ms) begin transaction
4679
+  (0.1ms) rollback transaction
4680
+  (0.1ms) begin transaction
4681
+  (0.1ms) rollback transaction
4682
+  (0.2ms) begin transaction
4683
+  (0.2ms) rollback transaction
4684
+  (0.1ms) begin transaction
4685
+  (0.4ms) SELECT COUNT(*) FROM "org_branches"
4686
+  (0.1ms) rollback transaction
4687
+  (0.1ms) begin transaction
4688
+  (0.0ms) rollback transaction
4689
+  (0.0ms) begin transaction
4690
+  (0.0ms) rollback transaction
4691
+  (0.0ms) begin transaction
4692
+  (0.0ms) rollback transaction
4693
+  (0.0ms) begin transaction
4694
+  (0.0ms) rollback transaction
4695
+  (0.1ms) begin transaction
4696
+  (0.1ms) rollback transaction
4697
+  (0.1ms) begin transaction
4698
+  (0.1ms) rollback transaction
4699
+  (0.1ms) begin transaction
4700
+  (0.1ms) rollback transaction
4701
+  (0.1ms) begin transaction
4702
+  (0.0ms) rollback transaction
4703
+  (0.0ms) begin transaction
4704
+  (0.0ms) rollback transaction
4705
+  (0.0ms) begin transaction
4706
+  (0.2ms) rollback transaction
4707
+  (0.2ms) begin transaction
4708
+  (0.1ms) rollback transaction
4709
+  (0.1ms) begin transaction
4710
+  (0.1ms) rollback transaction
4711
+  (0.1ms) begin transaction
4712
+  (0.1ms) rollback transaction
4713
+  (0.1ms) begin transaction
4714
+  (0.1ms) rollback transaction
4715
+  (0.1ms) begin transaction
4716
+  (0.1ms) rollback transaction
4717
+  (0.1ms) begin transaction
4718
+  (0.3ms) SELECT COUNT(*) FROM "org_department_positions"
4719
+  (0.1ms) rollback transaction
4720
+  (0.1ms) begin transaction
4721
+  (0.1ms) rollback transaction
4722
+  (0.2ms) begin transaction
4723
+  (0.0ms) rollback transaction
4724
+  (0.0ms) begin transaction
4725
+  (0.0ms) rollback transaction
4726
+  (0.1ms) begin transaction
4727
+  (0.1ms) rollback transaction
4728
+  (0.1ms) begin transaction
4729
+  (0.1ms) rollback transaction
4730
+  (0.2ms) begin transaction
4731
+  (0.1ms) rollback transaction
4732
+  (0.0ms) begin transaction
4733
+  (0.0ms) rollback transaction
4734
+  (0.0ms) begin transaction
4735
+  (0.0ms) rollback transaction
4736
+  (0.0ms) begin transaction
4737
+  (0.0ms) rollback transaction
4738
+  (0.1ms) begin transaction
4739
+  (0.0ms) rollback transaction
4740
+  (0.0ms) begin transaction
4741
+  (0.0ms) rollback transaction
4742
+  (0.1ms) begin transaction
4743
+  (0.1ms) rollback transaction
4744
+  (0.1ms) begin transaction
4745
+  (0.1ms) rollback transaction
4746
+  (0.1ms) begin transaction
4747
+  (0.1ms) rollback transaction
4748
+  (0.1ms) begin transaction
4749
+  (0.2ms) rollback transaction
4750
+  (0.1ms) begin transaction
4751
+  (0.5ms) SELECT COUNT(*) FROM "org_departments"
4752
+  (0.1ms) rollback transaction
4753
+  (0.1ms) begin transaction
4754
+  (0.1ms) rollback transaction
4755
+  (0.1ms) begin transaction
4756
+  (0.0ms) rollback transaction
4757
+  (0.1ms) begin transaction
4758
+  (0.0ms) rollback transaction
4759
+  (0.1ms) begin transaction
4760
+  (0.1ms) rollback transaction
4761
+  (0.1ms) begin transaction
4762
+  (0.1ms) rollback transaction
4763
+  (0.1ms) begin transaction
4764
+  (0.1ms) rollback transaction
4765
+  (0.1ms) begin transaction
4766
+  (0.1ms) rollback transaction
4767
+  (0.1ms) begin transaction
4768
+  (0.0ms) rollback transaction
4769
+  (0.0ms) begin transaction
4770
+  (0.0ms) rollback transaction
4771
+  (0.1ms) begin transaction
4772
+  (0.0ms) rollback transaction
4773
+  (0.0ms) begin transaction
4774
+  (0.0ms) rollback transaction
4775
+  (0.2ms) begin transaction
4776
+  (0.1ms) rollback transaction
4777
+  (0.1ms) begin transaction
4778
+  (0.1ms) rollback transaction
4779
+  (0.1ms) begin transaction
4780
+  (0.1ms) rollback transaction
4781
+  (0.1ms) begin transaction
4782
+  (0.1ms) rollback transaction
4783
+  (0.1ms) begin transaction
4784
+  (0.5ms) SELECT COUNT(*) FROM "org_director_types"
4785
+  (0.1ms) rollback transaction
4786
+  (0.1ms) begin transaction
4787
+  (0.1ms) rollback transaction
4788
+  (0.1ms) begin transaction
4789
+  (0.0ms) rollback transaction
4790
+  (0.2ms) begin transaction
4791
+  (0.2ms) rollback transaction
4792
+  (0.1ms) begin transaction
4793
+  (0.1ms) rollback transaction
4794
+  (0.1ms) begin transaction
4795
+  (0.1ms) rollback transaction
4796
+  (0.1ms) begin transaction
4797
+  (0.1ms) rollback transaction
4798
+  (0.1ms) begin transaction
4799
+  (0.1ms) rollback transaction
4800
+  (0.1ms) begin transaction
4801
+  (0.1ms) rollback transaction
4802
+  (0.1ms) begin transaction
4803
+  (0.0ms) rollback transaction
4804
+  (0.1ms) begin transaction
4805
+  (0.1ms) rollback transaction
4806
+  (0.1ms) begin transaction
4807
+  (0.1ms) rollback transaction
4808
+  (0.1ms) begin transaction
4809
+  (0.1ms) rollback transaction
4810
+  (0.1ms) begin transaction
4811
+  (0.1ms) rollback transaction
4812
+  (0.1ms) begin transaction
4813
+  (0.1ms) rollback transaction
4814
+  (0.1ms) begin transaction
4815
+  (0.1ms) rollback transaction
4816
+  (0.1ms) begin transaction
4817
+  (8.4ms) SELECT COUNT(*) FROM "org_member_tags"
4818
+  (0.1ms) rollback transaction
4819
+  (0.1ms) begin transaction
4820
+  (0.1ms) rollback transaction
4821
+  (0.1ms) begin transaction
4822
+  (0.2ms) rollback transaction
4823
+  (0.1ms) begin transaction
4824
+  (0.1ms) rollback transaction
4825
+  (0.1ms) begin transaction
4826
+  (0.1ms) rollback transaction
4827
+  (0.1ms) begin transaction
4828
+  (0.1ms) rollback transaction
4829
+  (0.1ms) begin transaction
4830
+  (0.1ms) rollback transaction
4831
+  (0.1ms) begin transaction
4832
+  (0.1ms) rollback transaction
4833
+  (0.1ms) begin transaction
4834
+  (0.1ms) rollback transaction
4835
+  (0.1ms) begin transaction
4836
+  (0.1ms) rollback transaction
4837
+  (0.1ms) begin transaction
4838
+  (0.2ms) rollback transaction
4839
+  (0.2ms) begin transaction
4840
+  (0.1ms) rollback transaction
4841
+  (0.1ms) begin transaction
4842
+  (0.2ms) rollback transaction
4843
+  (0.1ms) begin transaction
4844
+  (0.1ms) rollback transaction
4845
+  (0.1ms) begin transaction
4846
+  (0.1ms) rollback transaction
4847
+  (0.1ms) begin transaction
4848
+  (0.1ms) rollback transaction
4849
+  (0.1ms) begin transaction
4850
+  (8.3ms) SELECT COUNT(*) FROM "org_member_types"
4851
+  (0.1ms) rollback transaction
4852
+  (0.1ms) begin transaction
4853
+  (0.4ms) rollback transaction
4854
+  (0.3ms) begin transaction
4855
+  (0.1ms) rollback transaction
4856
+  (0.1ms) begin transaction
4857
+  (0.2ms) rollback transaction
4858
+  (0.2ms) begin transaction
4859
+  (0.1ms) rollback transaction
4860
+  (0.1ms) begin transaction
4861
+  (0.2ms) rollback transaction
4862
+  (0.1ms) begin transaction
4863
+  (0.1ms) rollback transaction
4864
+  (0.1ms) begin transaction
4865
+  (0.1ms) rollback transaction
4866
+  (0.0ms) begin transaction
4867
+  (0.1ms) rollback transaction
4868
+  (0.1ms) begin transaction
4869
+  (0.1ms) rollback transaction
4870
+  (0.1ms) begin transaction
4871
+  (0.0ms) rollback transaction
4872
+  (0.2ms) begin transaction
4873
+  (0.1ms) rollback transaction
4874
+  (0.1ms) begin transaction
4875
+  (0.1ms) rollback transaction
4876
+  (0.1ms) begin transaction
4877
+  (0.1ms) rollback transaction
4878
+  (0.1ms) begin transaction
4879
+  (0.1ms) rollback transaction
4880
+  (0.1ms) begin transaction
4881
+  (0.0ms) rollback transaction
4882
+  (0.0ms) begin transaction
4883
+  (0.4ms) SELECT COUNT(*) FROM "org_members" WHERE "org_members"."retired_on" IS NULL
4884
+  (0.1ms) rollback transaction
4885
+  (0.1ms) begin transaction
4886
+  (0.1ms) rollback transaction
4887
+  (0.1ms) begin transaction
4888
+  (0.0ms) rollback transaction
4889
+  (0.2ms) begin transaction
4890
+  (0.1ms) rollback transaction
4891
+  (0.1ms) begin transaction
4892
+  (0.1ms) rollback transaction
4893
+  (0.1ms) begin transaction
4894
+  (0.1ms) rollback transaction
4895
+  (0.1ms) begin transaction
4896
+  (0.1ms) rollback transaction
4897
+  (0.1ms) begin transaction
4898
+  (0.1ms) rollback transaction
4899
+  (0.1ms) begin transaction
4900
+  (0.0ms) rollback transaction
4901
+  (0.0ms) begin transaction
4902
+  (0.1ms) rollback transaction
4903
+  (0.5ms) begin transaction
4904
+  (0.1ms) rollback transaction
4905
+  (0.1ms) begin transaction
4906
+  (0.0ms) rollback transaction
4907
+  (0.1ms) begin transaction
4908
+  (0.1ms) rollback transaction
4909
+  (0.1ms) begin transaction
4910
+  (0.1ms) rollback transaction
4911
+  (0.1ms) begin transaction
4912
+ Processing by OrgsController#new as HTML
4913
+  (0.4ms) SELECT "langs"."code" FROM "langs" ORDER BY "langs"."position" ASC
4914
+ Rendered /Users/shinjiro/git/we_bridge_rails_engine_orgs/app/views/orgs/new.html.builder within layouts/application (0.4ms)
4915
+ Completed 200 OK in 38ms (Views: 24.8ms | ActiveRecord: 0.8ms)
4916
+  (0.2ms) rollback transaction
4917
+  (0.1ms) begin transaction
4918
+  (0.1ms) rollback transaction
4919
+  (0.1ms) begin transaction
4920
+  (0.6ms) SELECT COUNT(*) FROM "orgs"
4921
+  (0.1ms) rollback transaction
4922
+  (0.1ms) begin transaction
4923
+  (0.1ms) rollback transaction
4924
+  (0.0ms) begin transaction
4925
+  (0.0ms) rollback transaction
4926
+  (0.0ms) begin transaction
4927
+  (0.0ms) rollback transaction
4928
+  (0.0ms) begin transaction
4929
+  (0.0ms) rollback transaction
4930
+  (0.0ms) begin transaction
4931
+  (0.0ms) rollback transaction
4932
+  (0.0ms) begin transaction
4933
+  (0.0ms) rollback transaction
4934
+  (0.0ms) begin transaction
4935
+  (0.0ms) rollback transaction
4936
+  (0.1ms) begin transaction
4937
+  (0.1ms) rollback transaction
4938
+  (0.1ms) begin transaction
4939
+  (0.1ms) rollback transaction
4940
+  (0.1ms) begin transaction
4941
+  (0.1ms) rollback transaction
4942
+  (0.1ms) begin transaction
4943
+  (0.0ms) rollback transaction
4944
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4945
+  (0.1ms) begin transaction
4946
+  (0.1ms) SAVEPOINT active_record_1
4947
+ SQL (1.1ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:45.922157"], ["updated_at", "2015-12-16 15:19:45.922157"]]
4948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4949
+  (0.1ms) SAVEPOINT active_record_1
4950
+ SQL (0.4ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:45.937001"], ["updated_at", "2015-12-16 15:19:45.937001"]]
4951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4952
+  (0.1ms) SAVEPOINT active_record_1
4953
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:45.939244"], ["updated_at", "2015-12-16 15:19:45.939244"]]
4954
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4955
+ OrgBranch Load (0.8ms) SELECT DISTINCT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1
4956
+  (0.8ms) rollback transaction
4957
+  (0.1ms) begin transaction
4958
+  (0.1ms) SAVEPOINT active_record_1
4959
+ SQL (0.5ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:45.967626"], ["updated_at", "2015-12-16 15:19:45.967626"]]
4960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4961
+  (0.0ms) SAVEPOINT active_record_1
4962
+ SQL (0.3ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:45.971711"], ["updated_at", "2015-12-16 15:19:45.971711"]]
4963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4964
+  (0.0ms) SAVEPOINT active_record_1
4965
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:45.973646"], ["updated_at", "2015-12-16 15:19:45.973646"]]
4966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4967
+  (0.1ms) SAVEPOINT active_record_1
4968
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:45.996482"], ["updated_at", "2015-12-16 15:19:45.996482"]]
4969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4970
+ OrgBranchMemberMapping Load (0.1ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 1], ["org_branch_id", 1]]
4971
+  (0.1ms) SAVEPOINT active_record_1
4972
+ SQL (0.5ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 1], ["org_branch_id", 1], ["created_at", "2015-12-16 15:19:46.005813"], ["updated_at", "2015-12-16 15:19:46.005813"]]
4973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4974
+ OrgBranch Load (0.3ms) SELECT DISTINCT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1
4975
+  (0.7ms) rollback transaction
4976
+  (0.1ms) begin transaction
4977
+  (0.1ms) SAVEPOINT active_record_1
4978
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.013031"], ["updated_at", "2015-12-16 15:19:46.013031"]]
4979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4980
+  (0.0ms) SAVEPOINT active_record_1
4981
+ SQL (0.2ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:46.014950"], ["updated_at", "2015-12-16 15:19:46.014950"]]
4982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4983
+  (0.0ms) SAVEPOINT active_record_1
4984
+ SQL (0.2ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:46.016450"], ["updated_at", "2015-12-16 15:19:46.016450"]]
4985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4986
+  (0.0ms) SAVEPOINT active_record_1
4987
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.019019"], ["updated_at", "2015-12-16 15:19:46.019019"]]
4988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4989
+ OrgBranchMemberMapping Load (0.0ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 1], ["org_branch_id", 1]]
4990
+  (0.0ms) SAVEPOINT active_record_1
4991
+ SQL (0.1ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 1], ["org_branch_id", 1], ["created_at", "2015-12-16 15:19:46.020926"], ["updated_at", "2015-12-16 15:19:46.020926"]]
4992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4993
+  (0.1ms) SAVEPOINT active_record_1
4994
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.023848"], ["updated_at", "2015-12-16 15:19:46.023848"]]
4995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4996
+ OrgBranchMemberMapping Load (0.0ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 2], ["org_branch_id", 1]]
4997
+  (0.1ms) SAVEPOINT active_record_1
4998
+ SQL (0.1ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 2], ["org_branch_id", 1], ["created_at", "2015-12-16 15:19:46.026476"], ["updated_at", "2015-12-16 15:19:46.026476"]]
4999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5000
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "org_branches"."id") FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL
5001
+ OrgBranch Load (0.2ms) SELECT DISTINCT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1
5002
+  (0.7ms) rollback transaction
5003
+  (0.1ms) begin transaction
5004
+  (0.0ms) SAVEPOINT active_record_1
5005
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.033726"], ["updated_at", "2015-12-16 15:19:46.033726"]]
5006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5007
+  (0.0ms) SAVEPOINT active_record_1
5008
+ SQL (0.3ms) INSERT INTO "org_departments" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:19:46.038395"], ["updated_at", "2015-12-16 15:19:46.038395"]]
5009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5010
+  (0.1ms) SAVEPOINT active_record_1
5011
+ SQL (0.2ms) INSERT INTO "org_department_positions" ("org_department_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_department_id", 1], ["created_at", "2015-12-16 15:19:46.044285"], ["updated_at", "2015-12-16 15:19:46.044285"]]
5012
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5013
+  (0.1ms) SAVEPOINT active_record_1
5014
+ SQL (0.6ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.046728"], ["updated_at", "2015-12-16 15:19:46.046728"]]
5015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5016
+ OrgDepartmentPositionMemberMapping Load (0.6ms) SELECT "org_department_position_member_mappings".* FROM "org_department_position_member_mappings" WHERE "org_department_position_member_mappings"."org_department_position_id" = ? AND "org_department_position_member_mappings"."org_member_id" = ? LIMIT 1 [["org_department_position_id", 1], ["org_member_id", 1]]
5017
+  (0.1ms) SAVEPOINT active_record_1
5018
+ SQL (0.5ms) INSERT INTO "org_department_position_member_mappings" ("org_department_position_id", "org_member_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_department_position_id", 1], ["org_member_id", 1], ["created_at", "2015-12-16 15:19:46.059029"], ["updated_at", "2015-12-16 15:19:46.059029"]]
5019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5020
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "org_members"."id") FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? [["org_department_id", 1]]
5021
+ OrgMember Load (0.4ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_department_id", 1]]
5022
+  (0.7ms) rollback transaction
5023
+  (0.1ms) begin transaction
5024
+  (0.1ms) SAVEPOINT active_record_1
5025
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.092745"], ["updated_at", "2015-12-16 15:19:46.092745"]]
5026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5027
+  (0.1ms) SAVEPOINT active_record_1
5028
+ SQL (0.3ms) INSERT INTO "org_departments" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:19:46.095415"], ["updated_at", "2015-12-16 15:19:46.095415"]]
5029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5030
+  (0.0ms) SAVEPOINT active_record_1
5031
+ SQL (0.1ms) INSERT INTO "org_department_positions" ("org_department_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_department_id", 1], ["created_at", "2015-12-16 15:19:46.097508"], ["updated_at", "2015-12-16 15:19:46.097508"]]
5032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5033
+  (0.1ms) SAVEPOINT active_record_1
5034
+ SQL (0.6ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.099704"], ["updated_at", "2015-12-16 15:19:46.099704"]]
5035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5036
+ OrgDepartmentPositionMemberMapping Load (0.1ms) SELECT "org_department_position_member_mappings".* FROM "org_department_position_member_mappings" WHERE "org_department_position_member_mappings"."org_department_position_id" = ? AND "org_department_position_member_mappings"."org_member_id" = ? LIMIT 1 [["org_department_position_id", 1], ["org_member_id", 1]]
5037
+  (0.1ms) SAVEPOINT active_record_1
5038
+ SQL (0.1ms) INSERT INTO "org_department_position_member_mappings" ("org_department_position_id", "org_member_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_department_position_id", 1], ["org_member_id", 1], ["created_at", "2015-12-16 15:19:46.103581"], ["updated_at", "2015-12-16 15:19:46.103581"]]
5039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5040
+  (0.0ms) SAVEPOINT active_record_1
5041
+ SQL (0.1ms) INSERT INTO "org_department_positions" ("org_department_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_department_id", 1], ["created_at", "2015-12-16 15:19:46.104933"], ["updated_at", "2015-12-16 15:19:46.104933"]]
5042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5043
+ OrgDepartmentPositionMemberMapping Load (0.0ms) SELECT "org_department_position_member_mappings".* FROM "org_department_position_member_mappings" WHERE "org_department_position_member_mappings"."org_department_position_id" = ? AND "org_department_position_member_mappings"."org_member_id" = ? LIMIT 1 [["org_department_position_id", 2], ["org_member_id", 1]]
5044
+  (0.0ms) SAVEPOINT active_record_1
5045
+ SQL (0.1ms) INSERT INTO "org_department_position_member_mappings" ("org_department_position_id", "org_member_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_department_position_id", 2], ["org_member_id", 1], ["created_at", "2015-12-16 15:19:46.106408"], ["updated_at", "2015-12-16 15:19:46.106408"]]
5046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5047
+  (0.1ms) SELECT DISTINCT COUNT(DISTINCT "org_members"."id") FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? [["org_department_id", 1]]
5048
+ OrgMember Load (0.1ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_department_id", 1]]
5049
+  (0.8ms) rollback transaction
5050
+  (0.1ms) begin transaction
5051
+  (0.0ms) SAVEPOINT active_record_1
5052
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.112507"], ["updated_at", "2015-12-16 15:19:46.112507"]]
5053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5054
+  (0.0ms) SAVEPOINT active_record_1
5055
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "retired_on", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["retired_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.115055"], ["updated_at", "2015-12-16 15:19:46.115055"]]
5056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5057
+  (0.0ms) SAVEPOINT active_record_1
5058
+ SQL (0.4ms) UPDATE "org_members" SET "retired_on" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["retired_on", nil], ["updated_at", "2015-12-16 15:19:46.117731"], ["id", 1]]
5059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5060
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5061
+  (0.7ms) rollback transaction
5062
+  (0.1ms) begin transaction
5063
+  (0.1ms) SAVEPOINT active_record_1
5064
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.133024"], ["updated_at", "2015-12-16 15:19:46.133024"]]
5065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5066
+  (0.1ms) SAVEPOINT active_record_1
5067
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "retired_on", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["retired_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.135958"], ["updated_at", "2015-12-16 15:19:46.135958"]]
5068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5069
+  (0.1ms) SELECT COUNT(*) FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? [["org_id", 1]]
5070
+  (0.8ms) rollback transaction
5071
+  (0.1ms) begin transaction
5072
+  (0.1ms) SAVEPOINT active_record_1
5073
+ SQL (0.4ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.142949"], ["updated_at", "2015-12-16 15:19:46.142949"]]
5074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5075
+  (0.1ms) SAVEPOINT active_record_1
5076
+ SQL (1.0ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 2], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:46.146474"], ["updated_at", "2015-12-16 15:19:46.146474"]]
5077
+  (0.2ms) RELEASE SAVEPOINT active_record_1
5078
+  (0.1ms) SAVEPOINT active_record_1
5079
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:46.151639"], ["updated_at", "2015-12-16 15:19:46.151639"]]
5080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5081
+  (0.0ms) SAVEPOINT active_record_1
5082
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:19:46.153584"], ["updated_at", "2015-12-16 15:19:46.153584"]]
5083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5084
+  (0.0ms) SAVEPOINT active_record_1
5085
+ SQL (0.6ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.155809"], ["updated_at", "2015-12-16 15:19:46.155809"]]
5086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5087
+ OrgBranchMemberMapping Load (0.0ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 1], ["org_branch_id", 2]]
5088
+  (0.0ms) SAVEPOINT active_record_1
5089
+ SQL (0.1ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 1], ["org_branch_id", 2], ["created_at", "2015-12-16 15:19:46.159048"], ["updated_at", "2015-12-16 15:19:46.159048"]]
5090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5091
+  (0.1ms) SELECT COUNT(*) FROM "org_branches" WHERE "org_branches"."org_id" = ? [["org_id", 1]]
5092
+  (0.8ms) rollback transaction
5093
+  (0.1ms) begin transaction
5094
+  (0.0ms) SAVEPOINT active_record_1
5095
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.164307"], ["updated_at", "2015-12-16 15:19:46.164307"]]
5096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5097
+  (0.0ms) SAVEPOINT active_record_1
5098
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.166369"], ["updated_at", "2015-12-16 15:19:46.166369"]]
5099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5100
+  (0.1ms) SAVEPOINT active_record_1
5101
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.169325"], ["updated_at", "2015-12-16 15:19:46.169325"]]
5102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5103
+  (0.0ms) SAVEPOINT active_record_1
5104
+ SQL (0.2ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:19:46.176970"], ["updated_at", "2015-12-16 15:19:46.176970"]]
5105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5106
+  (0.0ms) SAVEPOINT active_record_1
5107
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:19:46.178441"], ["updated_at", "2015-12-16 15:19:46.178441"]]
5108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5109
+  (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5110
+ OrgMember Load (0.2ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5111
+  (0.8ms) rollback transaction
5112
+  (0.1ms) begin transaction
5113
+  (0.1ms) SAVEPOINT active_record_1
5114
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.186867"], ["updated_at", "2015-12-16 15:19:46.186867"]]
5115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5116
+  (0.0ms) SAVEPOINT active_record_1
5117
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.189428"], ["updated_at", "2015-12-16 15:19:46.189428"]]
5118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5119
+  (0.0ms) SAVEPOINT active_record_1
5120
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.191870"], ["updated_at", "2015-12-16 15:19:46.191870"]]
5121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5122
+  (0.0ms) SAVEPOINT active_record_1
5123
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:19:46.194098"], ["updated_at", "2015-12-16 15:19:46.194098"]]
5124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5125
+  (0.1ms) SAVEPOINT active_record_1
5126
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:19:46.195947"], ["updated_at", "2015-12-16 15:19:46.195947"]]
5127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5128
+  (0.0ms) SAVEPOINT active_record_1
5129
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 2], ["updated_at", "2015-12-16 15:19:46.197717"], ["id", 1]]
5130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5131
+  (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5132
+ OrgMember Load (0.0ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5133
+  (0.8ms) rollback transaction
5134
+  (0.1ms) begin transaction
5135
+  (0.1ms) SAVEPOINT active_record_1
5136
+ SQL (0.4ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.203588"], ["updated_at", "2015-12-16 15:19:46.203588"]]
5137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5138
+  (0.1ms) SAVEPOINT active_record_1
5139
+ SQL (0.5ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.207667"], ["updated_at", "2015-12-16 15:19:46.207667"]]
5140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5141
+  (0.1ms) SAVEPOINT active_record_1
5142
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.210856"], ["updated_at", "2015-12-16 15:19:46.210856"]]
5143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5144
+  (0.3ms) SAVEPOINT active_record_1
5145
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:19:46.213882"], ["updated_at", "2015-12-16 15:19:46.213882"]]
5146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5147
+  (0.0ms) SAVEPOINT active_record_1
5148
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:19:46.215692"], ["updated_at", "2015-12-16 15:19:46.215692"]]
5149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5150
+  (0.0ms) SAVEPOINT active_record_1
5151
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 1], ["updated_at", "2015-12-16 15:19:46.217003"], ["id", 2]]
5152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5153
+  (0.0ms) SAVEPOINT active_record_1
5154
+ SQL (0.2ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 2], ["updated_at", "2015-12-16 15:19:46.218289"], ["id", 1]]
5155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5156
+  (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5157
+ OrgMember Load (0.0ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5158
+  (0.7ms) rollback transaction
5159
+  (0.1ms) begin transaction
5160
+  (0.1ms) SAVEPOINT active_record_1
5161
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:19:46.226240"], ["updated_at", "2015-12-16 15:19:46.226240"]]
5162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5163
+  (0.1ms) SAVEPOINT active_record_1
5164
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.228829"], ["updated_at", "2015-12-16 15:19:46.228829"]]
5165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5166
+  (0.0ms) SAVEPOINT active_record_1
5167
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:19:46.230985"], ["updated_at", "2015-12-16 15:19:46.230985"]]
5168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5169
+  (0.0ms) SAVEPOINT active_record_1
5170
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:19:46.232382"], ["updated_at", "2015-12-16 15:19:46.232382"]]
5171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5172
+  (0.0ms) SAVEPOINT active_record_1
5173
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:19:46.233701"], ["updated_at", "2015-12-16 15:19:46.233701"]]
5174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5175
+  (0.0ms) SAVEPOINT active_record_1
5176
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 1], ["updated_at", "2015-12-16 15:19:46.234858"], ["id", 2]]
5177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5178
+  (0.1ms) SAVEPOINT active_record_1
5179
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 2], ["updated_at", "2015-12-16 15:19:46.237063"], ["id", 1]]
5180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5181
+  (0.1ms) SAVEPOINT active_record_1
5182
+ OrgDirectorType Load (0.2ms) SELECT "org_director_types"."limit" FROM "org_director_types" WHERE "org_director_types"."id" = ? ORDER BY "org_director_types"."id" ASC LIMIT 1 [["id", 1]]
5183
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 1], ["updated_at", "2015-12-16 15:19:46.240521"], ["id", 1]]
5184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5185
+  (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5186
+ OrgMember Load (0.1ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5187
+  (0.9ms) rollback transaction
5188
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5189
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5190
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5191
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5192
+  (0.1ms) begin transaction
5193
+  (0.1ms) SAVEPOINT active_record_1
5194
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:01.973134"], ["updated_at", "2015-12-16 15:27:01.973134"]]
5195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5196
+  (0.1ms) SAVEPOINT active_record_1
5197
+ SQL (0.3ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:01.980956"], ["updated_at", "2015-12-16 15:27:01.980956"]]
5198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5199
+  (0.1ms) SAVEPOINT active_record_1
5200
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:01.982738"], ["updated_at", "2015-12-16 15:27:01.982738"]]
5201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5202
+ OrgBranch Load (0.3ms) SELECT DISTINCT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1
5203
+  (7.9ms) rollback transaction
5204
+  (0.1ms) begin transaction
5205
+  (0.1ms) SAVEPOINT active_record_1
5206
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.009529"], ["updated_at", "2015-12-16 15:27:02.009529"]]
5207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5208
+  (0.0ms) SAVEPOINT active_record_1
5209
+ SQL (0.2ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.011648"], ["updated_at", "2015-12-16 15:27:02.011648"]]
5210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5211
+  (0.0ms) SAVEPOINT active_record_1
5212
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.013073"], ["updated_at", "2015-12-16 15:27:02.013073"]]
5213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5214
+  (0.1ms) SAVEPOINT active_record_1
5215
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.032366"], ["updated_at", "2015-12-16 15:27:02.032366"]]
5216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5217
+ OrgBranchMemberMapping Load (0.1ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 1], ["org_branch_id", 1]]
5218
+  (0.2ms) SAVEPOINT active_record_1
5219
+ SQL (0.2ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 1], ["org_branch_id", 1], ["created_at", "2015-12-16 15:27:02.037929"], ["updated_at", "2015-12-16 15:27:02.037929"]]
5220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5221
+ OrgBranch Load (0.3ms) SELECT DISTINCT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1
5222
+  (0.9ms) rollback transaction
5223
+  (0.1ms) begin transaction
5224
+  (0.1ms) SAVEPOINT active_record_1
5225
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.045780"], ["updated_at", "2015-12-16 15:27:02.045780"]]
5226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5227
+  (0.1ms) SAVEPOINT active_record_1
5228
+ SQL (0.3ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.048367"], ["updated_at", "2015-12-16 15:27:02.048367"]]
5229
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5230
+  (0.0ms) SAVEPOINT active_record_1
5231
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.050510"], ["updated_at", "2015-12-16 15:27:02.050510"]]
5232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5233
+  (0.1ms) SAVEPOINT active_record_1
5234
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.053462"], ["updated_at", "2015-12-16 15:27:02.053462"]]
5235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5236
+ OrgBranchMemberMapping Load (0.1ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 1], ["org_branch_id", 1]]
5237
+  (0.1ms) SAVEPOINT active_record_1
5238
+ SQL (0.1ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 1], ["org_branch_id", 1], ["created_at", "2015-12-16 15:27:02.058906"], ["updated_at", "2015-12-16 15:27:02.058906"]]
5239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5240
+  (0.1ms) SAVEPOINT active_record_1
5241
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.061125"], ["updated_at", "2015-12-16 15:27:02.061125"]]
5242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5243
+ OrgBranchMemberMapping Load (0.0ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 2], ["org_branch_id", 1]]
5244
+  (0.0ms) SAVEPOINT active_record_1
5245
+ SQL (0.1ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 2], ["org_branch_id", 1], ["created_at", "2015-12-16 15:27:02.062992"], ["updated_at", "2015-12-16 15:27:02.062992"]]
5246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5247
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "org_branches"."id") FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL
5248
+ OrgBranch Load (0.2ms) SELECT DISTINCT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_member_mappings" ON "org_branch_member_mappings"."org_branch_id" = "org_branches"."id" INNER JOIN "org_members" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" AND "org_members"."retired_on" IS NULL ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1
5249
+  (0.7ms) rollback transaction
5250
+  (0.1ms) begin transaction
5251
+  (0.1ms) SAVEPOINT active_record_1
5252
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.070133"], ["updated_at", "2015-12-16 15:27:02.070133"]]
5253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5254
+  (0.1ms) SAVEPOINT active_record_1
5255
+ SQL (0.3ms) INSERT INTO "org_departments" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:27:02.076226"], ["updated_at", "2015-12-16 15:27:02.076226"]]
5256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5257
+  (0.1ms) SAVEPOINT active_record_1
5258
+ SQL (0.2ms) INSERT INTO "org_department_positions" ("org_department_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_department_id", 1], ["created_at", "2015-12-16 15:27:02.081492"], ["updated_at", "2015-12-16 15:27:02.081492"]]
5259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5260
+  (0.1ms) SAVEPOINT active_record_1
5261
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.083448"], ["updated_at", "2015-12-16 15:27:02.083448"]]
5262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5263
+ OrgDepartmentPositionMemberMapping Load (0.1ms) SELECT "org_department_position_member_mappings".* FROM "org_department_position_member_mappings" WHERE "org_department_position_member_mappings"."org_department_position_id" = ? AND "org_department_position_member_mappings"."org_member_id" = ? LIMIT 1 [["org_department_position_id", 1], ["org_member_id", 1]]
5264
+  (0.0ms) SAVEPOINT active_record_1
5265
+ SQL (0.1ms) INSERT INTO "org_department_position_member_mappings" ("org_department_position_id", "org_member_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_department_position_id", 1], ["org_member_id", 1], ["created_at", "2015-12-16 15:27:02.090006"], ["updated_at", "2015-12-16 15:27:02.090006"]]
5266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5267
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "org_members"."id") FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? [["org_department_id", 1]]
5268
+ OrgMember Load (0.3ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_department_id", 1]]
5269
+  (0.7ms) rollback transaction
5270
+  (0.1ms) begin transaction
5271
+  (0.0ms) SAVEPOINT active_record_1
5272
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.114746"], ["updated_at", "2015-12-16 15:27:02.114746"]]
5273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5274
+  (0.0ms) SAVEPOINT active_record_1
5275
+ SQL (0.3ms) INSERT INTO "org_departments" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:27:02.116770"], ["updated_at", "2015-12-16 15:27:02.116770"]]
5276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5277
+  (0.0ms) SAVEPOINT active_record_1
5278
+ SQL (0.1ms) INSERT INTO "org_department_positions" ("org_department_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_department_id", 1], ["created_at", "2015-12-16 15:27:02.118280"], ["updated_at", "2015-12-16 15:27:02.118280"]]
5279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5280
+  (0.0ms) SAVEPOINT active_record_1
5281
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.119849"], ["updated_at", "2015-12-16 15:27:02.119849"]]
5282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5283
+ OrgDepartmentPositionMemberMapping Load (0.1ms) SELECT "org_department_position_member_mappings".* FROM "org_department_position_member_mappings" WHERE "org_department_position_member_mappings"."org_department_position_id" = ? AND "org_department_position_member_mappings"."org_member_id" = ? LIMIT 1 [["org_department_position_id", 1], ["org_member_id", 1]]
5284
+  (0.1ms) SAVEPOINT active_record_1
5285
+ SQL (0.3ms) INSERT INTO "org_department_position_member_mappings" ("org_department_position_id", "org_member_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_department_position_id", 1], ["org_member_id", 1], ["created_at", "2015-12-16 15:27:02.122819"], ["updated_at", "2015-12-16 15:27:02.122819"]]
5286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5287
+  (0.1ms) SAVEPOINT active_record_1
5288
+ SQL (0.1ms) INSERT INTO "org_department_positions" ("org_department_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_department_id", 1], ["created_at", "2015-12-16 15:27:02.125426"], ["updated_at", "2015-12-16 15:27:02.125426"]]
5289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5290
+ OrgDepartmentPositionMemberMapping Load (0.0ms) SELECT "org_department_position_member_mappings".* FROM "org_department_position_member_mappings" WHERE "org_department_position_member_mappings"."org_department_position_id" = ? AND "org_department_position_member_mappings"."org_member_id" = ? LIMIT 1 [["org_department_position_id", 2], ["org_member_id", 1]]
5291
+  (0.1ms) SAVEPOINT active_record_1
5292
+ SQL (0.1ms) INSERT INTO "org_department_position_member_mappings" ("org_department_position_id", "org_member_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_department_position_id", 2], ["org_member_id", 1], ["created_at", "2015-12-16 15:27:02.128148"], ["updated_at", "2015-12-16 15:27:02.128148"]]
5293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5294
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "org_members"."id") FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? [["org_department_id", 1]]
5295
+ OrgMember Load (0.2ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_department_position_member_mappings" ON "org_members"."id" = "org_department_position_member_mappings"."org_member_id" INNER JOIN "org_department_positions" ON "org_department_position_member_mappings"."org_department_position_id" = "org_department_positions"."id" WHERE "org_members"."retired_on" IS NULL AND "org_department_positions"."org_department_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_department_id", 1]]
5296
+  (1.4ms) rollback transaction
5297
+  (0.1ms) begin transaction
5298
+  (0.1ms) SAVEPOINT active_record_1
5299
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.136728"], ["updated_at", "2015-12-16 15:27:02.136728"]]
5300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5301
+  (0.1ms) SAVEPOINT active_record_1
5302
+ SQL (0.4ms) INSERT INTO "org_members" ("org_id", "entried_on", "retired_on", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["retired_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.140295"], ["updated_at", "2015-12-16 15:27:02.140295"]]
5303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5304
+  (0.0ms) SAVEPOINT active_record_1
5305
+ SQL (0.2ms) UPDATE "org_members" SET "retired_on" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["retired_on", nil], ["updated_at", "2015-12-16 15:27:02.142891"], ["id", 1]]
5306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5307
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5308
+  (0.6ms) rollback transaction
5309
+  (0.1ms) begin transaction
5310
+  (0.0ms) SAVEPOINT active_record_1
5311
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.153607"], ["updated_at", "2015-12-16 15:27:02.153607"]]
5312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5313
+  (0.0ms) SAVEPOINT active_record_1
5314
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "retired_on", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["retired_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.156197"], ["updated_at", "2015-12-16 15:27:02.156197"]]
5315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5316
+  (0.1ms) SELECT COUNT(*) FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? [["org_id", 1]]
5317
+  (0.8ms) rollback transaction
5318
+  (0.1ms) begin transaction
5319
+  (0.1ms) SAVEPOINT active_record_1
5320
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.163270"], ["updated_at", "2015-12-16 15:27:02.163270"]]
5321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5322
+  (0.0ms) SAVEPOINT active_record_1
5323
+ SQL (0.2ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 2], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.165661"], ["updated_at", "2015-12-16 15:27:02.165661"]]
5324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5325
+  (0.0ms) SAVEPOINT active_record_1
5326
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.167411"], ["updated_at", "2015-12-16 15:27:02.167411"]]
5327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5328
+  (0.0ms) SAVEPOINT active_record_1
5329
+ SQL (0.1ms) INSERT INTO "org_branches" ("org_id", "org_branch_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["org_branch_type_id", 1], ["created_at", "2015-12-16 15:27:02.168760"], ["updated_at", "2015-12-16 15:27:02.168760"]]
5330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5331
+  (0.0ms) SAVEPOINT active_record_1
5332
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.170378"], ["updated_at", "2015-12-16 15:27:02.170378"]]
5333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5334
+ OrgBranchMemberMapping Load (0.1ms) SELECT "org_branch_member_mappings".* FROM "org_branch_member_mappings" WHERE "org_branch_member_mappings"."org_member_id" = ? AND "org_branch_member_mappings"."org_branch_id" = ? LIMIT 1 [["org_member_id", 1], ["org_branch_id", 2]]
5335
+  (0.2ms) SAVEPOINT active_record_1
5336
+ SQL (0.3ms) INSERT INTO "org_branch_member_mappings" ("org_member_id", "org_branch_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_member_id", 1], ["org_branch_id", 2], ["created_at", "2015-12-16 15:27:02.174735"], ["updated_at", "2015-12-16 15:27:02.174735"]]
5337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5338
+  (0.1ms) SELECT COUNT(*) FROM "org_branches" WHERE "org_branches"."org_id" = ? [["org_id", 1]]
5339
+  (0.5ms) rollback transaction
5340
+  (0.1ms) begin transaction
5341
+  (0.1ms) SAVEPOINT active_record_1
5342
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.181780"], ["updated_at", "2015-12-16 15:27:02.181780"]]
5343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5344
+  (0.0ms) SAVEPOINT active_record_1
5345
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.184244"], ["updated_at", "2015-12-16 15:27:02.184244"]]
5346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5347
+  (0.0ms) SAVEPOINT active_record_1
5348
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.186390"], ["updated_at", "2015-12-16 15:27:02.186390"]]
5349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5350
+  (0.1ms) SAVEPOINT active_record_1
5351
+ SQL (0.2ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:27:02.191569"], ["updated_at", "2015-12-16 15:27:02.191569"]]
5352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5353
+  (0.0ms) SAVEPOINT active_record_1
5354
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:27:02.193176"], ["updated_at", "2015-12-16 15:27:02.193176"]]
5355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5356
+  (0.2ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5357
+ OrgMember Load (0.2ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5358
+  (0.7ms) rollback transaction
5359
+  (0.1ms) begin transaction
5360
+  (0.0ms) SAVEPOINT active_record_1
5361
+ SQL (0.2ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.201553"], ["updated_at", "2015-12-16 15:27:02.201553"]]
5362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5363
+  (0.0ms) SAVEPOINT active_record_1
5364
+ SQL (0.2ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.203723"], ["updated_at", "2015-12-16 15:27:02.203723"]]
5365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5366
+  (0.0ms) SAVEPOINT active_record_1
5367
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.205597"], ["updated_at", "2015-12-16 15:27:02.205597"]]
5368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5369
+  (0.1ms) SAVEPOINT active_record_1
5370
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:27:02.207049"], ["updated_at", "2015-12-16 15:27:02.207049"]]
5371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5372
+  (0.0ms) SAVEPOINT active_record_1
5373
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:27:02.208179"], ["updated_at", "2015-12-16 15:27:02.208179"]]
5374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5375
+  (0.0ms) SAVEPOINT active_record_1
5376
+ SQL (0.3ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 2], ["updated_at", "2015-12-16 15:27:02.209357"], ["id", 1]]
5377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5378
+  (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5379
+ OrgMember Load (0.1ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5380
+  (0.6ms) rollback transaction
5381
+  (0.1ms) begin transaction
5382
+  (0.1ms) SAVEPOINT active_record_1
5383
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.216359"], ["updated_at", "2015-12-16 15:27:02.216359"]]
5384
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5385
+  (0.0ms) SAVEPOINT active_record_1
5386
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.219023"], ["updated_at", "2015-12-16 15:27:02.219023"]]
5387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5388
+  (0.0ms) SAVEPOINT active_record_1
5389
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.221101"], ["updated_at", "2015-12-16 15:27:02.221101"]]
5390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5391
+  (0.3ms) SAVEPOINT active_record_1
5392
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:27:02.225155"], ["updated_at", "2015-12-16 15:27:02.225155"]]
5393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5394
+  (0.0ms) SAVEPOINT active_record_1
5395
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:27:02.227299"], ["updated_at", "2015-12-16 15:27:02.227299"]]
5396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5397
+  (0.0ms) SAVEPOINT active_record_1
5398
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 1], ["updated_at", "2015-12-16 15:27:02.228861"], ["id", 2]]
5399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5400
+  (0.0ms) SAVEPOINT active_record_1
5401
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 2], ["updated_at", "2015-12-16 15:27:02.230373"], ["id", 1]]
5402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5403
+  (0.1ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5404
+ OrgMember Load (0.1ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5405
+  (0.7ms) rollback transaction
5406
+  (0.1ms) begin transaction
5407
+  (0.1ms) SAVEPOINT active_record_1
5408
+ SQL (0.3ms) INSERT INTO "orgs" ("lang_id", "created_at", "updated_at") VALUES (?, ?, ?) [["lang_id", 1], ["created_at", "2015-12-16 15:27:02.236365"], ["updated_at", "2015-12-16 15:27:02.236365"]]
5409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5410
+  (0.0ms) SAVEPOINT active_record_1
5411
+ SQL (0.3ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.238897"], ["updated_at", "2015-12-16 15:27:02.238897"]]
5412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5413
+  (0.0ms) SAVEPOINT active_record_1
5414
+ SQL (0.1ms) INSERT INTO "org_members" ("org_id", "entried_on", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["entried_on", "2015-12-17"], ["created_at", "2015-12-16 15:27:02.240818"], ["updated_at", "2015-12-16 15:27:02.240818"]]
5415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5416
+  (0.0ms) SAVEPOINT active_record_1
5417
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "created_at", "updated_at") VALUES (?, ?, ?) [["org_id", 1], ["created_at", "2015-12-16 15:27:02.242187"], ["updated_at", "2015-12-16 15:27:02.242187"]]
5418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5419
+  (0.0ms) SAVEPOINT active_record_1
5420
+ SQL (0.1ms) INSERT INTO "org_director_types" ("org_id", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["org_id", 1], ["position", 1], ["created_at", "2015-12-16 15:27:02.243320"], ["updated_at", "2015-12-16 15:27:02.243320"]]
5421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5422
+  (0.0ms) SAVEPOINT active_record_1
5423
+ SQL (0.0ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 1], ["updated_at", "2015-12-16 15:27:02.244572"], ["id", 2]]
5424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5425
+  (0.1ms) SAVEPOINT active_record_1
5426
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 2], ["updated_at", "2015-12-16 15:27:02.246242"], ["id", 1]]
5427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5428
+  (0.0ms) SAVEPOINT active_record_1
5429
+ OrgDirectorType Load (0.1ms) SELECT "org_director_types"."limit" FROM "org_director_types" WHERE "org_director_types"."id" = ? ORDER BY "org_director_types"."id" ASC LIMIT 1 [["id", 1]]
5430
+ SQL (0.1ms) UPDATE "org_members" SET "org_director_type_id" = ?, "updated_at" = ? WHERE "org_members"."id" = ? [["org_director_type_id", 1], ["updated_at", "2015-12-16 15:27:02.248403"], ["id", 1]]
5431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5432
+  (0.0ms) SELECT MIN("org_director_types"."position") FROM "org_director_types" WHERE "org_director_types"."org_id" = ? [["org_id", 1]]
5433
+ OrgMember Load (0.1ms) SELECT DISTINCT "org_members".* FROM "org_members" INNER JOIN "org_director_types" "org_director_types_org_members" ON "org_director_types_org_members"."id" = "org_members"."org_director_type_id" INNER JOIN "org_director_types" ON "org_members"."org_director_type_id" = "org_director_types"."id" WHERE "org_members"."retired_on" IS NULL AND "org_director_types"."org_id" = ? AND "org_director_types"."position" = 0 ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
5434
+  (0.8ms) rollback transaction