custom_emails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/Rakefile +34 -0
  2. data/app/mailers/custom_emails/mailer.rb +22 -0
  3. data/app/models/custom_emails/email.rb +15 -0
  4. data/app/models/custom_emails/email_kind.rb +8 -0
  5. data/db/migrate/20131018141445_create_custom_emails_emails.rb +17 -0
  6. data/db/migrate/20131018143726_create_custom_emails_email_kinds.rb +17 -0
  7. data/lib/custom_emails.rb +12 -0
  8. data/lib/custom_emails/engine.rb +5 -0
  9. data/lib/custom_emails/models.rb +17 -0
  10. data/lib/custom_emails/orm/active_record.rb +1 -0
  11. data/lib/custom_emails/version.rb +3 -0
  12. data/lib/generators/custom_emails/install_generator.rb +11 -0
  13. data/lib/generators/templates/custom_emails.rb +21 -0
  14. data/lib/tasks/custom_emails_tasks.rake +4 -0
  15. data/test/custom_emails_test.rb +7 -0
  16. data/test/dummy/README.rdoc +28 -0
  17. data/test/dummy/Rakefile +6 -0
  18. data/test/dummy/app/assets/javascripts/application.js +13 -0
  19. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  20. data/test/dummy/app/controllers/application_controller.rb +5 -0
  21. data/test/dummy/app/helpers/application_helper.rb +2 -0
  22. data/test/dummy/app/models/example.rb +2 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/bin/bundle +3 -0
  25. data/test/dummy/bin/rails +4 -0
  26. data/test/dummy/bin/rake +4 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +23 -0
  29. data/test/dummy/config/boot.rb +5 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +29 -0
  33. data/test/dummy/config/environments/production.rb +80 -0
  34. data/test/dummy/config/environments/test.rb +36 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/custom_emails.rb +10 -0
  37. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  38. data/test/dummy/config/initializers/inflections.rb +16 -0
  39. data/test/dummy/config/initializers/mime_types.rb +5 -0
  40. data/test/dummy/config/initializers/secret_token.rb +12 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +23 -0
  44. data/test/dummy/config/routes.rb +56 -0
  45. data/test/dummy/db/development.sqlite3 +0 -0
  46. data/test/dummy/db/migrate/20131018164626_create_examples.rb +6 -0
  47. data/test/dummy/db/schema.rb +44 -0
  48. data/test/dummy/db/test.sqlite3 +0 -0
  49. data/test/dummy/log/development.log +1201 -0
  50. data/test/dummy/log/test.log +3167 -0
  51. data/test/dummy/public/404.html +58 -0
  52. data/test/dummy/public/422.html +58 -0
  53. data/test/dummy/public/500.html +57 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/fixtures/custom_emails/email_kinds.yml +11 -0
  56. data/test/fixtures/custom_emails/emails.yml +0 -0
  57. data/test/integration/navigation_test.rb +10 -0
  58. data/test/lib/models_test.rb +53 -0
  59. data/test/mailers/custom_emails/mailer_test.rb +47 -0
  60. data/test/models/custom_emails/email_kind_test.rb +9 -0
  61. data/test/models/custom_emails/email_test.rb +42 -0
  62. data/test/test_helper.rb +16 -0
  63. data/test/test_models.rb +3 -0
  64. metadata +211 -0
@@ -0,0 +1,80 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
23
+ config.serve_static_assets = false
24
+
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
28
+
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+ config.assets.compile = false
31
+
32
+ # Generate digests for assets URLs.
33
+ config.assets.digest = true
34
+
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
+
42
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
+ # config.force_ssl = true
44
+
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
50
+
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
+ # config.action_controller.asset_host = "http://assets.example.com"
59
+
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
+ # config.assets.precompile += %w( search.js )
63
+
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
+ # config.action_mailer.raise_delivery_errors = false
67
+
68
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
+ # the I18n.default_locale when a translation can not be found).
70
+ config.i18n.fallbacks = true
71
+
72
+ # Send deprecation notices to registered listeners.
73
+ config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
80
+ end
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # You can replace active_record with something else that is supported.
2
+ # This is the list of supported ORMs:
3
+ # - active_record
4
+ require 'custom_emails/orm/active_record'
5
+
6
+ # If emails are scoped to a certain model you should declare it with
7
+ # the `has_custom_emails` method and activate the association in the
8
+ # custom_emails with this option. (default: true)
9
+ #
10
+ # CustomEmails.scoped = false
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '8c92c28807a733ff100685c572d37de03bafa6e94ad7aabbbc69267dbe7bddf1476388895810a092f1b54a4972fcdd2a288941be30f15e95ee9f613838b077d3'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
Binary file
@@ -0,0 +1,6 @@
1
+ class CreateExamples < ActiveRecord::Migration
2
+ def change
3
+ create_table :examples do |t|
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,44 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131018164626) do
15
+
16
+ create_table "custom_emails_email_kinds", force: true do |t|
17
+ t.string "name"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ add_index "custom_emails_email_kinds", ["name"], name: "index_custom_emails_email_kinds_on_name", unique: true
23
+
24
+ create_table "custom_emails_emails", force: true do |t|
25
+ t.integer "emailable_id"
26
+ t.string "emailable_type"
27
+ t.string "locale"
28
+ t.text "subject"
29
+ t.text "content_text"
30
+ t.text "content_html"
31
+ t.datetime "created_at"
32
+ t.datetime "updated_at"
33
+ t.integer "kind_id"
34
+ end
35
+
36
+ add_index "custom_emails_emails", ["emailable_id"], name: "index_custom_emails_emails_on_emailable_id"
37
+ add_index "custom_emails_emails", ["kind_id", "emailable_id"], name: "index_custom_emails_emails_on_kind_id_and_emailable_id"
38
+ add_index "custom_emails_emails", ["kind_id", "locale", "emailable_id", "emailable_type"], name: "unique_w_kind_locale_and_emailable", unique: true
39
+ add_index "custom_emails_emails", ["locale"], name: "index_custom_emails_emails_on_locale"
40
+
41
+ create_table "examples", force: true do |t|
42
+ end
43
+
44
+ end
Binary file
@@ -0,0 +1,1201 @@
1
+  (140.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (59.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateCustomEmailsEmails (20131018141445)
5
+  (0.1ms) begin transaction
6
+  (0.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018141445"]]
8
+  (70.3ms) commit transaction
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+  (117.2ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
11
+  (90.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
+  (0.1ms) SELECT version FROM "schema_migrations"
14
+  (101.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
15
+  (0.3ms) begin transaction
16
+ ---------------------------------------
17
+ CustomEmails::EmailTest: test_the_truth
18
+ ---------------------------------------
19
+  (0.1ms) rollback transaction
20
+  (0.0ms) begin transaction
21
+ ----------------------------
22
+ CustomEmailsTest: test_truth
23
+ ----------------------------
24
+  (0.0ms) rollback transaction
25
+  (115.5ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
26
+  (99.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
27
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28
+  (0.1ms) SELECT version FROM "schema_migrations"
29
+  (92.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
30
+  (0.2ms) begin transaction
31
+ ---------------------------------------------------------------------------------------
32
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid?
33
+ ---------------------------------------------------------------------------------------
34
+  (0.1ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+ ----------------------------
37
+ CustomEmailsTest: test_truth
38
+ ----------------------------
39
+  (0.0ms) rollback transaction
40
+  (87.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
41
+  (90.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
42
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
43
+  (0.1ms) SELECT version FROM "schema_migrations"
44
+  (109.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
45
+  (0.2ms) begin transaction
46
+ ---------------------------------------------------------------------------------------
47
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid?
48
+ ---------------------------------------------------------------------------------------
49
+  (0.1ms) rollback transaction
50
+  (0.0ms) begin transaction
51
+ ----------------------------
52
+ CustomEmailsTest: test_truth
53
+ ----------------------------
54
+  (0.0ms) rollback transaction
55
+  (148.8ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
56
+  (82.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
57
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (0.1ms) SELECT version FROM "schema_migrations"
59
+  (84.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
60
+  (0.2ms) begin transaction
61
+ ---------------------------------------------------------------------------------------
62
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid?
63
+ ---------------------------------------------------------------------------------------
64
+  (0.1ms) rollback transaction
65
+  (0.0ms) begin transaction
66
+ ----------------------------
67
+ CustomEmailsTest: test_truth
68
+ ----------------------------
69
+  (0.0ms) rollback transaction
70
+  (98.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
71
+  (89.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
72
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
73
+  (0.1ms) SELECT version FROM "schema_migrations"
74
+  (68.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
75
+  (0.2ms) begin transaction
76
+ ---------------------------------------------------------------------------------------
77
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid?
78
+ ---------------------------------------------------------------------------------------
79
+  (0.1ms) rollback transaction
80
+  (0.0ms) begin transaction
81
+ ----------------------------
82
+ CustomEmailsTest: test_truth
83
+ ----------------------------
84
+  (0.0ms) rollback transaction
85
+  (88.8ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
86
+  (221.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
87
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
88
+  (0.1ms) SELECT version FROM "schema_migrations"
89
+  (59.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
90
+  (0.2ms) begin transaction
91
+ --------------------------------------------------------------------------------------
92
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid
93
+ --------------------------------------------------------------------------------------
94
+  (0.1ms) rollback transaction
95
+  (0.0ms) begin transaction
96
+ ----------------------------
97
+ CustomEmailsTest: test_truth
98
+ ----------------------------
99
+  (0.0ms) rollback transaction
100
+  (145.7ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
101
+  (74.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
102
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
103
+  (0.1ms) SELECT version FROM "schema_migrations"
104
+  (101.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
105
+  (0.2ms) begin transaction
106
+ --------------------------------------------------------------------------------------
107
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid
108
+ --------------------------------------------------------------------------------------
109
+  (0.1ms) rollback transaction
110
+  (0.0ms) begin transaction
111
+ ----------------------------
112
+ CustomEmailsTest: test_truth
113
+ ----------------------------
114
+  (0.0ms) rollback transaction
115
+  (149.3ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
116
+  (73.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
117
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
118
+  (0.1ms) SELECT version FROM "schema_migrations"
119
+  (84.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
120
+  (0.2ms) begin transaction
121
+ --------------------------------------------------------------------------------------
122
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid
123
+ --------------------------------------------------------------------------------------
124
+  (0.1ms) rollback transaction
125
+  (0.0ms) begin transaction
126
+ ----------------------------
127
+ CustomEmailsTest: test_truth
128
+ ----------------------------
129
+  (0.0ms) rollback transaction
130
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
132
+ Migrating to CreateCustomEmailsEmails (20131018141445)
133
+  (0.0ms) begin transaction
134
+  (0.0ms) rollback transaction
135
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
136
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
137
+ Migrating to CreateCustomEmailsEmails (20131018141445)
138
+  (0.0ms) begin transaction
139
+  (0.2ms) DROP TABLE "custom_emails_emails"
140
+ SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018141445'
141
+  (93.9ms) commit transaction
142
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
143
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
144
+ Migrating to CreateCustomEmailsEmails (20131018141445)
145
+  (0.0ms) begin transaction
146
+  (0.3ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
147
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
148
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018141445"]]
149
+  (80.7ms) commit transaction
150
+ Migrating to CreateCustomEmailsEmailKinds (20131018143726)
151
+  (0.1ms) begin transaction
152
+  (0.3ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
153
+  (0.3ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
154
+  (0.2ms) ALTER TABLE "custom_emails_emails" ADD "kind_id" integer
155
+  (0.2ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
156
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018143726"]]
157
+  (71.9ms) commit transaction
158
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
159
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
160
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
161
+ Migrating to CreateCustomEmailsEmailKinds (20131018143726)
162
+  (0.0ms) begin transaction
163
+  (0.2ms) DROP INDEX "index_custom_emails_emails_on_kind_id"
164
+  (0.2ms) CREATE TEMPORARY TABLE "acustom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
165
+  (0.1ms) CREATE INDEX "tindex_acustom_emails_emails_on_locale" ON "acustom_emails_emails" ("locale")
166
+  (0.0ms) SELECT * FROM "custom_emails_emails"
167
+  (0.1ms) DROP TABLE "custom_emails_emails"
168
+  (0.1ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
169
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
170
+  (0.0ms) SELECT * FROM "acustom_emails_emails"
171
+  (0.1ms) DROP TABLE "acustom_emails_emails"
172
+  (0.1ms) DROP INDEX "index_custom_emails_email_kinds_on_name"
173
+  (0.1ms) DROP TABLE "custom_emails_email_kinds"
174
+ SQL (0.6ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018143726'
175
+  (131.0ms) commit transaction
176
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
177
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
178
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
179
+ Migrating to CreateCustomEmailsEmails (20131018141445)
180
+  (0.0ms) begin transaction
181
+  (0.2ms) DROP INDEX "index_custom_emails_emails_on_locale"
182
+  (0.1ms) DROP TABLE "custom_emails_emails"
183
+ SQL (0.6ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018141445'
184
+  (111.8ms) commit transaction
185
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
186
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
187
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
188
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
189
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
190
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
191
+ Migrating to CreateCustomEmailsEmails (20131018141445)
192
+  (0.0ms) begin transaction
193
+  (0.3ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
194
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
195
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
196
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018141445"]]
197
+  (113.1ms) commit transaction
198
+ Migrating to CreateCustomEmailsEmailKinds (20131018143726)
199
+  (0.1ms) begin transaction
200
+  (0.4ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
201
+  (0.3ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
202
+  (0.3ms) ALTER TABLE "custom_emails_emails" ADD "kind_id" integer
203
+  (0.2ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
204
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018143726"]]
205
+  (88.1ms) commit transaction
206
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
207
+  (99.6ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
208
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
209
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
210
+  (197.2ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
211
+  (73.7ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
212
+  (59.6ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
213
+  (94.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
214
+  (59.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
215
+  (0.1ms) SELECT version FROM "schema_migrations"
216
+  (68.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
217
+  (160.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
218
+  (0.2ms) begin transaction
219
+ -------------------------------------------------------------------
220
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
221
+ -------------------------------------------------------------------
222
+  (0.1ms) rollback transaction
223
+  (0.0ms) begin transaction
224
+ --------------------------------------------------------------------------------------
225
+ CustomEmails::EmailTest: test_email_needs_locale,_subject_and_content_text_to_be_valid
226
+ --------------------------------------------------------------------------------------
227
+  (0.1ms) rollback transaction
228
+  (0.0ms) begin transaction
229
+ ----------------------------
230
+ CustomEmailsTest: test_truth
231
+ ----------------------------
232
+  (0.0ms) rollback transaction
233
+  (132.4ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
234
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
235
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
236
+  (219.7ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
237
+  (93.5ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
238
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
239
+  (94.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
240
+  (59.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
241
+  (0.1ms) SELECT version FROM "schema_migrations"
242
+  (68.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
243
+  (119.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
244
+  (0.2ms) begin transaction
245
+ -------------------------------------------------------------------
246
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
247
+ -------------------------------------------------------------------
248
+  (0.1ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+ --------------------------------------------------------------------------------------------
251
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
252
+ --------------------------------------------------------------------------------------------
253
+  (0.1ms) rollback transaction
254
+  (0.0ms) begin transaction
255
+ ----------------------------
256
+ CustomEmailsTest: test_truth
257
+ ----------------------------
258
+  (0.0ms) rollback transaction
259
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
260
+ Migrating to CreateExamples (20131018164626)
261
+  (0.0ms) begin transaction
262
+  (0.3ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
263
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018164626"]]
264
+  (116.9ms) commit transaction
265
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
266
+  (87.7ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
267
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
268
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
269
+  (205.7ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
270
+  (65.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
271
+  (59.6ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
272
+  (68.1ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
273
+  (157.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
274
+  (60.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
275
+  (0.1ms) SELECT version FROM "schema_migrations"
276
+  (59.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
277
+  (93.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
278
+  (126.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
279
+  (0.0ms) begin transaction
280
+ ----------------------------
281
+ CustomEmailsTest: test_truth
282
+ ----------------------------
283
+  (0.0ms) rollback transaction
284
+  (121.5ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
285
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
286
+  (59.7ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
287
+  (177.5ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
288
+  (60.2ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
289
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
290
+  (68.1ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
291
+  (101.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
292
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
293
+  (0.1ms) SELECT version FROM "schema_migrations"
294
+  (84.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
295
+  (143.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
296
+  (60.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
297
+  (0.0ms) begin transaction
298
+ ----------------------------
299
+ CustomEmailsTest: test_truth
300
+ ----------------------------
301
+  (0.0ms) rollback transaction
302
+  (100.1ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
303
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
304
+  (59.7ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
305
+  (154.1ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
306
+  (75.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
307
+  (59.6ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
308
+  (68.1ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
309
+  (182.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
310
+  (60.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
311
+  (0.1ms) SELECT version FROM "schema_migrations"
312
+  (59.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
313
+  (68.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
314
+  (135.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
315
+  (0.0ms) begin transaction
316
+ ----------------------------
317
+ CustomEmailsTest: test_truth
318
+ ----------------------------
319
+  (0.0ms) rollback transaction
320
+  (103.9ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
321
+  (66.7ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
322
+  (59.8ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
323
+  (178.0ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
324
+  (68.0ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
325
+  (59.8ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
326
+  (76.2ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
327
+  (202.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
328
+  (68.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
329
+  (0.2ms) SELECT version FROM "schema_migrations"
330
+  (218.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
331
+  (60.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
332
+  (60.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
333
+  (0.1ms) begin transaction
334
+ ----------------------------
335
+ CustomEmailsTest: test_truth
336
+ ----------------------------
337
+  (0.1ms) rollback transaction
338
+  (117.3ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
339
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
340
+  (59.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
341
+  (173.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
342
+  (72.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
343
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
344
+  (68.0ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
345
+  (174.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
346
+  (60.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
347
+  (0.1ms) SELECT version FROM "schema_migrations"
348
+  (59.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
349
+  (169.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
350
+  (60.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
351
+  (0.0ms) begin transaction
352
+ ----------------------------
353
+ CustomEmailsTest: test_truth
354
+ ----------------------------
355
+  (0.0ms) rollback transaction
356
+  (101.9ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
357
+  (60.1ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
358
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
359
+  (169.0ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
360
+  (77.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
361
+  (59.6ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
362
+  (59.8ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
363
+  (199.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
364
+  (78.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
365
+  (0.2ms) SELECT version FROM "schema_migrations"
366
+  (68.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
367
+  (202.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
368
+  (60.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
369
+  (0.0ms) begin transaction
370
+ ----------------------------
371
+ CustomEmailsTest: test_truth
372
+ ----------------------------
373
+  (0.0ms) rollback transaction
374
+  (95.9ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
375
+  (59.8ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
376
+  (143.8ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
377
+  (59.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
378
+  (60.2ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
379
+  (173.3ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
380
+  (80.2ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
381
+  (88.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
382
+  (60.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
383
+  (0.1ms) SELECT version FROM "schema_migrations"
384
+  (68.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
385
+  (150.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
386
+  (185.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
387
+  (0.0ms) begin transaction
388
+ ----------------------------
389
+ CustomEmailsTest: test_truth
390
+ ----------------------------
391
+  (0.0ms) rollback transaction
392
+  (97.2ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
393
+  (60.1ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
394
+  (59.7ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
395
+  (171.9ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
396
+  (73.7ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
397
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
398
+  (59.7ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
399
+  (157.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
400
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
401
+  (0.1ms) SELECT version FROM "schema_migrations"
402
+  (59.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
403
+  (85.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
404
+  (110.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
405
+  (0.1ms) begin transaction
406
+ ----------------------------
407
+ CustomEmailsTest: test_truth
408
+ ----------------------------
409
+  (0.0ms) rollback transaction
410
+  (108.3ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
411
+  (59.7ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
412
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
413
+  (185.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
414
+  (60.4ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
415
+  (59.9ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
416
+  (68.1ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
417
+  (92.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
418
+  (60.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
419
+  (0.1ms) SELECT version FROM "schema_migrations"
420
+  (68.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
421
+  (135.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
422
+  (60.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
423
+  (0.1ms) begin transaction
424
+ ----------------------------
425
+ CustomEmailsTest: test_truth
426
+ ----------------------------
427
+  (0.0ms) rollback transaction
428
+  (91.1ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
429
+  (235.8ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
430
+  (59.8ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
431
+  (59.9ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
432
+  (76.7ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
433
+  (177.9ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
434
+  (59.6ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
435
+  (104.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
436
+  (60.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
437
+  (0.1ms) SELECT version FROM "schema_migrations"
438
+  (185.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
439
+  (60.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
440
+  (60.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
441
+  (0.2ms) begin transaction
442
+ -------------------------------------------------------------------
443
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
444
+ -------------------------------------------------------------------
445
+  (0.1ms) rollback transaction
446
+  (0.0ms) begin transaction
447
+ --------------------------------------------------------------------------------------------
448
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
449
+ --------------------------------------------------------------------------------------------
450
+  (0.1ms) rollback transaction
451
+  (0.0ms) begin transaction
452
+ ----------------------------
453
+ CustomEmailsTest: test_truth
454
+ ----------------------------
455
+  (0.0ms) rollback transaction
456
+  (0.0ms) begin transaction
457
+ ------------------------------------------------------------------------------
458
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
459
+ ------------------------------------------------------------------------------
460
+  (0.0ms) rollback transaction
461
+  (85.8ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
462
+  (59.8ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
463
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
464
+  (152.4ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
465
+  (60.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
466
+  (110.8ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
467
+  (118.0ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
468
+  (148.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
469
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
470
+  (0.1ms) SELECT version FROM "schema_migrations"
471
+  (59.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
472
+  (93.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
473
+  (126.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
474
+  (0.4ms) begin transaction
475
+ -------------------------------------------------------------------
476
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
477
+ -------------------------------------------------------------------
478
+  (0.1ms) rollback transaction
479
+  (0.0ms) begin transaction
480
+ --------------------------------------------------------------------------------------------
481
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
482
+ --------------------------------------------------------------------------------------------
483
+  (0.1ms) rollback transaction
484
+  (0.0ms) begin transaction
485
+ ----------------------------
486
+ CustomEmailsTest: test_truth
487
+ ----------------------------
488
+  (0.0ms) rollback transaction
489
+  (0.0ms) begin transaction
490
+ ------------------------------------------------------------------------------
491
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
492
+ ------------------------------------------------------------------------------
493
+  (0.1ms) rollback transaction
494
+  (115.7ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
495
+  (305.8ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
496
+  (59.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
497
+  (219.0ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
498
+  (59.9ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
499
+  (59.8ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
500
+  (84.6ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
501
+  (157.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
502
+  (60.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
503
+  (0.2ms) SELECT version FROM "schema_migrations"
504
+  (59.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
505
+  (185.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
506
+  (60.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
507
+  (0.4ms) begin transaction
508
+ -------------------------------------------------------------------
509
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
510
+ -------------------------------------------------------------------
511
+  (0.1ms) rollback transaction
512
+  (0.0ms) begin transaction
513
+ --------------------------------------------------------------------------------------------
514
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
515
+ --------------------------------------------------------------------------------------------
516
+  (0.1ms) rollback transaction
517
+  (0.0ms) begin transaction
518
+ ----------------------------
519
+ CustomEmailsTest: test_truth
520
+ ----------------------------
521
+  (0.0ms) rollback transaction
522
+  (0.0ms) begin transaction
523
+ -------------------------------------------------------------------------------
524
+ MailerTest: test_email_content_text_is_used_when_send_custom_email_to_is_called
525
+ -------------------------------------------------------------------------------
526
+  (0.1ms) SAVEPOINT active_record_1
527
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
528
+  (0.1ms) rollback transaction
529
+  (0.0ms) begin transaction
530
+ ------------------------------------------------------------------------------
531
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
532
+ ------------------------------------------------------------------------------
533
+  (0.0ms) rollback transaction
534
+  (104.6ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
535
+  (59.8ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
536
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
537
+  (160.7ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
538
+  (60.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
539
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
540
+  (76.7ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
541
+  (141.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
542
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
543
+  (0.1ms) SELECT version FROM "schema_migrations"
544
+  (59.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
545
+  (85.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
546
+  (101.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
547
+  (0.2ms) begin transaction
548
+ -------------------------------------------------------------------
549
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
550
+ -------------------------------------------------------------------
551
+  (0.1ms) rollback transaction
552
+  (0.0ms) begin transaction
553
+ --------------------------------------------------------------------------------------------
554
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
555
+ --------------------------------------------------------------------------------------------
556
+  (0.1ms) rollback transaction
557
+  (0.0ms) begin transaction
558
+ ----------------------------
559
+ CustomEmailsTest: test_truth
560
+ ----------------------------
561
+  (0.0ms) rollback transaction
562
+  (0.0ms) begin transaction
563
+ -------------------------------------------------------------------------------
564
+ MailerTest: test_email_content_text_is_used_when_send_custom_email_to_is_called
565
+ -------------------------------------------------------------------------------
566
+  (0.1ms) SAVEPOINT active_record_1
567
+ CustomEmails::EmailKind Exists (0.2ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
568
+ SQL (42.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:33:30 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:33:30 UTC +00:00]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
570
+  (0.1ms) SAVEPOINT active_record_1
571
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:33:30 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:33:30 UTC +00:00]]
572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
573
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
574
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
575
+  (0.1ms) rollback transaction
576
+  (0.0ms) begin transaction
577
+ ------------------------------------------------------------------------------
578
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
579
+ ------------------------------------------------------------------------------
580
+  (0.0ms) rollback transaction
581
+  (104.8ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
582
+  (59.7ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
583
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
584
+  (109.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
585
+  (135.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
586
+  (59.9ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
587
+  (59.8ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
588
+  (166.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
589
+  (60.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
590
+  (0.1ms) SELECT version FROM "schema_migrations"
591
+  (59.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
592
+  (169.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
593
+  (60.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
594
+  (0.2ms) begin transaction
595
+ -------------------------------------------------------------------
596
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
597
+ -------------------------------------------------------------------
598
+  (0.1ms) rollback transaction
599
+  (0.0ms) begin transaction
600
+ --------------------------------------------------------------------------------------------
601
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
602
+ --------------------------------------------------------------------------------------------
603
+  (0.1ms) rollback transaction
604
+  (0.0ms) begin transaction
605
+ ----------------------------
606
+ CustomEmailsTest: test_truth
607
+ ----------------------------
608
+  (0.0ms) rollback transaction
609
+  (0.0ms) begin transaction
610
+ -------------------------------------------------------------------------------
611
+ MailerTest: test_email_content_text_is_used_when_send_custom_email_to_is_called
612
+ -------------------------------------------------------------------------------
613
+  (0.1ms) SAVEPOINT active_record_1
614
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
615
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:33:51 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:33:51 UTC +00:00]]
616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
617
+  (0.0ms) SAVEPOINT active_record_1
618
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:33:51 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:33:51 UTC +00:00]]
619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
620
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
621
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
622
+  (0.1ms) rollback transaction
623
+  (0.0ms) begin transaction
624
+ ------------------------------------------------------------------------------
625
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
626
+ ------------------------------------------------------------------------------
627
+  (0.0ms) rollback transaction
628
+  (112.5ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
629
+  (59.9ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
630
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
631
+  (178.2ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
632
+  (67.6ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
633
+  (59.5ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
634
+  (59.8ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
635
+  (141.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
636
+  (60.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
637
+  (0.1ms) SELECT version FROM "schema_migrations"
638
+  (59.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
639
+  (93.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
640
+  (151.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
641
+  (0.2ms) begin transaction
642
+ -------------------------------------------------------------------
643
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
644
+ -------------------------------------------------------------------
645
+  (0.1ms) rollback transaction
646
+  (0.0ms) begin transaction
647
+ --------------------------------------------------------------------------------------------
648
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
649
+ --------------------------------------------------------------------------------------------
650
+  (0.1ms) rollback transaction
651
+  (0.0ms) begin transaction
652
+ ----------------------------
653
+ CustomEmailsTest: test_truth
654
+ ----------------------------
655
+  (0.0ms) rollback transaction
656
+  (0.0ms) begin transaction
657
+ --------------------------------------------------------------------------
658
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
659
+ --------------------------------------------------------------------------
660
+  (0.1ms) SAVEPOINT active_record_1
661
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
662
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:34:43 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:34:43 UTC +00:00]]
663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
664
+  (0.0ms) SAVEPOINT active_record_1
665
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:34:43 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:34:43 UTC +00:00]]
666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
667
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
668
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
669
+  (0.1ms) rollback transaction
670
+  (0.0ms) begin transaction
671
+ ------------------------------------------------------------------------------
672
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
673
+ ------------------------------------------------------------------------------
674
+  (0.0ms) rollback transaction
675
+  (85.0ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
676
+  (59.9ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
677
+  (59.8ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
678
+  (169.1ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
679
+  (60.3ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
680
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
681
+  (76.3ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
682
+  (124.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
683
+  (68.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
684
+  (0.1ms) SELECT version FROM "schema_migrations"
685
+  (166.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
686
+  (60.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
687
+  (186.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
688
+  (0.2ms) begin transaction
689
+ -------------------------------------------------------------------
690
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
691
+ -------------------------------------------------------------------
692
+  (0.1ms) rollback transaction
693
+  (0.0ms) begin transaction
694
+ --------------------------------------------------------------------------------------------
695
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
696
+ --------------------------------------------------------------------------------------------
697
+  (0.1ms) rollback transaction
698
+  (0.0ms) begin transaction
699
+ ----------------------------
700
+ CustomEmailsTest: test_truth
701
+ ----------------------------
702
+  (0.0ms) rollback transaction
703
+  (0.0ms) begin transaction
704
+ --------------------------------------------------------------------------
705
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
706
+ --------------------------------------------------------------------------
707
+  (0.1ms) SAVEPOINT active_record_1
708
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
709
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:35:09 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:35:09 UTC +00:00]]
710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
711
+  (0.0ms) SAVEPOINT active_record_1
712
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:35:09 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:35:09 UTC +00:00]]
713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
714
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
715
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
716
+
717
+ Sent mail to test@example.com (21.1ms)
718
+ Date: Mon, 21 Oct 2013 12:35:10 +0200
719
+ To: test@example.com
720
+ Message-ID: <5265035e936c_430510eb7fc2076f@chocapic.mail>
721
+ Subject: Hello wold!
722
+ Mime-Version: 1.0
723
+ Content-Type: text/plain;
724
+ charset=UTF-8
725
+ Content-Transfer-Encoding: 7bit
726
+
727
+ Good luck...
728
+  (0.2ms) rollback transaction
729
+  (0.1ms) begin transaction
730
+ ------------------------------------------------------------------------------
731
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
732
+ ------------------------------------------------------------------------------
733
+  (0.0ms) rollback transaction
734
+  (113.3ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
735
+  (59.7ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
736
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
737
+  (177.6ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
738
+  (68.6ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
739
+  (60.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
740
+  (67.8ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
741
+  (149.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
742
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
743
+  (0.1ms) SELECT version FROM "schema_migrations"
744
+  (59.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
745
+  (187.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
746
+  (60.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
747
+  (0.2ms) begin transaction
748
+ -------------------------------------------------------------------
749
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
750
+ -------------------------------------------------------------------
751
+  (0.1ms) rollback transaction
752
+  (0.0ms) begin transaction
753
+ --------------------------------------------------------------------------------------------
754
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
755
+ --------------------------------------------------------------------------------------------
756
+  (0.1ms) rollback transaction
757
+  (0.0ms) begin transaction
758
+ ----------------------------
759
+ CustomEmailsTest: test_truth
760
+ ----------------------------
761
+  (0.0ms) rollback transaction
762
+  (0.0ms) begin transaction
763
+ --------------------------------------------------------------------------
764
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
765
+ --------------------------------------------------------------------------
766
+  (0.1ms) SAVEPOINT active_record_1
767
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
768
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:35:53 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:35:53 UTC +00:00]]
769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
770
+  (0.0ms) SAVEPOINT active_record_1
771
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:35:53 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:35:53 UTC +00:00]]
772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
773
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
774
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
775
+
776
+ Sent mail to test@example.com (4.2ms)
777
+ Date: Mon, 21 Oct 2013 12:35:53 +0200
778
+ To: test@example.com
779
+ Message-ID: <52650389c286e_43276637f8577ac@chocapic.mail>
780
+ Subject: Hello wold!
781
+ Mime-Version: 1.0
782
+ Content-Type: text/plain;
783
+ charset=UTF-8
784
+ Content-Transfer-Encoding: 7bit
785
+
786
+ Good luck...
787
+  (0.1ms) rollback transaction
788
+  (0.0ms) begin transaction
789
+ ------------------------------------------------------------------------------
790
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
791
+ ------------------------------------------------------------------------------
792
+  (0.0ms) rollback transaction
793
+  (89.9ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
794
+  (59.8ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
795
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
796
+  (167.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
797
+  (70.0ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
798
+  (59.6ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
799
+  (67.9ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
800
+  (117.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
801
+  (60.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
802
+  (0.2ms) SELECT version FROM "schema_migrations"
803
+  (59.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
804
+  (93.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
805
+  (135.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
806
+  (0.2ms) begin transaction
807
+ -------------------------------------------------------------------
808
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
809
+ -------------------------------------------------------------------
810
+  (0.1ms) rollback transaction
811
+  (0.0ms) begin transaction
812
+ --------------------------------------------------------------------------------------------
813
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
814
+ --------------------------------------------------------------------------------------------
815
+  (0.1ms) rollback transaction
816
+  (0.0ms) begin transaction
817
+ ----------------------------
818
+ CustomEmailsTest: test_truth
819
+ ----------------------------
820
+  (0.0ms) rollback transaction
821
+  (0.0ms) begin transaction
822
+ --------------------------------------------------------------------------
823
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
824
+ --------------------------------------------------------------------------
825
+  (0.1ms) SAVEPOINT active_record_1
826
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
827
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:38:33 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:38:33 UTC +00:00]]
828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
829
+  (0.0ms) SAVEPOINT active_record_1
830
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:38:33 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:38:33 UTC +00:00]]
831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
832
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
833
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
834
+
835
+ Sent mail to test@example.com (4.2ms)
836
+ Date: Mon, 21 Oct 2013 12:38:33 +0200
837
+ To: test@example.com
838
+ Message-ID: <52650429814d2_436dae2ff464953@chocapic.mail>
839
+ Subject: Hello wold!
840
+ Mime-Version: 1.0
841
+ Content-Type: text/plain;
842
+ charset=UTF-8
843
+ Content-Transfer-Encoding: 7bit
844
+
845
+ Good luck...
846
+  (0.1ms) rollback transaction
847
+  (0.0ms) begin transaction
848
+ ------------------------------------------------------------------------------
849
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
850
+ ------------------------------------------------------------------------------
851
+  (0.0ms) rollback transaction
852
+  (88.3ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
853
+  (60.0ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
854
+  (59.6ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
855
+  (169.2ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
856
+  (60.1ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
857
+  (60.2ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
858
+  (188.8ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
859
+  (62.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
860
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
861
+  (0.1ms) SELECT version FROM "schema_migrations"
862
+  (68.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
863
+  (169.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
864
+  (60.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
865
+  (0.2ms) begin transaction
866
+ -------------------------------------------------------------------
867
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
868
+ -------------------------------------------------------------------
869
+  (0.1ms) rollback transaction
870
+  (0.0ms) begin transaction
871
+ --------------------------------------------------------------------------------------------
872
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
873
+ --------------------------------------------------------------------------------------------
874
+  (0.1ms) rollback transaction
875
+  (0.0ms) begin transaction
876
+ ----------------------------
877
+ CustomEmailsTest: test_truth
878
+ ----------------------------
879
+  (0.0ms) rollback transaction
880
+  (0.0ms) begin transaction
881
+ --------------------------------------------------------------------------
882
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
883
+ --------------------------------------------------------------------------
884
+  (0.1ms) SAVEPOINT active_record_1
885
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
886
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:52:31 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:52:31 UTC +00:00]]
887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
888
+  (0.0ms) SAVEPOINT active_record_1
889
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:52:31 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:52:31 UTC +00:00]]
890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
891
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
892
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
893
+
894
+ Sent mail to test@example.com (4.3ms)
895
+ Date: Mon, 21 Oct 2013 12:52:31 +0200
896
+ To: test@example.com
897
+ Message-ID: <5265076fbf3c8_443d6dd800624aa@chocapic.mail>
898
+ Subject: Hello wold!
899
+ Mime-Version: 1.0
900
+ Content-Type: text/plain;
901
+ charset=UTF-8
902
+ Content-Transfer-Encoding: 7bit
903
+
904
+ Good luck...
905
+  (0.1ms) rollback transaction
906
+  (0.0ms) begin transaction
907
+ ------------------------------------------------------------------------------
908
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
909
+ ------------------------------------------------------------------------------
910
+  (0.0ms) rollback transaction
911
+  (133.8ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
912
+  (185.1ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
913
+  (84.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
914
+  (59.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
915
+  (144.7ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
916
+  (59.7ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
917
+  (59.6ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
918
+  (94.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
919
+  (60.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
920
+  (0.1ms) SELECT version FROM "schema_migrations"
921
+  (68.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
922
+  (160.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
923
+  (60.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
924
+  (0.2ms) begin transaction
925
+ -------------------------------------------------------------------
926
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
927
+ -------------------------------------------------------------------
928
+  (0.1ms) rollback transaction
929
+  (0.0ms) begin transaction
930
+ --------------------------------------------------------------------------------------------
931
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
932
+ --------------------------------------------------------------------------------------------
933
+  (0.1ms) rollback transaction
934
+  (0.0ms) begin transaction
935
+ ----------------------------
936
+ CustomEmailsTest: test_truth
937
+ ----------------------------
938
+  (0.0ms) rollback transaction
939
+  (0.0ms) begin transaction
940
+ --------------------------------------------------------------------------
941
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
942
+ --------------------------------------------------------------------------
943
+  (0.1ms) SAVEPOINT active_record_1
944
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
945
+ SQL (1.2ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:54:19 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:54:19 UTC +00:00]]
946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
947
+  (0.0ms) SAVEPOINT active_record_1
948
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:54:19 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:54:19 UTC +00:00]]
949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
950
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
951
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
952
+
953
+ Sent mail to test@example.com (4.3ms)
954
+ Date: Mon, 21 Oct 2013 12:54:19 +0200
955
+ To: test@example.com
956
+ Message-ID: <526507db8ba5b_44d75a57f825039@chocapic.mail>
957
+ Subject: Hello wold!
958
+ Mime-Version: 1.0
959
+ Content-Type: text/plain;
960
+ charset=UTF-8
961
+ Content-Transfer-Encoding: 7bit
962
+
963
+ Good luck...
964
+  (0.1ms) rollback transaction
965
+  (0.0ms) begin transaction
966
+ ------------------------------------------------------------------------------
967
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
968
+ ------------------------------------------------------------------------------
969
+  (0.0ms) rollback transaction
970
+  (109.8ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
971
+  (59.9ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
972
+  (59.7ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
973
+  (152.5ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
974
+  (60.0ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
975
+  (59.9ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
976
+  (67.9ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
977
+  (140.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
978
+  (60.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
979
+  (0.1ms) SELECT version FROM "schema_migrations"
980
+  (59.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
981
+  (93.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
982
+  (135.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
983
+  (0.2ms) begin transaction
984
+ -------------------------------------------------------------------
985
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
986
+ -------------------------------------------------------------------
987
+  (0.1ms) rollback transaction
988
+  (0.0ms) begin transaction
989
+ --------------------------------------------------------------------------------------------
990
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
991
+ --------------------------------------------------------------------------------------------
992
+  (0.1ms) rollback transaction
993
+  (0.0ms) begin transaction
994
+ ----------------------------
995
+ CustomEmailsTest: test_truth
996
+ ----------------------------
997
+  (0.0ms) rollback transaction
998
+  (0.0ms) begin transaction
999
+ --------------------------------------------------------------------------
1000
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
1001
+ --------------------------------------------------------------------------
1002
+  (0.1ms) SAVEPOINT active_record_1
1003
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
1004
+ SQL (1.5ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 10:54:45 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 10:54:45 UTC +00:00]]
1005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1006
+  (0.0ms) SAVEPOINT active_record_1
1007
+ SQL (0.2ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 10:54:45 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 10:54:45 UTC +00:00]]
1008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1009
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
1010
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
1011
+
1012
+ Sent mail to test@example.com (4.3ms)
1013
+ Date: Mon, 21 Oct 2013 12:54:45 +0200
1014
+ To: test@example.com
1015
+ Message-ID: <526507f5e6709_450a12b57f459563@chocapic.mail>
1016
+ Subject: Hello wold!
1017
+ Mime-Version: 1.0
1018
+ Content-Type: text/plain;
1019
+ charset=UTF-8
1020
+ Content-Transfer-Encoding: 7bit
1021
+
1022
+ Good luck...
1023
+  (0.1ms) rollback transaction
1024
+  (0.0ms) begin transaction
1025
+ ------------------------------------------------------------------------------
1026
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
1027
+ ------------------------------------------------------------------------------
1028
+  (0.1ms) rollback transaction
1029
+  (142.0ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
1030
+  (59.7ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
1031
+  (59.4ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
1032
+  (109.8ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
1033
+  (168.0ms) CREATE INDEX "index_custom_emails_emails_on_kind_id" ON "custom_emails_emails" ("kind_id")
1034
+  (59.8ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
1035
+  (59.6ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1036
+  (82.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1037
+  (152.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1038
+  (0.2ms) SELECT version FROM "schema_migrations"
1039
+  (59.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018164626')
1040
+  (60.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018143726')
1041
+  (85.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20131018141445')
1042
+  (0.2ms) begin transaction
1043
+ -------------------------------------------------------------------
1044
+ CustomEmails::EmailTest: test_email_is_scoped_to_an_emailable_model
1045
+ -------------------------------------------------------------------
1046
+  (0.1ms) rollback transaction
1047
+  (0.0ms) begin transaction
1048
+ --------------------------------------------------------------------------------------------
1049
+ CustomEmails::EmailTest: test_email_needs_kind,_locale,_subject_and_content_text_to_be_valid
1050
+ --------------------------------------------------------------------------------------------
1051
+  (0.1ms) rollback transaction
1052
+  (0.0ms) begin transaction
1053
+ ----------------------------
1054
+ CustomEmailsTest: test_truth
1055
+ ----------------------------
1056
+  (0.0ms) rollback transaction
1057
+  (0.0ms) begin transaction
1058
+ --------------------------------------------------------------------------
1059
+ MailerTest: test_email_content_text_is_used_when_custom_email_to_is_called
1060
+ --------------------------------------------------------------------------
1061
+  (0.1ms) SAVEPOINT active_record_1
1062
+ CustomEmails::EmailKind Exists (0.1ms) SELECT 1 AS one FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
1063
+ SQL (1.7ms) INSERT INTO "custom_emails_email_kinds" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 21 Oct 2013 11:26:20 UTC +00:00], ["name", :kind_1], ["updated_at", Mon, 21 Oct 2013 11:26:20 UTC +00:00]]
1064
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1065
+  (0.0ms) SAVEPOINT active_record_1
1066
+ SQL (0.3ms) INSERT INTO "custom_emails_emails" ("content_text", "created_at", "kind_id", "locale", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_text", "Good luck..."], ["created_at", Mon, 21 Oct 2013 11:26:20 UTC +00:00], ["kind_id", 1], ["locale", :en], ["subject", "Hello wold!"], ["updated_at", Mon, 21 Oct 2013 11:26:20 UTC +00:00]]
1067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1068
+ CustomEmails::EmailKind Load (0.1ms) SELECT "custom_emails_email_kinds".* FROM "custom_emails_email_kinds" WHERE "custom_emails_email_kinds"."name" = 'kind_1' LIMIT 1
1069
+ CustomEmails::Email Load (0.1ms) SELECT "custom_emails_emails".* FROM "custom_emails_emails" WHERE "custom_emails_emails"."kind_id" = 1 AND "custom_emails_emails"."emailable_id" IS NULL AND "custom_emails_emails"."locale" = 'en' LIMIT 1
1070
+
1071
+ Sent mail to test@example.com (20.5ms)
1072
+ Date: Mon, 21 Oct 2013 13:26:20 +0200
1073
+ To: test@example.com
1074
+ Message-ID: <52650f5c2170f_47944a27fc919ee@chocapic.mail>
1075
+ Subject: Hello wold!
1076
+ Mime-Version: 1.0
1077
+ Content-Type: text/plain;
1078
+ charset=UTF-8
1079
+ Content-Transfer-Encoding: 7bit
1080
+
1081
+ Good luck...
1082
+
1083
+ Sent mail to test@example.com (21.1ms)
1084
+ Date: Mon, 21 Oct 2013 13:26:20 +0200
1085
+ To: test@example.com
1086
+ Message-ID: <52650f5c2170f_47944a27fc919ee@chocapic.mail>
1087
+ Subject: Hello wold!
1088
+ Mime-Version: 1.0
1089
+ Content-Type: text/plain;
1090
+ charset=UTF-8
1091
+ Content-Transfer-Encoding: 7bit
1092
+
1093
+ Good luck...
1094
+
1095
+ Sent mail to test@example.com (2.2ms)
1096
+ Date: Mon, 21 Oct 2013 13:26:20 +0200
1097
+ To: test@example.com
1098
+ Message-ID: <52650f5c2170f_47944a27fc919ee@chocapic.mail>
1099
+ Subject: Hello wold!
1100
+ Mime-Version: 1.0
1101
+ Content-Type: text/plain;
1102
+ charset=UTF-8
1103
+ Content-Transfer-Encoding: 7bit
1104
+
1105
+ Good luck...
1106
+  (0.3ms) rollback transaction
1107
+  (0.1ms) begin transaction
1108
+ ------------------------------------------------------------------------------
1109
+ ModelsTest: test_models_unsing_has_custom_emails_ends_with_an_:emails_relation
1110
+ ------------------------------------------------------------------------------
1111
+  (0.1ms) rollback transaction
1112
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1113
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1114
+ Migrating to CreateExamples (20131018164626)
1115
+  (0.0ms) begin transaction
1116
+  (0.5ms) DROP TABLE "examples"
1117
+ SQL (1.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018164626'
1118
+  (103.0ms) commit transaction
1119
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1120
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1121
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1122
+ Migrating to CreateCustomEmailsEmailKinds (20131018143726)
1123
+  (0.0ms) begin transaction
1124
+  (0.2ms) DROP INDEX "index_custom_emails_emails_on_kind_id"
1125
+  (0.2ms) CREATE TEMPORARY TABLE "acustom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime, "kind_id" integer) 
1126
+  (0.1ms) CREATE INDEX "tindex_acustom_emails_emails_on_emailable_id" ON "acustom_emails_emails" ("emailable_id")
1127
+  (0.1ms) CREATE INDEX "tindex_acustom_emails_emails_on_locale" ON "acustom_emails_emails" ("locale")
1128
+  (0.1ms) SELECT * FROM "custom_emails_emails"
1129
+  (0.2ms) DROP TABLE "custom_emails_emails"
1130
+  (0.1ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime)
1131
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
1132
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
1133
+  (0.1ms) SELECT * FROM "acustom_emails_emails"
1134
+  (0.1ms) DROP TABLE "acustom_emails_emails"
1135
+  (0.1ms) DROP INDEX "index_custom_emails_email_kinds_on_name"
1136
+  (0.1ms) DROP TABLE "custom_emails_email_kinds"
1137
+ SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018143726'
1138
+  (79.9ms) commit transaction
1139
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1140
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1141
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1142
+ Migrating to CreateCustomEmailsEmails (20131018141445)
1143
+  (0.0ms) begin transaction
1144
+  (0.2ms) DROP INDEX "index_custom_emails_emails_on_emailable_id"
1145
+  (0.1ms) DROP INDEX "index_custom_emails_emails_on_locale"
1146
+  (0.1ms) DROP TABLE "custom_emails_emails"
1147
+ SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018141445'
1148
+  (105.3ms) commit transaction
1149
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1150
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1151
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1152
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1153
+ Migrating to CreateCustomEmailsEmails (20131018141445)
1154
+  (0.0ms) begin transaction
1155
+  (0.3ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
1156
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
1157
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
1158
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018141445"]]
1159
+  (127.0ms) commit transaction
1160
+ Migrating to CreateCustomEmailsEmailKinds (20131018143726)
1161
+  (0.1ms) begin transaction
1162
+  (0.4ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
1163
+  (0.3ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
1164
+  (0.3ms) ALTER TABLE "custom_emails_emails" ADD "kind_id" integer
1165
+  (0.2ms) CREATE INDEX "index_custom_emails_emails_on_kind_id_and_emailable_id" ON "custom_emails_emails" ("kind_id", "emailable_id")
1166
+  (0.2ms) rollback transaction
1167
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1168
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1169
+ Migrating to CreateCustomEmailsEmails (20131018141445)
1170
+  (0.0ms) begin transaction
1171
+  (0.2ms) DROP INDEX "index_custom_emails_emails_on_emailable_id"
1172
+  (0.1ms) DROP INDEX "index_custom_emails_emails_on_locale"
1173
+  (0.1ms) DROP TABLE "custom_emails_emails"
1174
+ SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131018141445'
1175
+  (118.5ms) commit transaction
1176
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1177
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1178
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1179
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1180
+ Migrating to CreateCustomEmailsEmails (20131018141445)
1181
+  (0.0ms) begin transaction
1182
+  (0.3ms) CREATE TABLE "custom_emails_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "emailable_id" integer, "emailable_type" varchar(255), "locale" varchar(255), "subject" text, "content_text" text, "content_html" text, "created_at" datetime, "updated_at" datetime) 
1183
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_locale" ON "custom_emails_emails" ("locale")
1184
+  (0.1ms) CREATE INDEX "index_custom_emails_emails_on_emailable_id" ON "custom_emails_emails" ("emailable_id")
1185
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018141445"]]
1186
+  (188.7ms) commit transaction
1187
+ Migrating to CreateCustomEmailsEmailKinds (20131018143726)
1188
+  (0.1ms) begin transaction
1189
+  (0.4ms) CREATE TABLE "custom_emails_email_kinds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
1190
+  (0.3ms) CREATE UNIQUE INDEX "index_custom_emails_email_kinds_on_name" ON "custom_emails_email_kinds" ("name")
1191
+  (0.3ms) ALTER TABLE "custom_emails_emails" ADD "kind_id" integer
1192
+  (0.2ms) CREATE INDEX "index_custom_emails_emails_on_kind_id_and_emailable_id" ON "custom_emails_emails" ("kind_id", "emailable_id")
1193
+  (0.3ms) CREATE UNIQUE INDEX "unique_w_kind_locale_and_emailable" ON "custom_emails_emails" ("kind_id", "locale", "emailable_id", "emailable_type")
1194
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018143726"]]
1195
+  (95.7ms) commit transaction
1196
+ Migrating to CreateExamples (20131018164626)
1197
+  (0.1ms) begin transaction
1198
+  (0.4ms) CREATE TABLE "examples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1199
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131018164626"]]
1200
+  (82.0ms) commit transaction
1201
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"