mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #34801 from bogdanvlviv/follow-up-34786
Follow up 34786
This commit is contained in:
commit
6719d37be9
6 changed files with 5 additions and 52 deletions
8
actionmailbox/.gitignore
vendored
8
actionmailbox/.gitignore
vendored
|
@ -1,5 +1,5 @@
|
|||
.byebug_history
|
||||
*.sqlite3-journal
|
||||
.ruby-version
|
||||
.ruby-gemset
|
||||
/test/dummy/db/*.sqlite3
|
||||
/test/dummy/db/*.sqlite3-journal
|
||||
/test/dummy/log/*.log
|
||||
/test/dummy/tmp/
|
||||
/tmp/
|
||||
|
|
|
@ -18,7 +18,7 @@ module ActionMailbox::InboundEmail::MessageId
|
|||
# attachment called `raw_email`. Before the upload, extract the Message-ID from the `source` and set
|
||||
# it as an attribute on the new `InboundEmail`.
|
||||
def create_and_extract_message_id!(source, **options)
|
||||
create! message_id: extract_message_id(source), **options do |inbound_email|
|
||||
create! options.merge(message_id: extract_message_id(source)) do |inbound_email|
|
||||
inbound_email.raw_email.attach io: StringIO.new(source), filename: "message.eml", content_type: "message/rfc822"
|
||||
end
|
||||
end
|
||||
|
|
3
actionmailbox/test/dummy/.gitignore
vendored
3
actionmailbox/test/dummy/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
|||
*.log
|
||||
*.sqlite3
|
||||
tmp/*
|
|
@ -1,44 +0,0 @@
|
|||
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
||||
↳ ./bin/rails:4
|
||||
Migrating to CreateActionMailroomTables (20180208205311)
|
||||
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "action_mailroom_inbound_emails" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" datetime(6), "updated_at" datetime(6))[0m
|
||||
↳ db/migrate/20180208205311_create_action_mailroom_tables.rb:3
|
||||
[1m[36mActiveRecord::SchemaMigration Create (4.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180208205311"]]
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
||||
↳ ./bin/rails:4
|
||||
Migrating to CreateActiveStorageTables (20180212164506)
|
||||
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
||||
↳ db/migrate/20180212164506_create_active_storage_tables.active_storage.rb:4
|
||||
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
||||
↳ db/migrate/20180212164506_create_active_storage_tables.active_storage.rb:4
|
||||
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
||||
↳ db/migrate/20180212164506_create_active_storage_tables.active_storage.rb:16
|
||||
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
||||
↳ db/migrate/20180212164506_create_active_storage_tables.active_storage.rb:16
|
||||
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
||||
↳ db/migrate/20180212164506_create_active_storage_tables.active_storage.rb:16
|
||||
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180212164506"]]
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.4ms)[0m [1m[36mcommit transaction[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-09-18 00:47:15.287379"], ["updated_at", "2018-09-18 00:47:15.287379"]]
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.4ms)[0m [1m[36mcommit transaction[0m
|
||||
↳ ./bin/rails:4
|
||||
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
||||
↳ ./bin/rails:4
|
Loading…
Reference in a new issue