change_manager 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -975,3 +975,1250 @@ The Scholar@UC team
975
975
   (0.1ms) rollback transaction
976
976
   (0.0ms) begin transaction
977
977
   (0.1ms) rollback transaction
978
+  (0.5ms) begin transaction
979
+  (0.1ms) rollback transaction
980
+  (0.1ms) begin transaction
981
+  (0.1ms) rollback transaction
982
+  (0.1ms) begin transaction
983
+  (0.1ms) rollback transaction
984
+  (0.1ms) begin transaction
985
+  (0.1ms) SAVEPOINT active_record_1
986
+ SQL (35.6ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
988
+  (22.8ms) rollback transaction
989
+  (0.1ms) begin transaction
990
+  (0.1ms) rollback transaction
991
+  (0.1ms) begin transaction
992
+  (0.1ms) rollback transaction
993
+  (0.1ms) begin transaction
994
+  (0.1ms) SAVEPOINT active_record_1
995
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
997
+  (0.6ms) rollback transaction
998
+  (0.1ms) begin transaction
999
+  (0.1ms) rollback transaction
1000
+  (0.1ms) begin transaction
1001
+  (0.1ms) rollback transaction
1002
+  (0.1ms) begin transaction
1003
+  (0.1ms) SAVEPOINT active_record_1
1004
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1006
+ ChangeManager::Change Load (0.2ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1007
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1008
+ ChangeManager::Change Load (0.2ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
1009
+  (0.1ms) SAVEPOINT active_record_1
1010
+ SQL (1.4ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1012
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (2.2ms)
1013
+
1014
+ Sent mail to spec@test.com (34.8ms)
1015
+ Date: Thu, 02 Jun 2016 15:01:36 -0400
1016
+ From: email@test.com
1017
+ To: spec@test.com
1018
+ Message-ID: <57508290a1eed_2a4d3fd265855be854757@kyles-mbp.lang.uc.edu.mail>
1019
+ Subject: Updates from Scholar@UC
1020
+ Mime-Version: 1.0
1021
+ Content-Type: text/html;
1022
+ charset=UTF-8
1023
+ Content-Transfer-Encoding: 7bit
1024
+
1025
+ <!-- mailer template here -->
1026
+ <div>
1027
+ Dear Scholar@UC User,
1028
+ </div>
1029
+ <br>
1030
+ This email is to inform you that the following changes have been made to your account:
1031
+ <br><br>
1032
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-06-02 19:01:36 UTC</td></tr></table>
1033
+
1034
+ Changes can include:
1035
+ <br>
1036
+ <ul>
1037
+ <li>Being added/removed as another contributor's delegate</li>
1038
+ <li>Being added/removed as an editor of a work</li>
1039
+ <li>Being added/removed to a group</li>
1040
+ </ul>
1041
+
1042
+
1043
+ Thanks,
1044
+ The Scholar@UC team
1045
+  (0.2ms) SAVEPOINT active_record_1
1046
+ SQL (0.3ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1048
+  (0.9ms) rollback transaction
1049
+  (0.1ms) begin transaction
1050
+  (0.1ms) SAVEPOINT active_record_1
1051
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1053
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1054
+  (0.5ms) rollback transaction
1055
+  (0.1ms) begin transaction
1056
+  (0.1ms) SAVEPOINT active_record_1
1057
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1059
+  (0.8ms) rollback transaction
1060
+  (0.1ms) begin transaction
1061
+  (0.1ms) SAVEPOINT active_record_1
1062
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1064
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1065
+  (0.1ms) SAVEPOINT active_record_1
1066
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1068
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1069
+  (0.1ms) SAVEPOINT active_record_1
1070
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1072
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1073
+  (0.1ms) SAVEPOINT active_record_1
1074
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1076
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1077
+  (1.0ms) rollback transaction
1078
+  (0.1ms) begin transaction
1079
+  (0.1ms) SAVEPOINT active_record_1
1080
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1082
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1083
+  (0.1ms) SAVEPOINT active_record_1
1084
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1086
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1087
+  (0.1ms) SAVEPOINT active_record_1
1088
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1090
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1091
+  (0.1ms) SAVEPOINT active_record_1
1092
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1094
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1095
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1096
+  (0.9ms) rollback transaction
1097
+  (0.1ms) begin transaction
1098
+  (0.1ms) SAVEPOINT active_record_1
1099
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1102
+  (0.0ms) SAVEPOINT active_record_1
1103
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1105
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1106
+  (0.1ms) SAVEPOINT active_record_1
1107
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1109
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1110
+  (0.0ms) SAVEPOINT active_record_1
1111
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1113
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1114
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1115
+  (0.0ms) SAVEPOINT active_record_1
1116
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1118
+  (0.0ms) SAVEPOINT active_record_1
1119
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1121
+  (1.0ms) rollback transaction
1122
+  (0.1ms) begin transaction
1123
+  (0.0ms) SAVEPOINT active_record_1
1124
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1126
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1127
+  (0.1ms) SAVEPOINT active_record_1
1128
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1130
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1131
+  (0.0ms) SAVEPOINT active_record_1
1132
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1134
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1135
+  (0.0ms) SAVEPOINT active_record_1
1136
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1138
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1139
+  (0.0ms) SAVEPOINT active_record_1
1140
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1142
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
1143
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1144
+  (0.1ms) SAVEPOINT active_record_1
1145
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.1ms) SAVEPOINT active_record_1
1148
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:01:36 UTC +00:00]]
1149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1150
+  (0.9ms) rollback transaction
1151
+  (0.3ms) begin transaction
1152
+  (0.0ms) SAVEPOINT active_record_1
1153
+ SQL (3.0ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1155
+  (1.4ms) rollback transaction
1156
+  (0.1ms) begin transaction
1157
+  (0.1ms) rollback transaction
1158
+  (0.1ms) begin transaction
1159
+  (0.1ms) rollback transaction
1160
+  (0.0ms) begin transaction
1161
+  (0.1ms) rollback transaction
1162
+  (0.0ms) begin transaction
1163
+  (0.0ms) rollback transaction
1164
+  (0.1ms) begin transaction
1165
+  (0.1ms) SAVEPOINT active_record_1
1166
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1168
+  (0.5ms) rollback transaction
1169
+  (0.0ms) begin transaction
1170
+  (0.1ms) rollback transaction
1171
+  (0.0ms) begin transaction
1172
+  (0.0ms) rollback transaction
1173
+  (0.0ms) begin transaction
1174
+  (0.0ms) rollback transaction
1175
+  (0.0ms) begin transaction
1176
+  (0.0ms) SAVEPOINT active_record_1
1177
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1179
+  (0.5ms) rollback transaction
1180
+  (0.0ms) begin transaction
1181
+  (0.0ms) SAVEPOINT active_record_1
1182
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1184
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1185
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1186
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
1187
+  (0.0ms) SAVEPOINT active_record_1
1188
+ SQL (1.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1190
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (1.3ms)
1191
+
1192
+ Sent mail to spec@test.com (14.2ms)
1193
+ Date: Thu, 02 Jun 2016 15:02:02 -0400
1194
+ From: email@test.com
1195
+ To: spec@test.com
1196
+ Message-ID: <575082aaa30c4_2a5a3fcd69463be43223b@kyles-mbp.lang.uc.edu.mail>
1197
+ Subject: Updates from Scholar@UC
1198
+ Mime-Version: 1.0
1199
+ Content-Type: text/html;
1200
+ charset=UTF-8
1201
+ Content-Transfer-Encoding: 7bit
1202
+
1203
+ <!-- mailer template here -->
1204
+ <div>
1205
+ Dear Scholar@UC User,
1206
+ </div>
1207
+ <br>
1208
+ This email is to inform you that the following changes have been made to your account:
1209
+ <br><br>
1210
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-06-02 19:02:02 UTC</td></tr></table>
1211
+
1212
+ Changes can include:
1213
+ <br>
1214
+ <ul>
1215
+ <li>Being added/removed as another contributor's delegate</li>
1216
+ <li>Being added/removed as an editor of a work</li>
1217
+ <li>Being added/removed to a group</li>
1218
+ </ul>
1219
+
1220
+
1221
+ Thanks,
1222
+ The Scholar@UC team
1223
+  (0.1ms) SAVEPOINT active_record_1
1224
+ SQL (0.3ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1226
+  (1.3ms) rollback transaction
1227
+  (0.1ms) begin transaction
1228
+  (0.1ms) SAVEPOINT active_record_1
1229
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1231
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1232
+  (1.8ms) rollback transaction
1233
+  (0.1ms) begin transaction
1234
+  (0.0ms) SAVEPOINT active_record_1
1235
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1237
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1238
+  (0.0ms) SAVEPOINT active_record_1
1239
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1241
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1242
+  (0.0ms) SAVEPOINT active_record_1
1243
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1245
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1246
+  (0.0ms) SAVEPOINT active_record_1
1247
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1249
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1250
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1251
+  (1.1ms) rollback transaction
1252
+  (0.1ms) begin transaction
1253
+  (0.1ms) SAVEPOINT active_record_1
1254
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1256
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1257
+  (0.1ms) SAVEPOINT active_record_1
1258
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1260
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1261
+  (0.1ms) SAVEPOINT active_record_1
1262
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1264
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1265
+  (0.1ms) SAVEPOINT active_record_1
1266
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1268
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1269
+  (0.9ms) rollback transaction
1270
+  (0.1ms) begin transaction
1271
+  (0.0ms) SAVEPOINT active_record_1
1272
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1274
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1275
+  (0.1ms) SAVEPOINT active_record_1
1276
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1278
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1279
+  (0.0ms) SAVEPOINT active_record_1
1280
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1282
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1283
+  (0.1ms) SAVEPOINT active_record_1
1284
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1286
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1287
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1288
+  (0.0ms) SAVEPOINT active_record_1
1289
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1291
+  (0.0ms) SAVEPOINT active_record_1
1292
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1293
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1294
+  (0.8ms) rollback transaction
1295
+  (0.1ms) begin transaction
1296
+  (0.1ms) SAVEPOINT active_record_1
1297
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1299
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1300
+  (0.1ms) SAVEPOINT active_record_1
1301
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1303
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1304
+  (0.1ms) SAVEPOINT active_record_1
1305
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1307
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1308
+  (0.1ms) SAVEPOINT active_record_1
1309
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1311
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1312
+  (0.1ms) SAVEPOINT active_record_1
1313
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1315
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
1316
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1317
+  (0.1ms) SAVEPOINT active_record_1
1318
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1320
+  (0.0ms) SAVEPOINT active_record_1
1321
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:02:02 UTC +00:00]]
1322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1323
+  (0.7ms) rollback transaction
1324
+  (0.4ms) begin transaction
1325
+  (0.1ms) rollback transaction
1326
+  (0.1ms) begin transaction
1327
+  (0.1ms) rollback transaction
1328
+  (0.1ms) begin transaction
1329
+  (0.1ms) rollback transaction
1330
+  (0.0ms) begin transaction
1331
+  (0.1ms) rollback transaction
1332
+  (0.0ms) begin transaction
1333
+  (0.1ms) SAVEPOINT active_record_1
1334
+ SQL (26.0ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1336
+  (0.9ms) rollback transaction
1337
+  (0.1ms) begin transaction
1338
+  (0.1ms) SAVEPOINT active_record_1
1339
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1341
+  (0.6ms) rollback transaction
1342
+  (0.1ms) begin transaction
1343
+  (0.1ms) rollback transaction
1344
+  (0.1ms) begin transaction
1345
+  (0.1ms) rollback transaction
1346
+  (0.1ms) begin transaction
1347
+  (0.1ms) rollback transaction
1348
+  (0.1ms) begin transaction
1349
+  (0.1ms) rollback transaction
1350
+  (0.1ms) begin transaction
1351
+  (0.1ms) SAVEPOINT active_record_1
1352
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1354
+  (0.8ms) rollback transaction
1355
+  (0.1ms) begin transaction
1356
+  (0.1ms) SAVEPOINT active_record_1
1357
+ SQL (0.5ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1359
+  (0.6ms) rollback transaction
1360
+  (0.1ms) begin transaction
1361
+  (0.1ms) SAVEPOINT active_record_1
1362
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1364
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1365
+  (0.1ms) SAVEPOINT active_record_1
1366
+ SQL (1.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1368
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1369
+  (0.1ms) SAVEPOINT active_record_1
1370
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1372
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1373
+  (0.0ms) SAVEPOINT active_record_1
1374
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1376
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1377
+  (0.9ms) rollback transaction
1378
+  (0.1ms) begin transaction
1379
+  (0.0ms) SAVEPOINT active_record_1
1380
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1382
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1383
+  (0.1ms) SAVEPOINT active_record_1
1384
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1386
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1387
+  (0.1ms) SAVEPOINT active_record_1
1388
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1390
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1391
+  (0.0ms) SAVEPOINT active_record_1
1392
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1394
+  (0.9ms) rollback transaction
1395
+  (0.1ms) begin transaction
1396
+  (0.0ms) SAVEPOINT active_record_1
1397
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1399
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1400
+  (0.0ms) SAVEPOINT active_record_1
1401
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1403
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1404
+  (0.0ms) SAVEPOINT active_record_1
1405
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1407
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1408
+  (0.0ms) SAVEPOINT active_record_1
1409
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1411
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1412
+  (0.7ms) rollback transaction
1413
+  (0.1ms) begin transaction
1414
+  (0.0ms) SAVEPOINT active_record_1
1415
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1417
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1418
+  (0.0ms) SAVEPOINT active_record_1
1419
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1421
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1422
+  (0.1ms) SAVEPOINT active_record_1
1423
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1425
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1426
+  (0.1ms) SAVEPOINT active_record_1
1427
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1429
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1430
+  (0.1ms) SAVEPOINT active_record_1
1431
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 19:16:06 UTC +00:00]]
1432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1433
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
1434
+  (0.9ms) rollback transaction
1435
+  (0.4ms) begin transaction
1436
+  (0.1ms) SAVEPOINT active_record_1
1437
+ SQL (52.7ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1439
+  (0.6ms) rollback transaction
1440
+  (0.1ms) begin transaction
1441
+  (0.1ms) SAVEPOINT active_record_1
1442
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1444
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1445
+  (0.1ms) SAVEPOINT active_record_1
1446
+ SQL (1.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1448
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1449
+  (0.0ms) SAVEPOINT active_record_1
1450
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1452
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1453
+  (0.0ms) SAVEPOINT active_record_1
1454
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1456
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1457
+  (0.9ms) rollback transaction
1458
+  (0.1ms) begin transaction
1459
+  (0.0ms) SAVEPOINT active_record_1
1460
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1462
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1463
+  (0.0ms) SAVEPOINT active_record_1
1464
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1466
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1467
+  (0.1ms) SAVEPOINT active_record_1
1468
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1470
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1471
+  (0.0ms) SAVEPOINT active_record_1
1472
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1474
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1475
+  (0.9ms) rollback transaction
1476
+  (0.0ms) begin transaction
1477
+  (0.1ms) SAVEPOINT active_record_1
1478
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1480
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1481
+  (0.0ms) SAVEPOINT active_record_1
1482
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1484
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1485
+  (0.1ms) SAVEPOINT active_record_1
1486
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1488
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1489
+  (0.1ms) SAVEPOINT active_record_1
1490
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1492
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1493
+  (0.0ms) SAVEPOINT active_record_1
1494
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1496
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
1497
+  (0.8ms) rollback transaction
1498
+  (0.1ms) begin transaction
1499
+  (0.0ms) SAVEPOINT active_record_1
1500
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1502
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1503
+  (0.0ms) SAVEPOINT active_record_1
1504
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1506
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1507
+  (0.0ms) SAVEPOINT active_record_1
1508
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1510
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1511
+  (0.0ms) SAVEPOINT active_record_1
1512
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1514
+  (0.8ms) rollback transaction
1515
+  (0.1ms) begin transaction
1516
+  (0.1ms) SAVEPOINT active_record_1
1517
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1519
+  (0.4ms) rollback transaction
1520
+  (0.0ms) begin transaction
1521
+  (0.1ms) SAVEPOINT active_record_1
1522
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1524
+  (0.5ms) rollback transaction
1525
+  (0.0ms) begin transaction
1526
+  (0.0ms) SAVEPOINT active_record_1
1527
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1529
+  (0.4ms) rollback transaction
1530
+  (0.0ms) begin transaction
1531
+  (0.1ms) rollback transaction
1532
+  (0.0ms) begin transaction
1533
+  (0.1ms) rollback transaction
1534
+  (0.0ms) begin transaction
1535
+  (0.0ms) rollback transaction
1536
+  (0.1ms) begin transaction
1537
+  (0.0ms) rollback transaction
1538
+  (0.0ms) begin transaction
1539
+  (0.0ms) SAVEPOINT active_record_1
1540
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:16:07 UTC +00:00]]
1541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1542
+  (0.6ms) rollback transaction
1543
+  (0.1ms) begin transaction
1544
+  (0.0ms) rollback transaction
1545
+  (0.0ms) begin transaction
1546
+  (0.0ms) rollback transaction
1547
+  (0.0ms) begin transaction
1548
+  (0.0ms) rollback transaction
1549
+  (0.4ms) begin transaction
1550
+  (0.1ms) rollback transaction
1551
+  (0.0ms) begin transaction
1552
+  (0.0ms) rollback transaction
1553
+  (0.1ms) begin transaction
1554
+  (0.0ms) SAVEPOINT active_record_1
1555
+ SQL (2.9ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1557
+  (0.7ms) rollback transaction
1558
+  (0.1ms) begin transaction
1559
+  (0.0ms) rollback transaction
1560
+  (0.0ms) begin transaction
1561
+  (0.0ms) rollback transaction
1562
+  (0.0ms) begin transaction
1563
+  (0.0ms) rollback transaction
1564
+  (0.0ms) begin transaction
1565
+  (0.0ms) rollback transaction
1566
+  (0.0ms) begin transaction
1567
+  (0.0ms) rollback transaction
1568
+  (0.0ms) begin transaction
1569
+  (0.0ms) SAVEPOINT active_record_1
1570
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1572
+  (1.9ms) rollback transaction
1573
+  (0.1ms) begin transaction
1574
+  (0.1ms) SAVEPOINT active_record_1
1575
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1577
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1578
+  (0.5ms) rollback transaction
1579
+  (0.1ms) begin transaction
1580
+  (0.0ms) SAVEPOINT active_record_1
1581
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1583
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1584
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1585
+ ChangeManager::Change Load (0.2ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
1586
+  (0.1ms) SAVEPOINT active_record_1
1587
+ SQL (1.4ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1589
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (2.0ms)
1590
+
1591
+ Sent mail to spec@test.com (28.0ms)
1592
+ Date: Thu, 02 Jun 2016 16:18:36 -0400
1593
+ From: email@test.com
1594
+ To: spec@test.com
1595
+ Message-ID: <5750949cc12c8_2c7b3ff949c63be454310@kyles-mbp.lang.uc.edu.mail>
1596
+ Subject: Updates from Scholar@UC
1597
+ Mime-Version: 1.0
1598
+ Content-Type: text/html;
1599
+ charset=UTF-8
1600
+ Content-Transfer-Encoding: 7bit
1601
+
1602
+ <!-- mailer template here -->
1603
+ <div>
1604
+ Dear Scholar@UC User,
1605
+ </div>
1606
+ <br>
1607
+ This email is to inform you that the following changes have been made to your account:
1608
+ <br><br>
1609
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-06-02 20:18:36 UTC</td></tr></table>
1610
+
1611
+ Changes can include:
1612
+ <br>
1613
+ <ul>
1614
+ <li>Being added/removed as another contributor's delegate</li>
1615
+ <li>Being added/removed as an editor of a work</li>
1616
+ <li>Being added/removed to a group</li>
1617
+ </ul>
1618
+
1619
+
1620
+ Thanks,
1621
+ The Scholar@UC team
1622
+  (0.1ms) SAVEPOINT active_record_1
1623
+ SQL (0.3ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1625
+  (1.0ms) rollback transaction
1626
+  (0.1ms) begin transaction
1627
+  (0.1ms) SAVEPOINT active_record_1
1628
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1630
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1631
+  (0.0ms) SAVEPOINT active_record_1
1632
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1634
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1635
+  (0.0ms) SAVEPOINT active_record_1
1636
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1638
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1639
+  (0.0ms) SAVEPOINT active_record_1
1640
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1642
+  (1.2ms) rollback transaction
1643
+  (0.1ms) begin transaction
1644
+  (0.0ms) SAVEPOINT active_record_1
1645
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1647
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1648
+  (0.0ms) SAVEPOINT active_record_1
1649
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1651
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1652
+  (0.0ms) SAVEPOINT active_record_1
1653
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1655
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1656
+  (0.0ms) SAVEPOINT active_record_1
1657
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1659
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1660
+  (0.9ms) rollback transaction
1661
+  (0.1ms) begin transaction
1662
+  (0.1ms) SAVEPOINT active_record_1
1663
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1665
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1666
+  (0.0ms) SAVEPOINT active_record_1
1667
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1669
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1670
+  (0.0ms) SAVEPOINT active_record_1
1671
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1673
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1674
+  (0.0ms) SAVEPOINT active_record_1
1675
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1677
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1678
+  (0.0ms) SAVEPOINT active_record_1
1679
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1681
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
1682
+  (0.8ms) rollback transaction
1683
+  (0.0ms) begin transaction
1684
+  (0.0ms) SAVEPOINT active_record_1
1685
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1687
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1688
+  (0.0ms) SAVEPOINT active_record_1
1689
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1691
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1692
+  (0.0ms) SAVEPOINT active_record_1
1693
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1695
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1696
+  (0.0ms) SAVEPOINT active_record_1
1697
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1699
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1700
+  (0.8ms) rollback transaction
1701
+  (0.0ms) begin transaction
1702
+  (0.0ms) SAVEPOINT active_record_1
1703
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 20:18:36 UTC +00:00]]
1704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1705
+  (0.5ms) rollback transaction
1706
+  (0.3ms) begin transaction
1707
+  (0.1ms) rollback transaction
1708
+  (0.0ms) begin transaction
1709
+  (0.1ms) rollback transaction
1710
+  (0.0ms) begin transaction
1711
+  (0.0ms) rollback transaction
1712
+  (0.0ms) begin transaction
1713
+  (0.0ms) rollback transaction
1714
+  (0.0ms) begin transaction
1715
+  (0.0ms) SAVEPOINT active_record_1
1716
+ SQL (2.9ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1718
+  (1.3ms) rollback transaction
1719
+  (0.1ms) begin transaction
1720
+  (0.1ms) rollback transaction
1721
+  (0.0ms) begin transaction
1722
+  (0.1ms) SAVEPOINT active_record_1
1723
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1725
+  (0.4ms) rollback transaction
1726
+  (0.0ms) begin transaction
1727
+  (0.1ms) rollback transaction
1728
+  (0.0ms) begin transaction
1729
+  (0.1ms) rollback transaction
1730
+  (0.1ms) begin transaction
1731
+  (0.0ms) SAVEPOINT active_record_1
1732
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1734
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1735
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1736
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
1737
+  (0.0ms) SAVEPOINT active_record_1
1738
+ SQL (1.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1740
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (1.1ms)
1741
+
1742
+ Sent mail to spec@test.com (7.0ms)
1743
+ Date: Thu, 02 Jun 2016 16:19:28 -0400
1744
+ From: email@test.com
1745
+ To: spec@test.com
1746
+ Message-ID: <575094d062ffc_2c883ff7b9c63be43875@kyles-mbp.lang.uc.edu.mail>
1747
+ Subject: Updates from Scholar@UC
1748
+ Mime-Version: 1.0
1749
+ Content-Type: text/html;
1750
+ charset=UTF-8
1751
+ Content-Transfer-Encoding: 7bit
1752
+
1753
+ <!-- mailer template here -->
1754
+ <div>
1755
+ Dear Scholar@UC User,
1756
+ </div>
1757
+ <br>
1758
+ This email is to inform you that the following changes have been made to your account:
1759
+ <br><br>
1760
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-06-02 20:19:28 UTC</td></tr></table>
1761
+
1762
+ Changes can include:
1763
+ <br>
1764
+ <ul>
1765
+ <li>Being added/removed as another contributor's delegate</li>
1766
+ <li>Being added/removed as an editor of a work</li>
1767
+ <li>Being added/removed to a group</li>
1768
+ </ul>
1769
+
1770
+
1771
+ Thanks,
1772
+ The Scholar@UC team
1773
+  (0.1ms) SAVEPOINT active_record_1
1774
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1776
+  (0.7ms) rollback transaction
1777
+  (0.1ms) begin transaction
1778
+  (0.0ms) SAVEPOINT active_record_1
1779
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1781
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1782
+  (0.5ms) rollback transaction
1783
+  (0.1ms) begin transaction
1784
+  (0.1ms) SAVEPOINT active_record_1
1785
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1787
+  (0.5ms) rollback transaction
1788
+  (0.0ms) begin transaction
1789
+  (0.0ms) SAVEPOINT active_record_1
1790
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1792
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1793
+  (0.0ms) SAVEPOINT active_record_1
1794
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1796
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1797
+  (0.0ms) SAVEPOINT active_record_1
1798
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1800
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1801
+  (0.0ms) SAVEPOINT active_record_1
1802
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1804
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1805
+  (1.3ms) rollback transaction
1806
+  (0.5ms) begin transaction
1807
+  (0.1ms) SAVEPOINT active_record_1
1808
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1810
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1811
+  (0.1ms) SAVEPOINT active_record_1
1812
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1814
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1815
+  (0.1ms) SAVEPOINT active_record_1
1816
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1818
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1819
+  (0.1ms) SAVEPOINT active_record_1
1820
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1822
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1823
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1824
+  (0.9ms) rollback transaction
1825
+  (0.1ms) begin transaction
1826
+  (0.0ms) SAVEPOINT active_record_1
1827
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1829
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1830
+  (0.0ms) SAVEPOINT active_record_1
1831
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1833
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1834
+  (0.1ms) SAVEPOINT active_record_1
1835
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1837
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1838
+  (0.0ms) SAVEPOINT active_record_1
1839
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1841
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1842
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1843
+  (0.0ms) SAVEPOINT active_record_1
1844
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1846
+  (0.1ms) SAVEPOINT active_record_1
1847
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1848
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1849
+  (0.9ms) rollback transaction
1850
+  (0.0ms) begin transaction
1851
+  (0.0ms) SAVEPOINT active_record_1
1852
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1854
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1855
+  (0.1ms) SAVEPOINT active_record_1
1856
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1858
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1859
+  (0.0ms) SAVEPOINT active_record_1
1860
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1862
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1863
+  (0.0ms) SAVEPOINT active_record_1
1864
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1866
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1867
+  (0.0ms) SAVEPOINT active_record_1
1868
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1870
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
1871
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1872
+  (0.0ms) SAVEPOINT active_record_1
1873
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1875
+  (0.0ms) SAVEPOINT active_record_1
1876
+ SQL (0.4ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:19:28 UTC +00:00]]
1877
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1878
+  (0.6ms) rollback transaction
1879
+  (0.3ms) begin transaction
1880
+  (0.0ms) SAVEPOINT active_record_1
1881
+ SQL (2.6ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1883
+  (8.8ms) rollback transaction
1884
+  (0.1ms) begin transaction
1885
+  (0.1ms) rollback transaction
1886
+  (0.0ms) begin transaction
1887
+  (0.1ms) rollback transaction
1888
+  (0.0ms) begin transaction
1889
+  (0.1ms) rollback transaction
1890
+  (0.0ms) begin transaction
1891
+  (0.0ms) rollback transaction
1892
+  (0.0ms) begin transaction
1893
+  (0.0ms) rollback transaction
1894
+  (0.0ms) begin transaction
1895
+  (0.0ms) SAVEPOINT active_record_1
1896
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1898
+  (0.5ms) rollback transaction
1899
+  (0.0ms) begin transaction
1900
+  (0.0ms) rollback transaction
1901
+  (0.0ms) begin transaction
1902
+  (0.0ms) rollback transaction
1903
+  (0.0ms) begin transaction
1904
+  (0.1ms) SAVEPOINT active_record_1
1905
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1907
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1908
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1909
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
1910
+  (0.0ms) SAVEPOINT active_record_1
1911
+ SQL (1.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1913
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (1.1ms)
1914
+
1915
+ Sent mail to spec@test.com (5.6ms)
1916
+ Date: Thu, 02 Jun 2016 16:20:01 -0400
1917
+ From: email@test.com
1918
+ To: spec@test.com
1919
+ Message-ID: <575094f1bc2b6_2c953fc7d0c63be4998bf@kyles-mbp.lang.uc.edu.mail>
1920
+ Subject: Updates from Scholar@UC
1921
+ Mime-Version: 1.0
1922
+ Content-Type: text/html;
1923
+ charset=UTF-8
1924
+ Content-Transfer-Encoding: 7bit
1925
+
1926
+ <!-- mailer template here -->
1927
+ <div>
1928
+ Dear Scholar@UC User,
1929
+ </div>
1930
+ <br>
1931
+ This email is to inform you that the following changes have been made to your account:
1932
+ <br><br>
1933
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-06-02 20:20:01 UTC</td></tr></table>
1934
+
1935
+ Changes can include:
1936
+ <br>
1937
+ <ul>
1938
+ <li>Being added/removed as another contributor's delegate</li>
1939
+ <li>Being added/removed as an editor of a work</li>
1940
+ <li>Being added/removed to a group</li>
1941
+ </ul>
1942
+
1943
+
1944
+ Thanks,
1945
+ The Scholar@UC team
1946
+  (0.1ms) SAVEPOINT active_record_1
1947
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1949
+  (1.0ms) rollback transaction
1950
+  (0.0ms) begin transaction
1951
+  (0.0ms) SAVEPOINT active_record_1
1952
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1954
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1955
+  (0.5ms) rollback transaction
1956
+  (0.1ms) begin transaction
1957
+  (0.1ms) SAVEPOINT active_record_1
1958
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1960
+  (0.6ms) rollback transaction
1961
+  (0.1ms) begin transaction
1962
+  (0.1ms) SAVEPOINT active_record_1
1963
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1965
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1966
+  (0.1ms) SAVEPOINT active_record_1
1967
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1969
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1970
+  (0.1ms) SAVEPOINT active_record_1
1971
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1973
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1974
+  (0.0ms) SAVEPOINT active_record_1
1975
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1977
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1978
+  (0.8ms) rollback transaction
1979
+  (0.1ms) begin transaction
1980
+  (0.0ms) SAVEPOINT active_record_1
1981
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1983
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
1984
+  (0.0ms) SAVEPOINT active_record_1
1985
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1987
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
1988
+  (0.0ms) SAVEPOINT active_record_1
1989
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1991
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
1992
+  (0.0ms) SAVEPOINT active_record_1
1993
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
1994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1995
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
1996
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
1997
+  (0.9ms) rollback transaction
1998
+  (0.0ms) begin transaction
1999
+  (0.1ms) SAVEPOINT active_record_1
2000
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2002
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2003
+  (0.0ms) SAVEPOINT active_record_1
2004
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2006
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
2007
+  (0.0ms) SAVEPOINT active_record_1
2008
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2010
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
2011
+  (0.1ms) SAVEPOINT active_record_1
2012
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2014
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
2015
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
2016
+  (0.1ms) SAVEPOINT active_record_1
2017
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2019
+  (0.0ms) SAVEPOINT active_record_1
2020
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2022
+  (0.9ms) rollback transaction
2023
+  (0.1ms) begin transaction
2024
+  (0.0ms) SAVEPOINT active_record_1
2025
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2026
+  (1.2ms) RELEASE SAVEPOINT active_record_1
2027
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2028
+  (0.1ms) SAVEPOINT active_record_1
2029
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2031
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
2032
+  (0.0ms) SAVEPOINT active_record_1
2033
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2035
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
2036
+  (0.0ms) SAVEPOINT active_record_1
2037
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2039
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
2040
+  (0.0ms) SAVEPOINT active_record_1
2041
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2043
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
2044
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
2045
+  (0.1ms) SAVEPOINT active_record_1
2046
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2047
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2048
+  (0.0ms) SAVEPOINT active_record_1
2049
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:01 UTC +00:00]]
2050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2051
+  (0.9ms) rollback transaction
2052
+  (0.3ms) begin transaction
2053
+  (0.0ms) SAVEPOINT active_record_1
2054
+ SQL (2.7ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2056
+  (1.1ms) rollback transaction
2057
+  (0.0ms) begin transaction
2058
+  (0.1ms) rollback transaction
2059
+  (0.0ms) begin transaction
2060
+  (0.0ms) rollback transaction
2061
+  (0.0ms) begin transaction
2062
+  (0.0ms) rollback transaction
2063
+  (0.0ms) begin transaction
2064
+  (0.0ms) rollback transaction
2065
+  (0.0ms) begin transaction
2066
+  (0.0ms) SAVEPOINT active_record_1
2067
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2069
+  (0.5ms) rollback transaction
2070
+  (0.1ms) begin transaction
2071
+  (0.0ms) rollback transaction
2072
+  (0.1ms) begin transaction
2073
+  (0.0ms) rollback transaction
2074
+  (0.0ms) begin transaction
2075
+  (0.0ms) rollback transaction
2076
+  (0.0ms) begin transaction
2077
+  (0.0ms) SAVEPOINT active_record_1
2078
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2080
+  (0.5ms) rollback transaction
2081
+  (0.1ms) begin transaction
2082
+  (0.0ms) SAVEPOINT active_record_1
2083
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2085
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2086
+  (0.4ms) rollback transaction
2087
+  (0.0ms) begin transaction
2088
+  (0.0ms) SAVEPOINT active_record_1
2089
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2091
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2092
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2093
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
2094
+  (0.0ms) SAVEPOINT active_record_1
2095
+ SQL (1.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2097
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (1.7ms)
2098
+
2099
+ Sent mail to spec@test.com (6.1ms)
2100
+ Date: Thu, 02 Jun 2016 16:20:16 -0400
2101
+ From: email@test.com
2102
+ To: spec@test.com
2103
+ Message-ID: <57509500d5a93_2ca33fdc25063bf0373c7@kyles-mbp.lang.uc.edu.mail>
2104
+ Subject: Updates from Scholar@UC
2105
+ Mime-Version: 1.0
2106
+ Content-Type: text/html;
2107
+ charset=UTF-8
2108
+ Content-Transfer-Encoding: 7bit
2109
+
2110
+ <!-- mailer template here -->
2111
+ <div>
2112
+ Dear Scholar@UC User,
2113
+ </div>
2114
+ <br>
2115
+ This email is to inform you that the following changes have been made to your account:
2116
+ <br><br>
2117
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-06-02 20:20:16 UTC</td></tr></table>
2118
+
2119
+ Changes can include:
2120
+ <br>
2121
+ <ul>
2122
+ <li>Being added/removed as another contributor's delegate</li>
2123
+ <li>Being added/removed as an editor of a work</li>
2124
+ <li>Being added/removed to a group</li>
2125
+ </ul>
2126
+
2127
+
2128
+ Thanks,
2129
+ The Scholar@UC team
2130
+  (0.1ms) SAVEPOINT active_record_1
2131
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2133
+  (1.1ms) rollback transaction
2134
+  (0.1ms) begin transaction
2135
+  (0.0ms) SAVEPOINT active_record_1
2136
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2138
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2139
+  (0.0ms) SAVEPOINT active_record_1
2140
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2142
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
2143
+  (0.1ms) SAVEPOINT active_record_1
2144
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target2"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2146
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
2147
+  (0.0ms) SAVEPOINT active_record_1
2148
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner1"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2150
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
2151
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
2152
+  (0.6ms) rollback transaction
2153
+  (0.3ms) begin transaction
2154
+  (0.1ms) SAVEPOINT active_record_1
2155
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2157
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2158
+  (0.1ms) SAVEPOINT active_record_1
2159
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2161
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
2162
+  (0.0ms) SAVEPOINT active_record_1
2163
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2165
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
2166
+  (0.0ms) SAVEPOINT active_record_1
2167
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2169
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
2170
+  (0.7ms) rollback transaction
2171
+  (0.1ms) begin transaction
2172
+  (0.0ms) SAVEPOINT active_record_1
2173
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2175
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2176
+  (0.0ms) SAVEPOINT active_record_1
2177
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2179
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
2180
+  (0.0ms) SAVEPOINT active_record_1
2181
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2183
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
2184
+  (0.0ms) SAVEPOINT active_record_1
2185
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2187
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
2188
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
2189
+  (0.0ms) SAVEPOINT active_record_1
2190
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2192
+  (0.0ms) SAVEPOINT active_record_1
2193
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2195
+  (0.8ms) rollback transaction
2196
+  (0.1ms) begin transaction
2197
+  (0.0ms) SAVEPOINT active_record_1
2198
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2200
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
2201
+  (0.1ms) SAVEPOINT active_record_1
2202
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2204
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
2205
+  (0.0ms) SAVEPOINT active_record_1
2206
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2208
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
2209
+  (0.0ms) SAVEPOINT active_record_1
2210
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2212
+ ChangeManager::Change Load (0.2ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
2213
+  (0.0ms) SAVEPOINT active_record_1
2214
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00], ["owner", "owner"], ["target", "target"], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2216
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
2217
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
2218
+  (0.0ms) SAVEPOINT active_record_1
2219
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2221
+  (0.0ms) SAVEPOINT active_record_1
2222
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Thu, 02 Jun 2016 20:20:16 UTC +00:00]]
2223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2224
+  (0.6ms) rollback transaction