mailboxer_multi_attach 0.0.1

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.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +17 -0
  5. data/Gemfile.lock +160 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README.md +17 -0
  8. data/README.rdoc +18 -0
  9. data/Rakefile +31 -0
  10. data/app/models/message_attachment.rb +8 -0
  11. data/app/models/messageable.rb +34 -0
  12. data/app/uploaders/message_file_uploader.rb +5 -0
  13. data/db/migrate/20151123194517_create_message_attachments.rb +10 -0
  14. data/lib/generators/mailboxer_multi_attach/install_generator.rb +22 -0
  15. data/lib/generators/mailboxer_multi_attach/templates/create_message_attachments.rb +10 -0
  16. data/lib/mailboxer_multi_attach/version.rb +3 -0
  17. data/lib/mailboxer_multi_attach.rb +7 -0
  18. data/lib/tasks/mailboxer_multi_attach_tasks.rake +4 -0
  19. data/mailboxer_multi_attach.gemspec +28 -0
  20. data/spec/dummy/Gemfile +5 -0
  21. data/spec/dummy/Gemfile.lock +113 -0
  22. data/spec/dummy/README.rdoc +261 -0
  23. data/spec/dummy/Rakefile +7 -0
  24. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  25. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  26. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  28. data/spec/dummy/app/mailers/.gitkeep +0 -0
  29. data/spec/dummy/app/models/.gitkeep +0 -0
  30. data/spec/dummy/app/models/message_attachment.rb +3 -0
  31. data/spec/dummy/app/models/user.rb +7 -0
  32. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  33. data/spec/dummy/app/views/mailboxer/message_mailer/new_message_email.html.erb +20 -0
  34. data/spec/dummy/app/views/mailboxer/message_mailer/new_message_email.text.erb +10 -0
  35. data/spec/dummy/app/views/mailboxer/message_mailer/reply_message_email.html.erb +20 -0
  36. data/spec/dummy/app/views/mailboxer/message_mailer/reply_message_email.text.erb +10 -0
  37. data/spec/dummy/app/views/mailboxer/notification_mailer/new_notification_email.html.erb +20 -0
  38. data/spec/dummy/app/views/mailboxer/notification_mailer/new_notification_email.text.erb +10 -0
  39. data/spec/dummy/config/application.rb +60 -0
  40. data/spec/dummy/config/boot.rb +10 -0
  41. data/spec/dummy/config/database.yml +25 -0
  42. data/spec/dummy/config/environment.rb +5 -0
  43. data/spec/dummy/config/environments/development.rb +37 -0
  44. data/spec/dummy/config/environments/production.rb +67 -0
  45. data/spec/dummy/config/environments/test.rb +37 -0
  46. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  47. data/spec/dummy/config/initializers/inflections.rb +15 -0
  48. data/spec/dummy/config/initializers/mailboxer.rb +21 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  50. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  51. data/spec/dummy/config/initializers/session_store.rb +8 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/spec/dummy/config/locales/en.yml +5 -0
  54. data/spec/dummy/config/routes.rb +58 -0
  55. data/spec/dummy/config.ru +4 -0
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/migrate/20151123025448_create_users.rb +10 -0
  58. data/spec/dummy/db/migrate/20151123152908_create_mailboxer.mailboxer_engine.rb +66 -0
  59. data/spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb +15 -0
  60. data/spec/dummy/db/migrate/20151123152910_add_missing_indices.mailboxer_engine.rb +20 -0
  61. data/spec/dummy/db/migrate/20151123235316_create_message_attachments.rb +10 -0
  62. data/spec/dummy/db/schema.rb +83 -0
  63. data/spec/dummy/db/test.sqlite3 +0 -0
  64. data/spec/dummy/lib/assets/.gitkeep +0 -0
  65. data/spec/dummy/log/.gitkeep +0 -0
  66. data/spec/dummy/log/development.log +372 -0
  67. data/spec/dummy/log/test.log +4181 -0
  68. data/spec/dummy/public/404.html +26 -0
  69. data/spec/dummy/public/422.html +26 -0
  70. data/spec/dummy/public/500.html +25 -0
  71. data/spec/dummy/public/favicon.ico +0 -0
  72. data/spec/dummy/public/uploads/testfile.txt +1 -0
  73. data/spec/dummy/public/uploads/tmp/1448318001-52723-7553/testfile.txt +1 -0
  74. data/spec/dummy/public/uploads/tmp/1448377714-90292-0212/testfile.txt +1 -0
  75. data/spec/dummy/script/rails +6 -0
  76. data/spec/dummy/spec/models/message_attachment_spec.rb +5 -0
  77. data/spec/dummy/spec/models/user_spec.rb +5 -0
  78. data/spec/factories/user.rb +10 -0
  79. data/spec/mailboxer_multi_attach_spec.rb +0 -0
  80. data/spec/models/message_attachment_spec.rb +15 -0
  81. data/spec/models/messageable_spec.rb +19 -0
  82. data/spec/spec_helper.rb +40 -0
  83. data/spec/testfile.txt +1 -0
  84. metadata +339 -0
@@ -0,0 +1,372 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.1ms) select sqlite_version(*)
4
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
7
+ Migrating to CreateUsers (20151123023406)
8
+  (0.0ms) begin transaction
9
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123023406')
10
+  (0.7ms) commit transaction
11
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
12
+ Connecting to database specified by database.yml
13
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
14
+ Migrating to CreateUsers (20151123023406)
15
+  (0.1ms) select sqlite_version(*)
16
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
17
+ Connecting to database specified by database.yml
18
+  (0.1ms) select sqlite_version(*)
19
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
20
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21
+  (0.1ms) SELECT version FROM "schema_migrations"
22
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151123023406')
23
+ Connecting to database specified by database.yml
24
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
25
+ Migrating to CreateUsers (20151123023406)
26
+  (0.0ms) select sqlite_version(*)
27
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
28
+ Connecting to database specified by database.yml
29
+ Connecting to database specified by database.yml
30
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
31
+ Migrating to CreateUsers (20151123024617)
32
+  (0.0ms) select sqlite_version(*)
33
+  (0.0ms) begin transaction
34
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123024617')
35
+  (9.0ms) commit transaction
36
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
37
+ Connecting to database specified by database.yml
38
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
39
+ Migrating to CreateUsers (20151123024617)
40
+  (0.0ms) select sqlite_version(*)
41
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
42
+ Connecting to database specified by database.yml
43
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
44
+ Migrating to CreateUsers (20151123024617)
45
+  (0.0ms) select sqlite_version(*)
46
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
47
+ Connecting to database specified by database.yml
48
+  (0.0ms) select sqlite_version(*)
49
+  (9.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
50
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
51
+  (0.1ms) SELECT version FROM "schema_migrations"
52
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151123024617')
53
+ Connecting to database specified by database.yml
54
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
55
+ Migrating to CreateUsers (20151123024617)
56
+  (0.0ms) select sqlite_version(*)
57
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
58
+ Connecting to database specified by database.yml
59
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
60
+ Migrating to CreateUsers (20151123024617)
61
+  (0.0ms) select sqlite_version(*)
62
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
63
+ Connecting to database specified by database.yml
64
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
65
+  (0.0ms) select sqlite_version(*)
66
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
67
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
68
+  (0.1ms) SELECT version FROM "schema_migrations"
69
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151123024617')
70
+ Connecting to database specified by database.yml
71
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
72
+ Migrating to CreateUsers (20151123024617)
73
+  (0.0ms) select sqlite_version(*)
74
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
75
+ Connecting to database specified by database.yml
76
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
77
+ Migrating to CreateUsers (20151123024617)
78
+  (0.0ms) select sqlite_version(*)
79
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
80
+ Connecting to database specified by database.yml
81
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
82
+ Migrating to CreateUsers (20151123024617)
83
+  (0.1ms) select sqlite_version(*)
84
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
85
+ Connecting to database specified by database.yml
86
+  (0.0ms) select sqlite_version(*)
87
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
88
+ Connecting to database specified by database.yml
89
+ Connecting to database specified by database.yml
90
+ Connecting to database specified by database.yml
91
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
92
+ Migrating to CreateUsers (20151123025448)
93
+  (0.1ms) select sqlite_version(*)
94
+  (0.1ms) begin transaction
95
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
96
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123025448')
97
+  (0.7ms) commit transaction
98
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
99
+ Connecting to database specified by database.yml
100
+ Connecting to database specified by database.yml
101
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
102
+ Migrating to CreateUsers (20151123025448)
103
+ Migrating to CreateMailboxer (20151123152908)
104
+  (0.0ms) select sqlite_version(*)
105
+  (0.0ms) begin transaction
106
+  (0.4ms) CREATE TABLE "mailboxer_conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
107
+  (0.2ms) CREATE TABLE "mailboxer_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
108
+  (0.1ms) CREATE TABLE "mailboxer_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "notification_code" varchar(255), "notified_object_id" integer, "notified_object_type" varchar(255), "attachment" varchar(255), "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "global" boolean DEFAULT 'f', "expires" datetime)
109
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_notification_id" ON "mailboxer_receipts" ("notification_id")
110
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_conversation_id" ON "mailboxer_notifications" ("conversation_id")
111
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152908')
112
+  (0.8ms) commit transaction
113
+ Migrating to AddConversationOptout (20151123152909)
114
+  (0.0ms) begin transaction
115
+  (0.3ms) CREATE TABLE "mailboxer_conversation_opt_outs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "unsubscriber_id" integer, "unsubscriber_type" varchar(255), "conversation_id" integer)
116
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152909')
117
+  (0.5ms) commit transaction
118
+ Migrating to AddMissingIndices (20151123152910)
119
+  (0.0ms) begin transaction
120
+  (0.3ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type" ON "mailboxer_conversation_opt_outs" ("unsubscriber_id", "unsubscriber_type")
121
+  (0.1ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_conversation_id" ON "mailboxer_conversation_opt_outs" ("conversation_id")
122
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_type" ON "mailboxer_notifications" ("type")
123
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_sender_id_and_sender_type" ON "mailboxer_notifications" ("sender_id", "sender_type")
124
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_notified_object_id_and_type" ON "mailboxer_notifications" ("notified_object_id", "notified_object_type")
125
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_receiver_id_and_receiver_type" ON "mailboxer_receipts" ("receiver_id", "receiver_type")
126
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152910')
127
+  (0.9ms) commit transaction
128
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
129
+ Connecting to database specified by database.yml
130
+ Connecting to database specified by database.yml
131
+ Connecting to database specified by database.yml
132
+ Connecting to database specified by database.yml
133
+ Connecting to database specified by database.yml
134
+ Connecting to database specified by database.yml
135
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
136
+ Migrating to CreateUsers (20151123025448)
137
+ Migrating to CreateMailboxer (20151123152908)
138
+ Migrating to AddConversationOptout (20151123152909)
139
+ Migrating to AddMissingIndices (20151123152910)
140
+ Migrating to CreateMessageAttachments (20151123194517)
141
+  (0.0ms) select sqlite_version(*)
142
+  (0.0ms) begin transaction
143
+  (0.4ms) CREATE TABLE "message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
144
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123194517')
145
+  (9.1ms) commit transaction
146
+ Migrating to AddMailboxerNotificationRefToMailboxerMessageAttachments (20151123195505)
147
+  (0.0ms) begin transaction
148
+  (0.2ms) ALTER TABLE "mailboxer_message_attachments" ADD "mailboxer_notification_id" integer
149
+ SQLite3::SQLException: no such table: mailboxer_message_attachments: ALTER TABLE "mailboxer_message_attachments" ADD "mailboxer_notification_id" integer
150
+  (0.1ms) rollback transaction
151
+ Connecting to database specified by database.yml
152
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
153
+ Migrating to CreateUsers (20151123025448)
154
+ Migrating to CreateMailboxer (20151123152908)
155
+ Migrating to AddConversationOptout (20151123152909)
156
+ Migrating to AddMissingIndices (20151123152910)
157
+ Migrating to CreateMessageAttachments (20151123194517)
158
+ Migrating to AddMailboxerNotificationRefToMailboxerMessageAttachments (20151123195505)
159
+  (0.0ms) select sqlite_version(*)
160
+  (0.0ms) begin transaction
161
+  (0.2ms) ALTER TABLE "mailboxer_message_attachments" ADD "mailboxer_notification_id" integer
162
+ SQLite3::SQLException: no such table: mailboxer_message_attachments: ALTER TABLE "mailboxer_message_attachments" ADD "mailboxer_notification_id" integer
163
+  (0.0ms) rollback transaction
164
+ Connecting to database specified by database.yml
165
+  (0.1ms) select sqlite_version(*)
166
+  (9.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
167
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
168
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
169
+ Migrating to CreateUsers (20151123025448)
170
+  (0.0ms) begin transaction
171
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
172
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123025448')
173
+  (0.9ms) commit transaction
174
+ Migrating to CreateMailboxer (20151123152908)
175
+  (0.0ms) begin transaction
176
+  (0.3ms) CREATE TABLE "mailboxer_conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
177
+  (0.2ms) CREATE TABLE "mailboxer_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
178
+  (0.2ms) CREATE TABLE "mailboxer_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "notification_code" varchar(255), "notified_object_id" integer, "notified_object_type" varchar(255), "attachment" varchar(255), "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "global" boolean DEFAULT 'f', "expires" datetime)
179
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_notification_id" ON "mailboxer_receipts" ("notification_id")
180
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_conversation_id" ON "mailboxer_notifications" ("conversation_id")
181
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152908')
182
+  (0.7ms) commit transaction
183
+ Migrating to AddConversationOptout (20151123152909)
184
+  (0.0ms) begin transaction
185
+  (0.3ms) CREATE TABLE "mailboxer_conversation_opt_outs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "unsubscriber_id" integer, "unsubscriber_type" varchar(255), "conversation_id" integer)
186
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152909')
187
+  (0.6ms) commit transaction
188
+ Migrating to AddMissingIndices (20151123152910)
189
+  (0.0ms) begin transaction
190
+  (0.2ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type" ON "mailboxer_conversation_opt_outs" ("unsubscriber_id", "unsubscriber_type")
191
+  (0.1ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_conversation_id" ON "mailboxer_conversation_opt_outs" ("conversation_id")
192
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_type" ON "mailboxer_notifications" ("type")
193
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_sender_id_and_sender_type" ON "mailboxer_notifications" ("sender_id", "sender_type")
194
+  (0.2ms) CREATE INDEX "index_mailboxer_notifications_on_notified_object_id_and_type" ON "mailboxer_notifications" ("notified_object_id", "notified_object_type")
195
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_receiver_id_and_receiver_type" ON "mailboxer_receipts" ("receiver_id", "receiver_type")
196
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152910')
197
+  (0.8ms) commit transaction
198
+ Migrating to CreateMessageAttachments (20151123194517)
199
+  (0.0ms) begin transaction
200
+  (0.3ms) CREATE TABLE "mailboxer_message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
201
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123194517')
202
+  (0.7ms) commit transaction
203
+ Migrating to AddMailboxerNotificationRefToMailboxerMessageAttachments (20151123195505)
204
+  (0.0ms) begin transaction
205
+  (0.3ms) ALTER TABLE "mailboxer_message_attachments" ADD "mailboxer_notification_id" integer
206
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123195505')
207
+  (0.8ms) commit transaction
208
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
209
+ Connecting to database specified by database.yml
210
+ Connecting to database specified by database.yml
211
+ Connecting to database specified by database.yml
212
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
213
+ Migrating to CreateUsers (20151123025448)
214
+ Migrating to CreateMailboxer (20151123152908)
215
+ Migrating to AddConversationOptout (20151123152909)
216
+ Migrating to AddMissingIndices (20151123152910)
217
+ Migrating to CreateMessageAttachments (20151123194517)
218
+ Migrating to AddMailboxerNotificationRefToMailboxerMessageAttachments (20151123195505)
219
+ Migrating to AddObjectIdToMailboxerMessageAttachment (20151123202931)
220
+  (0.0ms) select sqlite_version(*)
221
+  (0.0ms) begin transaction
222
+  (0.4ms) ALTER TABLE "mailboxer_message_attachments" ADD "object_id" integer
223
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123202931')
224
+  (0.7ms) commit transaction
225
+ Migrating to AddFileToMailboxerMessageAttachment (20151123203128)
226
+  (0.0ms) begin transaction
227
+  (0.1ms) ALTER TABLE "mailboxer_message_attachments" ADD "file" varchar(255)
228
+ SQLite3::SQLException: duplicate column name: file: ALTER TABLE "mailboxer_message_attachments" ADD "file" varchar(255)
229
+  (0.0ms) rollback transaction
230
+ Connecting to database specified by database.yml
231
+  (0.1ms) select sqlite_version(*)
232
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
233
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
234
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
235
+ Migrating to CreateUsers (20151123025448)
236
+  (0.0ms) begin transaction
237
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
238
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123025448')
239
+  (0.7ms) commit transaction
240
+ Migrating to CreateMailboxer (20151123152908)
241
+  (0.0ms) begin transaction
242
+  (0.3ms) CREATE TABLE "mailboxer_conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
243
+  (0.2ms) CREATE TABLE "mailboxer_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
244
+  (0.1ms) CREATE TABLE "mailboxer_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "notification_code" varchar(255), "notified_object_id" integer, "notified_object_type" varchar(255), "attachment" varchar(255), "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "global" boolean DEFAULT 'f', "expires" datetime)
245
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_notification_id" ON "mailboxer_receipts" ("notification_id")
246
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_conversation_id" ON "mailboxer_notifications" ("conversation_id")
247
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152908')
248
+  (0.7ms) commit transaction
249
+ Migrating to AddConversationOptout (20151123152909)
250
+  (0.0ms) begin transaction
251
+  (0.3ms) CREATE TABLE "mailboxer_conversation_opt_outs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "unsubscriber_id" integer, "unsubscriber_type" varchar(255), "conversation_id" integer)
252
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152909')
253
+  (0.5ms) commit transaction
254
+ Migrating to AddMissingIndices (20151123152910)
255
+  (0.0ms) begin transaction
256
+  (0.4ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type" ON "mailboxer_conversation_opt_outs" ("unsubscriber_id", "unsubscriber_type")
257
+  (0.1ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_conversation_id" ON "mailboxer_conversation_opt_outs" ("conversation_id")
258
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_type" ON "mailboxer_notifications" ("type")
259
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_sender_id_and_sender_type" ON "mailboxer_notifications" ("sender_id", "sender_type")
260
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_notified_object_id_and_type" ON "mailboxer_notifications" ("notified_object_id", "notified_object_type")
261
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_receiver_id_and_receiver_type" ON "mailboxer_receipts" ("receiver_id", "receiver_type")
262
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152910')
263
+  (0.7ms) commit transaction
264
+ Migrating to CreateMessageAttachments (20151123194517)
265
+  (0.0ms) begin transaction
266
+  (0.4ms) CREATE TABLE "mailboxer_message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "object_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
267
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123194517')
268
+  (0.8ms) commit transaction
269
+ Migrating to AddMailboxerNotificationRefToMailboxerMessageAttachments (20151123195505)
270
+  (0.0ms) begin transaction
271
+  (0.4ms) ALTER TABLE "mailboxer_message_attachments" ADD "mailboxer_notification_id" integer
272
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123195505')
273
+  (0.7ms) commit transaction
274
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
275
+ Connecting to database specified by database.yml
276
+  (0.1ms) select sqlite_version(*)
277
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
278
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
279
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
280
+ Migrating to CreateUsers (20151123025448)
281
+  (0.0ms) begin transaction
282
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
283
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123025448')
284
+  (0.7ms) commit transaction
285
+ Migrating to CreateMailboxer (20151123152908)
286
+  (0.0ms) begin transaction
287
+  (0.3ms) CREATE TABLE "mailboxer_conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
288
+  (0.2ms) CREATE TABLE "mailboxer_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
289
+  (0.1ms) CREATE TABLE "mailboxer_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "notification_code" varchar(255), "notified_object_id" integer, "notified_object_type" varchar(255), "attachment" varchar(255), "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "global" boolean DEFAULT 'f', "expires" datetime)
290
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_notification_id" ON "mailboxer_receipts" ("notification_id")
291
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_conversation_id" ON "mailboxer_notifications" ("conversation_id")
292
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152908')
293
+  (0.6ms) commit transaction
294
+ Migrating to AddConversationOptout (20151123152909)
295
+  (0.0ms) begin transaction
296
+  (0.3ms) CREATE TABLE "mailboxer_conversation_opt_outs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "unsubscriber_id" integer, "unsubscriber_type" varchar(255), "conversation_id" integer)
297
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152909')
298
+  (0.6ms) commit transaction
299
+ Migrating to AddMissingIndices (20151123152910)
300
+  (0.0ms) begin transaction
301
+  (0.3ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type" ON "mailboxer_conversation_opt_outs" ("unsubscriber_id", "unsubscriber_type")
302
+  (0.1ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_conversation_id" ON "mailboxer_conversation_opt_outs" ("conversation_id")
303
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_type" ON "mailboxer_notifications" ("type")
304
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_sender_id_and_sender_type" ON "mailboxer_notifications" ("sender_id", "sender_type")
305
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_notified_object_id_and_type" ON "mailboxer_notifications" ("notified_object_id", "notified_object_type")
306
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_receiver_id_and_receiver_type" ON "mailboxer_receipts" ("receiver_id", "receiver_type")
307
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152910')
308
+  (0.7ms) commit transaction
309
+ Migrating to CreateMessageAttachments (20151123194517)
310
+  (0.0ms) begin transaction
311
+  (0.4ms) CREATE TABLE "mailboxer_message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "message_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
312
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123194517')
313
+  (0.8ms) commit transaction
314
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
315
+ Connecting to database specified by database.yml
316
+ Connecting to database specified by database.yml
317
+ Connecting to database specified by database.yml
318
+ Connecting to database specified by database.yml
319
+ Connecting to database specified by database.yml
320
+ Connecting to database specified by database.yml
321
+ Connecting to database specified by database.yml
322
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
323
+ Migrating to CreateUsers (20151123025448)
324
+ Migrating to CreateMailboxer (20151123152908)
325
+ Migrating to AddConversationOptout (20151123152909)
326
+ Migrating to AddMissingIndices (20151123152910)
327
+ Migrating to CreateMessageAttachments (20151123235316)
328
+  (0.0ms) select sqlite_version(*)
329
+  (0.0ms) begin transaction
330
+  (0.1ms) CREATE TABLE "mailboxer_message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "message_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
331
+ SQLite3::SQLException: table "mailboxer_message_attachments" already exists: CREATE TABLE "mailboxer_message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "message_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
332
+  (0.0ms) rollback transaction
333
+ Connecting to database specified by database.yml
334
+  (0.0ms) select sqlite_version(*)
335
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
336
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
337
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
338
+ Migrating to CreateUsers (20151123025448)
339
+  (0.0ms) begin transaction
340
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
341
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123025448')
342
+  (0.7ms) commit transaction
343
+ Migrating to CreateMailboxer (20151123152908)
344
+  (0.0ms) begin transaction
345
+  (0.3ms) CREATE TABLE "mailboxer_conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
346
+  (0.2ms) CREATE TABLE "mailboxer_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
347
+  (0.1ms) CREATE TABLE "mailboxer_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "notification_code" varchar(255), "notified_object_id" integer, "notified_object_type" varchar(255), "attachment" varchar(255), "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "global" boolean DEFAULT 'f', "expires" datetime)
348
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_notification_id" ON "mailboxer_receipts" ("notification_id")
349
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_conversation_id" ON "mailboxer_notifications" ("conversation_id")
350
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152908')
351
+  (0.6ms) commit transaction
352
+ Migrating to AddConversationOptout (20151123152909)
353
+  (0.0ms) begin transaction
354
+  (0.3ms) CREATE TABLE "mailboxer_conversation_opt_outs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "unsubscriber_id" integer, "unsubscriber_type" varchar(255), "conversation_id" integer)
355
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152909')
356
+  (0.6ms) commit transaction
357
+ Migrating to AddMissingIndices (20151123152910)
358
+  (0.0ms) begin transaction
359
+  (0.2ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type" ON "mailboxer_conversation_opt_outs" ("unsubscriber_id", "unsubscriber_type")
360
+  (0.1ms) CREATE INDEX "index_mailboxer_conversation_opt_outs_on_conversation_id" ON "mailboxer_conversation_opt_outs" ("conversation_id")
361
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_type" ON "mailboxer_notifications" ("type")
362
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_sender_id_and_sender_type" ON "mailboxer_notifications" ("sender_id", "sender_type")
363
+  (0.1ms) CREATE INDEX "index_mailboxer_notifications_on_notified_object_id_and_type" ON "mailboxer_notifications" ("notified_object_id", "notified_object_type")
364
+  (0.1ms) CREATE INDEX "index_mailboxer_receipts_on_receiver_id_and_receiver_type" ON "mailboxer_receipts" ("receiver_id", "receiver_type")
365
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123152910')
366
+  (0.8ms) commit transaction
367
+ Migrating to CreateMessageAttachments (20151123235316)
368
+  (0.0ms) begin transaction
369
+  (0.3ms) CREATE TABLE "mailboxer_message_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "message_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
370
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20151123235316')
371
+  (0.6ms) commit transaction
372
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"