wupee 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +30 -0
  4. data/app/controllers/wupee/api/notifications_controller.rb +33 -0
  5. data/app/controllers/wupee/application_controller.rb +4 -0
  6. data/app/mailers/wupee/notifications_mailer.rb +30 -0
  7. data/app/models/concerns/wupee/attached_object.rb +9 -0
  8. data/app/models/concerns/wupee/receiver.rb +16 -0
  9. data/app/models/wupee/notification.rb +16 -0
  10. data/app/models/wupee/notification_type.rb +18 -0
  11. data/app/models/wupee/notification_type_configuration.rb +17 -0
  12. data/app/models/wupee/notifier.rb +73 -0
  13. data/app/views/wupee/api/notifications/_notification.json.jbuilder +5 -0
  14. data/app/views/wupee/api/notifications/index.json.jbuilder +1 -0
  15. data/app/views/wupee/api/notifications/show.json.jbuilder +1 -0
  16. data/db/migrate/20151029113101_create_wupee_notification_type_configurations.rb +13 -0
  17. data/db/migrate/20151029113107_create_wupee_notifications.rb +14 -0
  18. data/db/migrate/20151029113122_create_wupee_notification_types.rb +10 -0
  19. data/lib/generators/wupee/install/USAGE +15 -0
  20. data/lib/generators/wupee/install/install_generator.rb +24 -0
  21. data/lib/generators/wupee/install/templates/notifications_mailer.rb +4 -0
  22. data/lib/generators/wupee/install/templates/wupee.rb +6 -0
  23. data/lib/generators/wupee/notification_type/USAGE +11 -0
  24. data/lib/generators/wupee/notification_type/notification_type_generator.rb +26 -0
  25. data/lib/tasks/wupee_tasks.rake +4 -0
  26. data/lib/wupee.rb +11 -0
  27. data/lib/wupee/engine.rb +12 -0
  28. data/lib/wupee/version.rb +3 -0
  29. data/spec/controllers/notifications_controller_spec.rb +65 -0
  30. data/spec/dummy/README.rdoc +28 -0
  31. data/spec/dummy/Rakefile +6 -0
  32. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  33. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  34. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  35. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  36. data/spec/dummy/app/mailers/notifications_mailer.rb +4 -0
  37. data/spec/dummy/app/models/message.rb +3 -0
  38. data/spec/dummy/app/models/user.rb +3 -0
  39. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  40. data/spec/dummy/app/views/notifications/_admin_user_created.html.erb +0 -0
  41. data/spec/dummy/app/views/notifications/_notify_new_message.html.erb +0 -0
  42. data/spec/dummy/app/views/notifications_mailer/notify_new_message.html.erb +0 -0
  43. data/spec/dummy/app/views/wupee/api/notifications/_notification.json.jbuilder +5 -0
  44. data/spec/dummy/app/views/wupee/api/notifications/_notify_new_message.json.jbuilder +3 -0
  45. data/spec/dummy/app/views/wupee/api/notifications/index.json.jbuilder +1 -0
  46. data/spec/dummy/app/views/wupee/api/notifications/show.json.jbuilder +1 -0
  47. data/spec/dummy/app/views/wupee/notifications/_notify_new_message.html.erb +0 -0
  48. data/spec/dummy/bin/bundle +3 -0
  49. data/spec/dummy/bin/rails +4 -0
  50. data/spec/dummy/bin/rake +4 -0
  51. data/spec/dummy/bin/setup +29 -0
  52. data/spec/dummy/config.ru +4 -0
  53. data/spec/dummy/config/application.rb +32 -0
  54. data/spec/dummy/config/boot.rb +5 -0
  55. data/spec/dummy/config/database.yml +25 -0
  56. data/spec/dummy/config/environment.rb +5 -0
  57. data/spec/dummy/config/environments/development.rb +41 -0
  58. data/spec/dummy/config/environments/production.rb +79 -0
  59. data/spec/dummy/config/environments/test.rb +42 -0
  60. data/spec/dummy/config/initializers/assets.rb +11 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  63. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  64. data/spec/dummy/config/initializers/inflections.rb +16 -0
  65. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  66. data/spec/dummy/config/initializers/session_store.rb +3 -0
  67. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  68. data/spec/dummy/config/initializers/wupee.rb +6 -0
  69. data/spec/dummy/config/locales/en.yml +5 -0
  70. data/spec/dummy/config/routes.rb +3 -0
  71. data/spec/dummy/config/secrets.yml +22 -0
  72. data/spec/dummy/db/development.sqlite3 +0 -0
  73. data/spec/dummy/db/migrate/20150213150625_create_users.rb +10 -0
  74. data/spec/dummy/db/migrate/20150213152846_create_messages.rb +9 -0
  75. data/spec/dummy/db/schema.rb +61 -0
  76. data/spec/dummy/db/test.sqlite3 +0 -0
  77. data/spec/dummy/log/development.log +1750 -0
  78. data/spec/dummy/log/test.log +76399 -0
  79. data/spec/dummy/public/404.html +67 -0
  80. data/spec/dummy/public/422.html +67 -0
  81. data/spec/dummy/public/500.html +66 -0
  82. data/spec/dummy/public/favicon.ico +0 -0
  83. data/spec/factories/message.rb +5 -0
  84. data/spec/factories/notification.rb +7 -0
  85. data/spec/factories/notification_type.rb +5 -0
  86. data/spec/factories/notification_type_configuration.rb +6 -0
  87. data/spec/factories/user.rb +9 -0
  88. data/spec/mailers/notifications_mailer_spec.rb +33 -0
  89. data/spec/models/concerns/attached_object_spec.rb +11 -0
  90. data/spec/models/concerns/receiver_spec.rb +37 -0
  91. data/spec/models/message_spec.rb +5 -0
  92. data/spec/models/notification_spec.rb +54 -0
  93. data/spec/models/notification_type_configuration_spec.rb +43 -0
  94. data/spec/models/notifier_spec.rb +42 -0
  95. data/spec/models/user_spec.rb +5 -0
  96. data/spec/rails_helper.rb +52 -0
  97. data/spec/spec_helper.rb +87 -0
  98. data/spec/support/factory_girl.rb +3 -0
  99. data/spec/wupee_spec.rb +15 -0
  100. metadata +291 -0
@@ -0,0 +1,42 @@
1
+ Rails.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 file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = 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
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -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,4 @@
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
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.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,6 @@
1
+ Wupee.mailer = NotificationsMailer
2
+ Wupee.deliver_when = :now
3
+
4
+ Wupee::NotificationType.class_eval do
5
+ create_configurations_for 'User'
6
+ end
@@ -0,0 +1,5 @@
1
+ en:
2
+ wupee:
3
+ email_subjects:
4
+ notify_new_message: "notify_new_message"
5
+ abc: "abc %{a_var_to_interpolate}"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount Wupee::Engine, at: "/wupee"
3
+ end
@@ -0,0 +1,22 @@
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 the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: bac8f84c30b469b26411ccff2193e1e2f940db7a4206834ee8c7cab76886d6c0e7db724ea843f84060617b032bfb4000f2b5d0ee55ded5549ad3fcaf44cdd8cc
15
+
16
+ test:
17
+ secret_key_base: d1fd44cc278480713531412b07c834d46b63b25fb7a1fc48fd7a33c5d176f6a1c929189d143b6fd4a3bfcde8a930a784b319243fab188ac13791bc943c3873d4
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,10 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :name
5
+ t.string :email
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class CreateMessages < ActiveRecord::Migration
2
+ def change
3
+ create_table :messages do |t|
4
+ t.string :body
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,61 @@
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: 20151029113122) do
15
+
16
+ create_table "messages", force: :cascade do |t|
17
+ t.string "body"
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ end
21
+
22
+ create_table "users", force: :cascade do |t|
23
+ t.string "name"
24
+ t.string "email"
25
+ t.datetime "created_at", null: false
26
+ t.datetime "updated_at", null: false
27
+ end
28
+
29
+ create_table "wupee_notification_type_configurations", force: :cascade do |t|
30
+ t.integer "notification_type_id"
31
+ t.integer "receiver_id"
32
+ t.string "receiver_type"
33
+ t.integer "value", default: 0
34
+ t.datetime "created_at", null: false
35
+ t.datetime "updated_at", null: false
36
+ end
37
+
38
+ add_index "wupee_notification_type_configurations", ["notification_type_id"], name: "idx_wupee_notif_type_config_on_notification_type_id"
39
+ add_index "wupee_notification_type_configurations", ["receiver_type", "receiver_id"], name: "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id"
40
+
41
+ create_table "wupee_notification_types", force: :cascade do |t|
42
+ t.string "name"
43
+ t.datetime "created_at", null: false
44
+ t.datetime "updated_at", null: false
45
+ end
46
+
47
+ add_index "wupee_notification_types", ["name"], name: "index_wupee_notification_types_on_name", unique: true
48
+
49
+ create_table "wupee_notifications", force: :cascade do |t|
50
+ t.integer "receiver_id"
51
+ t.string "receiver_type"
52
+ t.integer "attached_object_id"
53
+ t.string "attached_object_type"
54
+ t.integer "notification_type_id"
55
+ t.boolean "is_read", default: false
56
+ t.boolean "is_sent", default: false
57
+ t.datetime "created_at", null: false
58
+ t.datetime "updated_at", null: false
59
+ end
60
+
61
+ end
@@ -0,0 +1,1750 @@
1
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2
+  (1.1ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5
+  (0.1ms) select sqlite_version(*)
6
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.1ms) SELECT version FROM "schema_migrations"
8
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
9
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
10
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
11
+  (9.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
12
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
13
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
14
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
15
+  (0.0ms) select sqlite_version(*)
16
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
17
+  (0.1ms) SELECT version FROM "schema_migrations"
18
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
19
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
20
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
21
+  (9.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
22
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
23
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
24
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
25
+  (0.1ms) select sqlite_version(*)
26
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
27
+  (0.1ms) SELECT version FROM "schema_migrations"
28
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
29
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
30
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
31
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
32
+  (1.2ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
33
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
34
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
35
+  (0.1ms) select sqlite_version(*)
36
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37
+  (0.1ms) SELECT version FROM "schema_migrations"
38
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
39
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
40
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
41
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
42
+  (1.2ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
43
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
44
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
45
+  (0.1ms) select sqlite_version(*)
46
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (0.1ms) SELECT version FROM "schema_migrations"
48
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
49
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
50
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
51
+  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
52
+  (1.3ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
53
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
55
+  (0.1ms) select sqlite_version(*)
56
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
57
+  (0.1ms) SELECT version FROM "schema_migrations"
58
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
59
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
60
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
61
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
62
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
63
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
64
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
65
+  (0.1ms) select sqlite_version(*)
66
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
67
+  (0.1ms) SELECT version FROM "schema_migrations"
68
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
69
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
70
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
71
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
72
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
73
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
74
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
75
+  (0.1ms) select sqlite_version(*)
76
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
77
+  (0.1ms) SELECT version FROM "schema_migrations"
78
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
79
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
80
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
81
+  (1.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
82
+  (2.3ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
83
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
84
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
85
+  (0.1ms) select sqlite_version(*)
86
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
87
+  (0.2ms) SELECT version FROM "schema_migrations"
88
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
89
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
90
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
91
+  (10.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
92
+  (1.3ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
93
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
94
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
95
+  (0.1ms) select sqlite_version(*)
96
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
97
+  (0.2ms) SELECT version FROM "schema_migrations"
98
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
99
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
100
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
101
+  (4.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
102
+  (2.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
103
+  (2.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
104
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
105
+  (0.1ms) select sqlite_version(*)
106
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
107
+  (0.1ms) SELECT version FROM "schema_migrations"
108
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
109
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
110
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
111
+  (9.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
112
+  (1.3ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
113
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
114
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
115
+  (0.1ms) select sqlite_version(*)
116
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
117
+  (0.1ms) SELECT version FROM "schema_migrations"
118
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
119
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
120
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
121
+  (17.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
122
+  (1.7ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
123
+  (1.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
124
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
125
+  (0.3ms) select sqlite_version(*)
126
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
127
+  (0.2ms) SELECT version FROM "schema_migrations"
128
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
129
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
130
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
131
+  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
132
+  (1.2ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
133
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
134
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
135
+  (0.1ms) select sqlite_version(*)
136
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
137
+  (0.1ms) SELECT version FROM "schema_migrations"
138
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
139
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
140
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
141
+  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
142
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
143
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
144
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
145
+  (0.1ms) select sqlite_version(*)
146
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
147
+  (0.1ms) SELECT version FROM "schema_migrations"
148
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
149
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
150
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
151
+  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
152
+  (1.2ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
153
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
154
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
155
+  (0.1ms) select sqlite_version(*)
156
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
157
+  (0.1ms) SELECT version FROM "schema_migrations"
158
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
159
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
160
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
161
+  (9.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
162
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
163
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
164
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
165
+  (0.1ms) select sqlite_version(*)
166
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
167
+  (0.1ms) SELECT version FROM "schema_migrations"
168
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
169
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
170
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
171
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
172
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
173
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
174
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
175
+  (0.1ms) select sqlite_version(*)
176
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
177
+  (0.1ms) SELECT version FROM "schema_migrations"
178
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
179
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
180
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
181
+  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
182
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
183
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
184
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
185
+  (0.1ms) select sqlite_version(*)
186
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
187
+  (0.1ms) SELECT version FROM "schema_migrations"
188
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
189
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
190
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
191
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
192
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
193
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
194
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
195
+  (0.1ms) select sqlite_version(*)
196
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
197
+  (0.1ms) SELECT version FROM "schema_migrations"
198
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
199
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
200
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
201
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
202
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
203
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
204
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
205
+  (0.1ms) select sqlite_version(*)
206
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
207
+  (0.1ms) SELECT version FROM "schema_migrations"
208
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
209
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
210
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
211
+  (1.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
212
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
213
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
214
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
215
+  (0.1ms) select sqlite_version(*)
216
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
217
+  (0.1ms) SELECT version FROM "schema_migrations"
218
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
219
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
220
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
221
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
222
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
223
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
224
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
225
+  (0.1ms) select sqlite_version(*)
226
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
227
+  (0.2ms) SELECT version FROM "schema_migrations"
228
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
229
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
230
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
231
+  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
232
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
233
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
234
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
235
+  (0.1ms) select sqlite_version(*)
236
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
237
+  (0.1ms) SELECT version FROM "schema_migrations"
238
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
239
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
240
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
241
+  (1.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
242
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
243
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
244
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
245
+  (0.1ms) select sqlite_version(*)
246
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
247
+  (0.1ms) SELECT version FROM "schema_migrations"
248
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
249
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
250
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
251
+  (1.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
252
+  (2.2ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
253
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
254
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
255
+  (0.2ms) select sqlite_version(*)
256
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
257
+  (0.3ms) SELECT version FROM "schema_migrations"
258
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
259
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
260
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
261
+  (9.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
262
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
263
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
264
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
265
+  (0.1ms) select sqlite_version(*)
266
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
267
+  (0.1ms) SELECT version FROM "schema_migrations"
268
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
269
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
270
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
271
+  (9.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
272
+  (0.3ms) select sqlite_version(*)
273
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
274
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
275
+ Migrating to CreateUsers (20150213150625)
276
+  (0.1ms) begin transaction
277
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
278
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
279
+  (1.5ms) commit transaction
280
+ Migrating to CreateMessages (20150213152846)
281
+  (0.2ms) begin transaction
282
+  (0.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
283
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
284
+  (0.8ms) commit transaction
285
+ Migrating to CreateNotifications (20151028110352)
286
+  (0.1ms) begin transaction
287
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
288
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
289
+  (1.0ms) commit transaction
290
+ Migrating to CreateNotificationTypes (20151028110353)
291
+  (0.2ms) begin transaction
292
+  (0.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
293
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
294
+  (0.6ms) commit transaction
295
+ Migrating to CreateNotificationTypesReceivers (20151028110354)
296
+  (0.1ms) begin transaction
297
+  (1.1ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
298
+  (0.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
299
+  (0.4ms) rollback transaction
300
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
301
+  (0.1ms) select sqlite_version(*)
302
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
303
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
304
+ Migrating to CreateUsers (20150213150625)
305
+  (0.1ms) begin transaction
306
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
307
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
308
+  (0.8ms) commit transaction
309
+ Migrating to CreateMessages (20150213152846)
310
+  (0.1ms) begin transaction
311
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
312
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
313
+  (1.1ms) commit transaction
314
+ Migrating to CreateNotifications (20151028110352)
315
+  (0.3ms) begin transaction
316
+  (0.6ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
317
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
318
+  (0.9ms) commit transaction
319
+ Migrating to CreateNotificationTypes (20151028110353)
320
+  (0.1ms) begin transaction
321
+  (0.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
322
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
323
+  (0.7ms) commit transaction
324
+ Migrating to CreateNotificationTypesReceivers (20151028110354)
325
+  (0.1ms) begin transaction
326
+  (1.0ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
327
+  (0.2ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
328
+  (0.8ms) rollback transaction
329
+  (8.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
330
+  (0.1ms) select sqlite_version(*)
331
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
332
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
333
+ Migrating to CreateUsers (20150213150625)
334
+  (0.1ms) begin transaction
335
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
336
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
337
+  (0.6ms) commit transaction
338
+ Migrating to CreateMessages (20150213152846)
339
+  (0.1ms) begin transaction
340
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
341
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
342
+  (0.7ms) commit transaction
343
+ Migrating to CreateNotifications (20151028110352)
344
+  (0.1ms) begin transaction
345
+  (1.1ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
346
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
347
+  (1.3ms) commit transaction
348
+ Migrating to CreateNotificationTypes (20151028110353)
349
+  (0.1ms) begin transaction
350
+  (0.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
351
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
352
+  (0.8ms) commit transaction
353
+ Migrating to CreateNotificationTypesReceivers (20151028111119)
354
+  (0.2ms) begin transaction
355
+  (0.7ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
356
+  (0.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
357
+  (0.1ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notificaiton_types_receivers" ("receiver_type", "receiver_id")
358
+ SQLite3::SQLException: no such table: main.notificaiton_types_receivers: CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notificaiton_types_receivers" ("receiver_type", "receiver_id")
359
+  (0.4ms) rollback transaction
360
+  (9.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
361
+  (0.1ms) select sqlite_version(*)
362
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
363
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
364
+ Migrating to CreateUsers (20150213150625)
365
+  (0.0ms) begin transaction
366
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
367
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
368
+  (0.8ms) commit transaction
369
+ Migrating to CreateMessages (20150213152846)
370
+  (0.3ms) begin transaction
371
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
372
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
373
+  (0.7ms) commit transaction
374
+ Migrating to CreateNotifications (20151028110352)
375
+  (0.1ms) begin transaction
376
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
377
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
378
+  (0.8ms) commit transaction
379
+ Migrating to CreateNotificationTypes (20151028110353)
380
+  (0.2ms) begin transaction
381
+  (0.7ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
382
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
383
+  (0.7ms) commit transaction
384
+ Migrating to CreateNotificationTypesReceivers (20151028111119)
385
+  (0.1ms) begin transaction
386
+  (0.7ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
387
+  (0.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
388
+  (0.3ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notificaiton_types_receivers" ("receiver_type", "receiver_id")
389
+ SQLite3::SQLException: no such table: main.notificaiton_types_receivers: CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notificaiton_types_receivers" ("receiver_type", "receiver_id")
390
+  (0.7ms) rollback transaction
391
+  (8.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
392
+  (0.1ms) select sqlite_version(*)
393
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
394
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
395
+ Migrating to CreateUsers (20150213150625)
396
+  (0.3ms) begin transaction
397
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
398
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
399
+  (0.9ms) commit transaction
400
+ Migrating to CreateMessages (20150213152846)
401
+  (0.1ms) begin transaction
402
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
403
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
404
+  (1.7ms) commit transaction
405
+ Migrating to CreateNotifications (20151028110352)
406
+  (0.1ms) begin transaction
407
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
408
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
409
+  (1.2ms) commit transaction
410
+ Migrating to CreateNotificationTypes (20151028110353)
411
+  (0.1ms) begin transaction
412
+  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
413
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
414
+  (0.9ms) commit transaction
415
+ Migrating to CreateNotificationTypesReceivers (20151028111239)
416
+  (0.1ms) begin transaction
417
+  (0.4ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
418
+  (0.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
419
+  (0.2ms) SELECT sql
420
+ FROM sqlite_master
421
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
422
+ UNION ALL
423
+ SELECT sql
424
+ FROM sqlite_temp_master
425
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
426
+
427
+  (0.3ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
428
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028111239"]]
429
+  (0.7ms) commit transaction
430
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
431
+  (0.1ms)  SELECT sql
432
+ FROM sqlite_master
433
+ WHERE name='idx_notif_typ_receiv_on_receiver_type_and_receiver_id' AND type='index'
434
+ UNION ALL
435
+ SELECT sql
436
+ FROM sqlite_temp_master
437
+ WHERE name='idx_notif_typ_receiv_on_receiver_type_and_receiver_id' AND type='index'
438
+ 
439
+  (0.1ms) SELECT sql
440
+ FROM sqlite_master
441
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
442
+ UNION ALL
443
+ SELECT sql
444
+ FROM sqlite_temp_master
445
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
446
+
447
+  (1.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
448
+  (2.1ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
449
+  (1.0ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
450
+  (0.2ms) select sqlite_version(*)
451
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
452
+  (0.1ms) SELECT sql
453
+ FROM sqlite_master
454
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
455
+ UNION ALL
456
+ SELECT sql
457
+ FROM sqlite_temp_master
458
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
459
+
460
+  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
461
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
462
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
463
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
464
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
465
+  (0.1ms) SELECT version FROM "schema_migrations"
466
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
467
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
468
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
469
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
470
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
471
+  (9.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
472
+  (1.5ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
473
+  (1.5ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
474
+  (0.1ms) select sqlite_version(*)
475
+  (2.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
476
+  (0.1ms) SELECT sql
477
+ FROM sqlite_master
478
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
479
+ UNION ALL
480
+ SELECT sql
481
+ FROM sqlite_temp_master
482
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
483
+
484
+  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
485
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
486
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
487
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
488
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
489
+  (0.1ms) SELECT version FROM "schema_migrations"
490
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
491
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
492
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
493
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
494
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
495
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
496
+  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
497
+  (0.7ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
498
+  (0.1ms) select sqlite_version(*)
499
+  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
500
+  (0.1ms) SELECT sql
501
+ FROM sqlite_master
502
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
503
+ UNION ALL
504
+ SELECT sql
505
+ FROM sqlite_temp_master
506
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
507
+
508
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
509
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
510
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
511
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
512
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
513
+  (0.1ms) SELECT version FROM "schema_migrations"
514
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
515
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
516
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
517
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
518
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
519
+  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
520
+  (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
521
+  (1.2ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
522
+  (0.1ms) select sqlite_version(*)
523
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
524
+  (0.1ms) SELECT sql
525
+ FROM sqlite_master
526
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
527
+ UNION ALL
528
+ SELECT sql
529
+ FROM sqlite_temp_master
530
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
531
+
532
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
533
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
534
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
535
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
536
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
537
+  (0.1ms) SELECT version FROM "schema_migrations"
538
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
539
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
540
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
541
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
542
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
543
+  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
544
+  (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
545
+  (1.2ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
546
+  (0.1ms) select sqlite_version(*)
547
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
548
+  (0.1ms) SELECT sql
549
+ FROM sqlite_master
550
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
551
+ UNION ALL
552
+ SELECT sql
553
+ FROM sqlite_temp_master
554
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
555
+
556
+  (0.7ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
557
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
558
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
559
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
560
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
561
+  (0.1ms) SELECT version FROM "schema_migrations"
562
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
563
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
564
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
565
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
566
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
567
+  (9.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
568
+  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
569
+  (0.8ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
570
+  (0.1ms) select sqlite_version(*)
571
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
572
+  (0.1ms) SELECT sql
573
+ FROM sqlite_master
574
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
575
+ UNION ALL
576
+ SELECT sql
577
+ FROM sqlite_temp_master
578
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
579
+
580
+  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
581
+  (1.1ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
582
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
583
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
584
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
585
+  (0.1ms) SELECT version FROM "schema_migrations"
586
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
587
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
588
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
589
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
590
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
591
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
592
+  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
593
+  (0.8ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
594
+  (0.1ms) select sqlite_version(*)
595
+  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
596
+  (0.1ms) SELECT sql
597
+ FROM sqlite_master
598
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
599
+ UNION ALL
600
+ SELECT sql
601
+ FROM sqlite_temp_master
602
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
603
+
604
+  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
605
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
606
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
607
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
608
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
609
+  (0.1ms) SELECT version FROM "schema_migrations"
610
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
611
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
612
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
613
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
614
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
615
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
616
+  (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
617
+  (0.9ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
618
+  (0.1ms) select sqlite_version(*)
619
+  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
620
+  (0.1ms) SELECT sql
621
+ FROM sqlite_master
622
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
623
+ UNION ALL
624
+ SELECT sql
625
+ FROM sqlite_temp_master
626
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
627
+
628
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
629
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
630
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
631
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
632
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
633
+  (0.1ms) SELECT version FROM "schema_migrations"
634
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
635
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
636
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
637
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
638
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
639
+  (8.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
640
+  (1.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
641
+  (1.2ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
642
+  (0.1ms) select sqlite_version(*)
643
+  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
644
+  (0.1ms) SELECT sql
645
+ FROM sqlite_master
646
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
647
+ UNION ALL
648
+ SELECT sql
649
+ FROM sqlite_temp_master
650
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
651
+
652
+  (0.7ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
653
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
654
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
655
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
656
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
657
+  (0.1ms) SELECT version FROM "schema_migrations"
658
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
659
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
660
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
661
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
662
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
663
+ NotifyWith::NotificationType Load (0.6ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
664
+  (0.1ms) begin transaction
665
+ SQL (1.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:30:05.932879"], ["updated_at", "2015-10-28 11:30:05.932879"]]
666
+  (0.9ms) commit transaction
667
+ NotifyWith::Notification Load (8.4ms) SELECT "notifications".* FROM "notifications"
668
+ NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types"
669
+  (0.0ms) begin transaction
670
+ SQL (8.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:31:22.297527"], ["updated_at", "2015-10-28 11:31:22.297527"]]
671
+  (1.0ms) commit transaction
672
+  (0.0ms) begin transaction
673
+ SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:31:22.316635"], ["updated_at", "2015-10-28 11:31:22.316635"]]
674
+  (0.9ms) commit transaction
675
+  (0.1ms) begin transaction
676
+ SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:31:22.320784"], ["updated_at", "2015-10-28 11:31:22.320784"]]
677
+  (0.8ms) commit transaction
678
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
679
+  (1.0ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
680
+  (1.0ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
681
+  (0.1ms) select sqlite_version(*)
682
+  (1.3ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
683
+  (0.1ms) SELECT sql
684
+ FROM sqlite_master
685
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
686
+ UNION ALL
687
+ SELECT sql
688
+ FROM sqlite_temp_master
689
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
690
+
691
+  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
692
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
693
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
694
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
695
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
696
+  (0.1ms) SELECT version FROM "schema_migrations"
697
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
698
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
699
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
700
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
701
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
702
+  (8.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
703
+  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
704
+  (0.9ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
705
+  (0.1ms) select sqlite_version(*)
706
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
707
+  (0.1ms) SELECT sql
708
+ FROM sqlite_master
709
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
710
+ UNION ALL
711
+ SELECT sql
712
+ FROM sqlite_temp_master
713
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
714
+
715
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
716
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
717
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
718
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
719
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
720
+  (0.1ms) SELECT version FROM "schema_migrations"
721
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
722
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
723
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
724
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
725
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
726
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
727
+  (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
728
+  (1.0ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
729
+  (0.1ms) select sqlite_version(*)
730
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
731
+  (0.1ms) SELECT sql
732
+ FROM sqlite_master
733
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
734
+ UNION ALL
735
+ SELECT sql
736
+ FROM sqlite_temp_master
737
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
738
+
739
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
740
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
741
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
742
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
743
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
744
+  (0.1ms) SELECT version FROM "schema_migrations"
745
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
746
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
747
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
748
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
749
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
750
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
751
+  (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
752
+  (1.0ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
753
+  (0.1ms) select sqlite_version(*)
754
+  (1.2ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
755
+  (0.1ms) SELECT sql
756
+ FROM sqlite_master
757
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
758
+ UNION ALL
759
+ SELECT sql
760
+ FROM sqlite_temp_master
761
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
762
+
763
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
764
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
765
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
766
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
767
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
768
+  (0.1ms) SELECT version FROM "schema_migrations"
769
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
770
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
771
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
772
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
773
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
774
+  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
775
+  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
776
+  (0.8ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
777
+  (0.1ms) select sqlite_version(*)
778
+  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
779
+  (0.1ms) SELECT sql
780
+ FROM sqlite_master
781
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
782
+ UNION ALL
783
+ SELECT sql
784
+ FROM sqlite_temp_master
785
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
786
+
787
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
788
+  (1.0ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
789
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
790
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
791
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
792
+  (0.1ms) SELECT version FROM "schema_migrations"
793
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
794
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
795
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
796
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
797
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
798
+ NotifyWith::Notification Load (1.2ms) SELECT "notifications".* FROM "notifications" ORDER BY "notifications"."id" DESC LIMIT 1
799
+ NotifyWith::NotificationType Load (0.5ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]
800
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
801
+  (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
802
+  (1.2ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
803
+  (0.1ms) select sqlite_version(*)
804
+  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
805
+  (0.1ms) SELECT sql
806
+ FROM sqlite_master
807
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
808
+ UNION ALL
809
+ SELECT sql
810
+ FROM sqlite_temp_master
811
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
812
+
813
+  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
814
+  (0.9ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
815
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
816
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
817
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
818
+  (0.1ms) SELECT version FROM "schema_migrations"
819
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')
820
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
821
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
822
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')
823
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353')
824
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
825
+  (0.2ms) select sqlite_version(*)
826
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
827
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
828
+ Migrating to CreateUsers (20150213150625)
829
+  (0.1ms) begin transaction
830
+  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
831
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
832
+  (0.9ms) commit transaction
833
+ Migrating to CreateMessages (20150213152846)
834
+  (0.1ms) begin transaction
835
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
836
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
837
+  (0.8ms) commit transaction
838
+ Migrating to CreateNotifications (20151028110352)
839
+  (0.1ms) begin transaction
840
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
841
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
842
+  (0.8ms) commit transaction
843
+ Migrating to CreateNotificationTypes (20151028110353)
844
+  (0.1ms) begin transaction
845
+  (0.6ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
846
+  (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")
847
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
848
+  (1.9ms) commit transaction
849
+ Migrating to CreateNotificationTypesReceivers (20151028111239)
850
+  (0.3ms) begin transaction
851
+  (0.4ms) CREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
852
+  (0.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")
853
+  (0.1ms)  SELECT sql
854
+ FROM sqlite_master
855
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
856
+ UNION ALL
857
+ SELECT sql
858
+ FROM sqlite_temp_master
859
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
860
+ 
861
+  (0.2ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")
862
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028111239"]]
863
+  (2.2ms) commit transaction
864
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
865
+  (0.1ms) SELECT sql
866
+ FROM sqlite_master
867
+ WHERE name='index_notification_types_on_name' AND type='index'
868
+ UNION ALL
869
+ SELECT sql
870
+ FROM sqlite_temp_master
871
+ WHERE name='index_notification_types_on_name' AND type='index'
872
+
873
+  (0.1ms)  SELECT sql
874
+ FROM sqlite_master
875
+ WHERE name='idx_notif_typ_receiv_on_receiver_type_and_receiver_id' AND type='index'
876
+ UNION ALL
877
+ SELECT sql
878
+ FROM sqlite_temp_master
879
+ WHERE name='idx_notif_typ_receiv_on_receiver_type_and_receiver_id' AND type='index'
880
+ 
881
+  (0.1ms) SELECT sql
882
+ FROM sqlite_master
883
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
884
+ UNION ALL
885
+ SELECT sql
886
+ FROM sqlite_temp_master
887
+ WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index'
888
+
889
+  (0.1ms) begin transaction
890
+ NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'a' LIMIT 1
891
+ SQL (0.9ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2015-10-28 13:45:47.245772"], ["updated_at", "2015-10-28 13:45:47.245772"]]
892
+  (0.9ms) commit transaction
893
+  (0.1ms) begin transaction
894
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'a' LIMIT 1
895
+  (0.1ms) rollback transaction
896
+  (0.1ms) begin transaction
897
+ NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_lala' LIMIT 1
898
+ SQL (1.0ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_test_lala"], ["created_at", "2015-10-28 14:21:56.782493"], ["updated_at", "2015-10-28 14:21:56.782493"]]
899
+  (0.8ms) commit transaction
900
+ NotifyWith::NotificationType Load (1.4ms) SELECT "notification_types".* FROM "notification_types"
901
+  (0.1ms) begin transaction
902
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_lolo' LIMIT 1
903
+ SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_test_lolo"], ["created_at", "2015-10-28 14:29:03.064802"], ["updated_at", "2015-10-28 14:29:03.064802"]]
904
+  (0.9ms) commit transaction
905
+  (0.1ms) begin transaction
906
+ NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_lolo' LIMIT 1
907
+  (0.1ms) rollback transaction
908
+  (0.1ms) begin transaction
909
+ NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_loli' LIMIT 1
910
+ SQL (8.8ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_test_loli"], ["created_at", "2015-10-28 14:29:42.489701"], ["updated_at", "2015-10-28 14:29:42.489701"]]
911
+  (1.1ms) commit transaction
912
+  (0.1ms) begin transaction
913
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_lolaaa' LIMIT 1
914
+ SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_test_lolaaa"], ["created_at", "2015-10-28 14:30:10.139389"], ["updated_at", "2015-10-28 14:30:10.139389"]]
915
+  (0.9ms) commit transaction
916
+  (0.1ms) begin transaction
917
+ NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_lolweweg' LIMIT 1
918
+ SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_test_lolweweg"], ["created_at", "2015-10-28 14:30:33.736321"], ["updated_at", "2015-10-28 14:30:33.736321"]]
919
+  (0.7ms) commit transaction
920
+  (0.1ms) begin transaction
921
+ NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1
922
+ SQL (1.0ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:49.549712"], ["updated_at", "2015-10-28 14:32:49.549712"]]
923
+  (0.7ms) commit transaction
924
+  (0.1ms) begin transaction
925
+ NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_test_lili' LIMIT 1
926
+ SQL (1.0ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_test_lili"], ["created_at", "2015-10-28 14:34:18.740355"], ["updated_at", "2015-10-28 14:34:18.740355"]]
927
+  (0.8ms) commit transaction
928
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
929
+  (0.1ms) select sqlite_version(*)
930
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
931
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
932
+ Migrating to CreateUsers (20150213150625)
933
+  (0.1ms) begin transaction
934
+  (7.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
935
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
936
+  (0.9ms) commit transaction
937
+ Migrating to CreateMessages (20150213152846)
938
+  (0.2ms) begin transaction
939
+  (0.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
940
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
941
+  (2.2ms) commit transaction
942
+ Migrating to CreateNotifications (20151028110352)
943
+  (0.1ms) begin transaction
944
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
945
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
946
+  (2.8ms) commit transaction
947
+ Migrating to CreateNotificationTypes (20151028110353)
948
+  (0.1ms) begin transaction
949
+  (0.6ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
950
+  (0.6ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")
951
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
952
+  (0.9ms) commit transaction
953
+ Migrating to CreateNotificationTypeConfigurations (20151028111239)
954
+  (8.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
955
+  (0.1ms) select sqlite_version(*)
956
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
957
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
958
+ Migrating to CreateUsers (20150213150625)
959
+  (0.1ms) begin transaction
960
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
961
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
962
+  (1.1ms) commit transaction
963
+ Migrating to CreateMessages (20150213152846)
964
+  (0.2ms) begin transaction
965
+  (0.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
966
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
967
+  (2.1ms) commit transaction
968
+ Migrating to CreateNotifications (20151028110352)
969
+  (0.1ms) begin transaction
970
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
971
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
972
+  (1.2ms) commit transaction
973
+ Migrating to CreateNotificationTypes (20151028110353)
974
+  (0.1ms) begin transaction
975
+  (0.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
976
+  (0.3ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")
977
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
978
+  (2.1ms) commit transaction
979
+ Migrating to CreateNotificationTypeConfigurations (20151028111239)
980
+  (0.1ms) begin transaction
981
+  (1.1ms) CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
982
+  (0.2ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")
983
+  (0.1ms)  SELECT sql
984
+ FROM sqlite_master
985
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
986
+ UNION ALL
987
+ SELECT sql
988
+ FROM sqlite_temp_master
989
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
990
+ 
991
+  (0.5ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")
992
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028111239"]]
993
+  (0.9ms) commit transaction
994
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
995
+  (0.4ms) SELECT sql
996
+ FROM sqlite_master
997
+ WHERE name='idx_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
998
+ UNION ALL
999
+ SELECT sql
1000
+ FROM sqlite_temp_master
1001
+ WHERE name='idx_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1002
+
1003
+  (0.4ms)  SELECT sql
1004
+ FROM sqlite_master
1005
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1006
+ UNION ALL
1007
+ SELECT sql
1008
+ FROM sqlite_temp_master
1009
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1010
+ 
1011
+  (0.4ms) SELECT sql
1012
+ FROM sqlite_master
1013
+ WHERE name='index_notification_types_on_name' AND type='index'
1014
+ UNION ALL
1015
+ SELECT sql
1016
+ FROM sqlite_temp_master
1017
+ WHERE name='index_notification_types_on_name' AND type='index'
1018
+
1019
+ User Load (2.5ms) SELECT "users".* FROM "users"
1020
+ NotifyWith::NotificationType Load (2.2ms) SELECT "notification_types".* FROM "notification_types"
1021
+  (0.1ms) begin transaction
1022
+ NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'bob' LIMIT 1
1023
+ SQL (0.8ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bob"], ["created_at", "2015-10-28 15:41:20.514388"], ["updated_at", "2015-10-28 15:41:20.514388"]]
1024
+  (0.4ms) rollback transaction
1025
+  (0.0ms) begin transaction
1026
+ NotifyWith::NotificationType Exists (8.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'bob' LIMIT 1
1027
+ SQL (2.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bob"], ["created_at", "2015-10-28 15:41:31.395237"], ["updated_at", "2015-10-28 15:41:31.395237"]]
1028
+  (1.0ms) commit transaction
1029
+  (0.1ms) begin transaction
1030
+ SQL (8.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-28 15:41:48.043555"], ["updated_at", "2015-10-28 15:41:48.043555"]]
1031
+  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"
1032
+ SQL (1.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 15:41:48.068990"], ["updated_at", "2015-10-28 15:41:48.068990"]]
1033
+  (0.8ms) commit transaction
1034
+  (0.1ms) begin transaction
1035
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'bobi' LIMIT 1
1036
+ SQL (1.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bobi"], ["created_at", "2015-10-28 15:42:00.830743"], ["updated_at", "2015-10-28 15:42:00.830743"]]
1037
+  (8.2ms) commit transaction
1038
+  (0.1ms) begin transaction
1039
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-28 15:42:06.381439"], ["updated_at", "2015-10-28 15:42:06.381439"]]
1040
+  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"
1041
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 15:42:06.383928"], ["updated_at", "2015-10-28 15:42:06.383928"]]
1042
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 15:42:06.385259"], ["updated_at", "2015-10-28 15:42:06.385259"]]
1043
+  (8.2ms) commit transaction
1044
+  (0.1ms) begin transaction
1045
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-28 15:42:07.885524"], ["updated_at", "2015-10-28 15:42:07.885524"]]
1046
+  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"
1047
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-28 15:42:07.888010"], ["updated_at", "2015-10-28 15:42:07.888010"]]
1048
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-28 15:42:07.889351"], ["updated_at", "2015-10-28 15:42:07.889351"]]
1049
+  (8.2ms) commit transaction
1050
+  (0.1ms) begin transaction
1051
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-28 15:42:08.293551"], ["updated_at", "2015-10-28 15:42:08.293551"]]
1052
+  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"
1053
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-28 15:42:08.296045"], ["updated_at", "2015-10-28 15:42:08.296045"]]
1054
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-28 15:42:08.297359"], ["updated_at", "2015-10-28 15:42:08.297359"]]
1055
+  (9.2ms) commit transaction
1056
+  (0.1ms) begin transaction
1057
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'bobi' LIMIT 1
1058
+  (0.1ms) rollback transaction
1059
+  (0.1ms) begin transaction
1060
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'bobii' LIMIT 1
1061
+ SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bobii"], ["created_at", "2015-10-28 15:42:13.758832"], ["updated_at", "2015-10-28 15:42:13.758832"]]
1062
+  (8.9ms) commit transaction
1063
+ User Load (2.1ms) SELECT "users".* FROM "users"
1064
+  (0.1ms) begin transaction
1065
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'lili' LIMIT 1
1066
+ SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "lili"], ["created_at", "2015-10-28 15:42:58.470760"], ["updated_at", "2015-10-28 15:42:58.470760"]]
1067
+  (0.5ms) rollback transaction
1068
+  (0.1ms) begin transaction
1069
+ NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'lili' LIMIT 1
1070
+ SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "lili"], ["created_at", "2015-10-28 15:43:19.999413"], ["updated_at", "2015-10-28 15:43:19.999413"]]
1071
+  (0.8ms) commit transaction
1072
+ NotifyWith::NotificationType Load (2.0ms) SELECT "notification_types".* FROM "notification_types"
1073
+  (0.1ms) begin transaction
1074
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'lilii' LIMIT 1
1075
+ SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "lilii"], ["created_at", "2015-10-28 15:44:10.096843"], ["updated_at", "2015-10-28 15:44:10.096843"]]
1076
+  (0.1ms) SELECT "users"."id" FROM "users"
1077
+ SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 5], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 15:44:10.116184"], ["updated_at", "2015-10-28 15:44:10.116184"]]
1078
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 5], ["receiver_type", "User"], ["receiver_id", 2], ["created_at", "2015-10-28 15:44:10.117853"], ["updated_at", "2015-10-28 15:44:10.117853"]]
1079
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 5], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2015-10-28 15:44:10.119057"], ["updated_at", "2015-10-28 15:44:10.119057"]]
1080
+ SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 5], ["receiver_type", "User"], ["receiver_id", 4], ["created_at", "2015-10-28 15:44:10.120664"], ["updated_at", "2015-10-28 15:44:10.120664"]]
1081
+  (1.6ms) commit transaction
1082
+ NotifyWith::NotificationTypeConfiguration Load (0.6ms) SELECT "notification_type_configurations".* FROM "notification_type_configurations" ORDER BY "notification_type_configurations"."id" ASC LIMIT 1
1083
+  (0.3ms) begin transaction
1084
+ SQL (0.6ms) UPDATE "notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "notification_type_configurations"."id" = ? [["value", 0], ["updated_at", "2015-10-28 15:58:07.046518"], ["id", 1]]
1085
+  (0.7ms) commit transaction
1086
+ NotifyWith::NotificationTypeConfiguration Load (0.3ms) SELECT "notification_type_configurations".* FROM "notification_type_configurations" WHERE "notification_type_configurations"."id" = ? LIMIT 1 [["id", 1]]
1087
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1088
+  (0.1ms) select sqlite_version(*)
1089
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1090
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1091
+ Migrating to CreateUsers (20150213150625)
1092
+  (0.1ms) begin transaction
1093
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1094
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1095
+  (0.8ms) commit transaction
1096
+ Migrating to CreateMessages (20150213152846)
1097
+  (0.1ms) begin transaction
1098
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1099
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1100
+  (0.7ms) commit transaction
1101
+ Migrating to CreateNotifications (20151028110352)
1102
+  (0.1ms) begin transaction
1103
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1104
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
1105
+  (0.7ms) commit transaction
1106
+ Migrating to CreateNotificationTypes (20151028110353)
1107
+  (0.1ms) begin transaction
1108
+  (0.6ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1109
+  (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")
1110
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
1111
+  (1.7ms) commit transaction
1112
+ Migrating to CreateNotificationTypeConfigurations (20151028111239)
1113
+  (0.1ms) begin transaction
1114
+  (0.4ms) CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1115
+  (0.1ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")
1116
+  (0.1ms)  SELECT sql
1117
+ FROM sqlite_master
1118
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1119
+ UNION ALL
1120
+ SELECT sql
1121
+ FROM sqlite_temp_master
1122
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1123
+ 
1124
+  (0.2ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")
1125
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028111239"]]
1126
+  (1.2ms) commit transaction
1127
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1128
+  (0.1ms) SELECT sql
1129
+ FROM sqlite_master
1130
+ WHERE name='idx_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1131
+ UNION ALL
1132
+ SELECT sql
1133
+ FROM sqlite_temp_master
1134
+ WHERE name='idx_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1135
+
1136
+  (0.3ms)  SELECT sql
1137
+ FROM sqlite_master
1138
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1139
+ UNION ALL
1140
+ SELECT sql
1141
+ FROM sqlite_temp_master
1142
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1143
+ 
1144
+  (0.1ms) SELECT sql
1145
+ FROM sqlite_master
1146
+ WHERE name='index_notification_types_on_name' AND type='index'
1147
+ UNION ALL
1148
+ SELECT sql
1149
+ FROM sqlite_temp_master
1150
+ WHERE name='index_notification_types_on_name' AND type='index'
1151
+
1152
+  (0.1ms) begin transaction
1153
+ NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'a' LIMIT 1
1154
+ SQL (0.6ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2015-10-28 15:59:04.640933"], ["updated_at", "2015-10-28 15:59:04.640933"]]
1155
+  (0.1ms) SELECT "users"."id" FROM "users"
1156
+  (1.5ms) commit transaction
1157
+  (0.1ms) begin transaction
1158
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-28 15:59:08.282334"], ["updated_at", "2015-10-28 15:59:08.282334"]]
1159
+  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"
1160
+ SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 15:59:08.309892"], ["updated_at", "2015-10-28 15:59:08.309892"]]
1161
+  (1.0ms) commit transaction
1162
+ NotifyWith::NotificationTypeConfiguration Load (0.3ms) SELECT "notification_type_configurations".* FROM "notification_type_configurations" ORDER BY "notification_type_configurations"."id" ASC LIMIT 1
1163
+  (9.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1164
+  (0.1ms) select sqlite_version(*)
1165
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1166
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1167
+ Migrating to CreateUsers (20150213150625)
1168
+  (0.1ms) begin transaction
1169
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1170
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1171
+  (0.8ms) commit transaction
1172
+ Migrating to CreateMessages (20150213152846)
1173
+  (0.1ms) begin transaction
1174
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1175
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1176
+  (0.7ms) commit transaction
1177
+ Migrating to CreateNotifications (20151028110352)
1178
+  (0.1ms) begin transaction
1179
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1180
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
1181
+  (0.7ms) commit transaction
1182
+ Migrating to CreateNotificationTypes (20151028110353)
1183
+  (0.1ms) begin transaction
1184
+  (0.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1185
+  (0.3ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")
1186
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
1187
+  (0.9ms) commit transaction
1188
+ Migrating to CreateNotificationTypeConfigurations (20151028111239)
1189
+  (0.1ms) begin transaction
1190
+  (0.3ms) CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1191
+  (0.1ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")
1192
+  (0.1ms)  SELECT sql
1193
+ FROM sqlite_master
1194
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1195
+ UNION ALL
1196
+ SELECT sql
1197
+ FROM sqlite_temp_master
1198
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1199
+ 
1200
+  (0.1ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")
1201
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028111239"]]
1202
+  (0.8ms) commit transaction
1203
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1204
+  (0.1ms) SELECT sql
1205
+ FROM sqlite_master
1206
+ WHERE name='idx_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1207
+ UNION ALL
1208
+ SELECT sql
1209
+ FROM sqlite_temp_master
1210
+ WHERE name='idx_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1211
+
1212
+  (0.1ms)  SELECT sql
1213
+ FROM sqlite_master
1214
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1215
+ UNION ALL
1216
+ SELECT sql
1217
+ FROM sqlite_temp_master
1218
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1219
+ 
1220
+  (0.1ms) SELECT sql
1221
+ FROM sqlite_master
1222
+ WHERE name='index_notification_types_on_name' AND type='index'
1223
+ UNION ALL
1224
+ SELECT sql
1225
+ FROM sqlite_temp_master
1226
+ WHERE name='index_notification_types_on_name' AND type='index'
1227
+
1228
+  (0.1ms) begin transaction
1229
+ NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'a' LIMIT 1
1230
+ SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2015-10-28 16:47:44.733039"], ["updated_at", "2015-10-28 16:47:44.733039"]]
1231
+  (0.1ms) SELECT "users"."id" FROM "users"
1232
+  (8.0ms) commit transaction
1233
+ NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" ORDER BY "notification_types"."id" DESC LIMIT 1
1234
+  (0.3ms) begin transaction
1235
+  (0.1ms) rollback transaction
1236
+  (0.1ms) begin transaction
1237
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-28 16:50:16.353740"], ["updated_at", "2015-10-28 16:50:16.353740"]]
1238
+  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"
1239
+ SQL (9.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:50:16.364063"], ["updated_at", "2015-10-28 16:50:16.364063"]]
1240
+  (1.0ms) commit transaction
1241
+  (0.1ms) begin transaction
1242
+ SQL (8.2ms) INSERT INTO "notifications" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:50:20.445651"], ["updated_at", "2015-10-28 16:50:20.445651"]]
1243
+  (0.9ms) commit transaction
1244
+ SQL (1.4ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]
1245
+ SQL (9.4ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]
1246
+ SQL (1.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]
1247
+ SQL (8.9ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]
1248
+ SQL (9.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]
1249
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1250
+  (0.1ms) select sqlite_version(*)
1251
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1252
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1253
+ Migrating to CreateUsers (20150213150625)
1254
+  (0.1ms) begin transaction
1255
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1256
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1257
+  (0.8ms) commit transaction
1258
+ Migrating to CreateMessages (20150213152846)
1259
+  (0.1ms) begin transaction
1260
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1261
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1262
+  (0.8ms) commit transaction
1263
+ Migrating to CreateNotifications (20151028110352)
1264
+  (0.1ms) begin transaction
1265
+  (0.4ms) CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1266
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110352"]]
1267
+  (0.8ms) commit transaction
1268
+ Migrating to CreateNotificationTypes (20151028110353)
1269
+  (0.1ms) begin transaction
1270
+  (0.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1271
+  (0.3ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")
1272
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028110353"]]
1273
+  (1.1ms) commit transaction
1274
+ Migrating to CreateNotificationTypeConfigurations (20151028111239)
1275
+  (0.1ms) begin transaction
1276
+  (0.4ms) CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1277
+  (0.1ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")
1278
+  (0.1ms)  SELECT sql
1279
+ FROM sqlite_master
1280
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1281
+ UNION ALL
1282
+ SELECT sql
1283
+ FROM sqlite_temp_master
1284
+ WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index'
1285
+ 
1286
+  (0.1ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")
1287
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028111239"]]
1288
+  (0.8ms) commit transaction
1289
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029113254)
1290
+  (0.0ms) begin transaction
1291
+  (0.3ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1292
+  (0.4ms) rollback transaction
1293
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1294
+  (0.1ms) select sqlite_version(*)
1295
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1296
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1297
+ Migrating to CreateUsers (20150213150625)
1298
+  (0.1ms) begin transaction
1299
+  (2.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1300
+ SQL (5.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1301
+  (2.1ms) commit transaction
1302
+ Migrating to CreateMessages (20150213152846)
1303
+  (0.1ms) begin transaction
1304
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1305
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1306
+  (0.7ms) commit transaction
1307
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029113254)
1308
+  (0.1ms) begin transaction
1309
+  (0.4ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1310
+  (0.4ms) rollback transaction
1311
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1312
+  (0.1ms) select sqlite_version(*)
1313
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1314
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1315
+ Migrating to CreateUsers (20150213150625)
1316
+  (0.1ms) begin transaction
1317
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1318
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1319
+  (0.8ms) commit transaction
1320
+ Migrating to CreateMessages (20150213152846)
1321
+  (0.1ms) begin transaction
1322
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1323
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1324
+  (1.6ms) commit transaction
1325
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029113657)
1326
+  (0.1ms) begin transaction
1327
+  (0.5ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1328
+  (0.2ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")
1329
+  (0.1ms) SELECT sql
1330
+ FROM sqlite_master
1331
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1332
+ UNION ALL
1333
+ SELECT sql
1334
+ FROM sqlite_temp_master
1335
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1336
+
1337
+  (1.1ms) CREATE UNIQUE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")
1338
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113657"]]
1339
+  (0.9ms) commit transaction
1340
+ Migrating to CreateWupeeNotifications (20151029113658)
1341
+  (0.1ms) begin transaction
1342
+  (0.6ms) CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1343
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113658"]]
1344
+  (2.0ms) commit transaction
1345
+ Migrating to CreateWupeeNotificationTypes (20151029113659)
1346
+  (0.1ms) begin transaction
1347
+  (1.7ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1348
+  (1.6ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")
1349
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113659"]]
1350
+  (17.1ms) commit transaction
1351
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1352
+  (0.3ms) SELECT sql
1353
+ FROM sqlite_master
1354
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1355
+ UNION ALL
1356
+ SELECT sql
1357
+ FROM sqlite_temp_master
1358
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1359
+
1360
+  (0.1ms)  SELECT sql
1361
+ FROM sqlite_master
1362
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1363
+ UNION ALL
1364
+ SELECT sql
1365
+ FROM sqlite_temp_master
1366
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1367
+ 
1368
+  (0.1ms) SELECT sql
1369
+ FROM sqlite_master
1370
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1371
+ UNION ALL
1372
+ SELECT sql
1373
+ FROM sqlite_temp_master
1374
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1375
+
1376
+  (0.1ms) begin transaction
1377
+ Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'a' LIMIT 1
1378
+ SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2015-10-29 11:40:03.224947"], ["updated_at", "2015-10-29 11:40:03.224947"]]
1379
+  (0.3ms) SELECT "users"."id" FROM "users"
1380
+  (1.6ms) commit transaction
1381
+  (0.1ms) begin transaction
1382
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-29 11:40:09.743366"], ["updated_at", "2015-10-29 11:40:09.743366"]]
1383
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
1384
+  (0.5ms) rollback transaction
1385
+  (0.0ms) begin transaction
1386
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-29 11:43:42.731619"], ["updated_at", "2015-10-29 11:43:42.731619"]]
1387
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
1388
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1 AND "wupee_notification_type_configurations"."receiver_type" = 'User') LIMIT 1
1389
+ SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 11:43:42.750097"], ["updated_at", "2015-10-29 11:43:42.750097"]]
1390
+  (1.2ms) commit transaction
1391
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"
1392
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
1393
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" ASC LIMIT 1
1394
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
1395
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" ASC LIMIT 1
1396
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1 AND "wupee_notification_type_configurations"."receiver_type" = 'User') LIMIT 1
1397
+  (0.1ms) begin transaction
1398
+ Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
1399
+ SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 15:01:45.428712"], ["updated_at", "2015-10-29 15:01:45.428712"]]
1400
+  (0.5ms) SELECT "users"."id" FROM "users"
1401
+ Wupee::NotificationTypeConfiguration Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 2 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1402
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1403
+ SQL (1.9ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:01:45.480529"], ["updated_at", "2015-10-29 15:01:45.480529"]]
1404
+ SQLite3::ConstraintException: UNIQUE constraint failed: wupee_notification_type_configurations.receiver_type, wupee_notification_type_configurations.receiver_id: INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)
1405
+  (0.6ms) rollback transaction
1406
+ Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"
1407
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types"
1408
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
1409
+  (0.1ms) begin transaction
1410
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
1411
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 15:02:48.748475"], ["updated_at", "2015-10-29 15:02:48.748475"]]
1412
+  (0.1ms) SELECT "users"."id" FROM "users"
1413
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 2 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1415
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:02:48.752975"], ["updated_at", "2015-10-29 15:02:48.752975"]]
1416
+ SQLite3::ConstraintException: UNIQUE constraint failed: wupee_notification_type_configurations.receiver_type, wupee_notification_type_configurations.receiver_id: INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)
1417
+  (8.6ms) rollback transaction
1418
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1419
+  (0.1ms) select sqlite_version(*)
1420
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1421
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1422
+ Migrating to CreateUsers (20150213150625)
1423
+  (0.1ms) begin transaction
1424
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1425
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1426
+  (1.1ms) commit transaction
1427
+ Migrating to CreateMessages (20150213152846)
1428
+  (0.1ms) begin transaction
1429
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1430
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1431
+  (0.7ms) commit transaction
1432
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029150400)
1433
+  (0.1ms) begin transaction
1434
+  (0.4ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1435
+  (0.1ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")
1436
+  (0.1ms) SELECT sql
1437
+ FROM sqlite_master
1438
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1439
+ UNION ALL
1440
+ SELECT sql
1441
+ FROM sqlite_temp_master
1442
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1443
+
1444
+  (0.1ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")
1445
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029150400"]]
1446
+  (1.3ms) commit transaction
1447
+ Migrating to CreateWupeeNotifications (20151029150401)
1448
+  (0.1ms) begin transaction
1449
+  (1.2ms) CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1450
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029150401"]]
1451
+  (1.7ms) commit transaction
1452
+ Migrating to CreateWupeeNotificationTypes (20151029150402)
1453
+  (0.1ms) begin transaction
1454
+  (0.6ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1455
+  (0.5ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")
1456
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029150402"]]
1457
+  (1.1ms) commit transaction
1458
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1459
+  (0.4ms) SELECT sql
1460
+ FROM sqlite_master
1461
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1462
+ UNION ALL
1463
+ SELECT sql
1464
+ FROM sqlite_temp_master
1465
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1466
+
1467
+  (0.4ms)  SELECT sql
1468
+ FROM sqlite_master
1469
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1470
+ UNION ALL
1471
+ SELECT sql
1472
+ FROM sqlite_temp_master
1473
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1474
+ 
1475
+  (0.3ms) SELECT sql
1476
+ FROM sqlite_master
1477
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1478
+ UNION ALL
1479
+ SELECT sql
1480
+ FROM sqlite_temp_master
1481
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1482
+
1483
+  (0.1ms) begin transaction
1484
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
1485
+ SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 15:04:28.121086"], ["updated_at", "2015-10-29 15:04:28.121086"]]
1486
+  (0.2ms) SELECT "users"."id" FROM "users"
1487
+  (2.2ms) commit transaction
1488
+  (0.1ms) begin transaction
1489
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-29 15:04:40.674502"], ["updated_at", "2015-10-29 15:04:40.674502"]]
1490
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
1491
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
1492
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1493
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 15:04:40.709574"], ["updated_at", "2015-10-29 15:04:40.709574"]]
1494
+  (0.9ms) commit transaction
1495
+ Wupee::NotificationType Load (0.7ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "abc"]]
1496
+ Wupee::NotificationType Load (0.8ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "abc"]]
1497
+ Wupee::NotificationType Load (0.8ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "abc"]]
1498
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" ASC LIMIT 1
1499
+  (0.1ms) begin transaction
1500
+ Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'admin_user_created' LIMIT 1
1501
+ SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "admin_user_created"], ["created_at", "2015-10-29 15:53:05.795589"], ["updated_at", "2015-10-29 15:53:05.795589"]]
1502
+  (0.9ms) SELECT "users"."id" FROM "users"
1503
+ Wupee::NotificationTypeConfiguration Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 2 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1504
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1505
+ SQL (0.9ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:53:05.850586"], ["updated_at", "2015-10-29 15:53:05.850586"]]
1506
+  (0.9ms) commit transaction
1507
+  (0.1ms) begin transaction
1508
+ Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'admin_user_created' LIMIT 1
1509
+  (0.1ms) rollback transaction
1510
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1511
+  (0.1ms) select sqlite_version(*)
1512
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1513
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1514
+ Migrating to CreateUsers (20150213150625)
1515
+  (0.1ms) begin transaction
1516
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1517
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1518
+  (1.0ms) commit transaction
1519
+ Migrating to CreateMessages (20150213152846)
1520
+  (0.1ms) begin transaction
1521
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1522
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1523
+  (0.8ms) commit transaction
1524
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1525
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1526
+  (0.1ms) select sqlite_version(*)
1527
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1528
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1529
+ Migrating to CreateUsers (20150213150625)
1530
+  (0.1ms) begin transaction
1531
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1532
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1533
+  (1.2ms) commit transaction
1534
+ Migrating to CreateMessages (20150213152846)
1535
+  (0.1ms) begin transaction
1536
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1537
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1538
+  (0.8ms) commit transaction
1539
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029155722)
1540
+  (0.1ms) begin transaction
1541
+  (0.9ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1542
+  (0.6ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")
1543
+  (0.3ms) SELECT sql
1544
+ FROM sqlite_master
1545
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1546
+ UNION ALL
1547
+ SELECT sql
1548
+ FROM sqlite_temp_master
1549
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1550
+
1551
+  (0.3ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")
1552
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029155722"]]
1553
+  (1.1ms) commit transaction
1554
+ Migrating to CreateWupeeNotifications (20151029155723)
1555
+  (0.1ms) begin transaction
1556
+  (1.2ms) CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1557
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029155723"]]
1558
+  (1.3ms) commit transaction
1559
+ Migrating to CreateWupeeNotificationTypes (20151029155724)
1560
+  (0.1ms) begin transaction
1561
+  (1.1ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1562
+  (0.5ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")
1563
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029155724"]]
1564
+  (3.8ms) commit transaction
1565
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1566
+  (0.8ms) SELECT sql
1567
+ FROM sqlite_master
1568
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1569
+ UNION ALL
1570
+ SELECT sql
1571
+ FROM sqlite_temp_master
1572
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1573
+
1574
+  (0.2ms)  SELECT sql
1575
+ FROM sqlite_master
1576
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1577
+ UNION ALL
1578
+ SELECT sql
1579
+ FROM sqlite_temp_master
1580
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1581
+ 
1582
+  (0.4ms) SELECT sql
1583
+ FROM sqlite_master
1584
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1585
+ UNION ALL
1586
+ SELECT sql
1587
+ FROM sqlite_temp_master
1588
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1589
+
1590
+  (0.1ms) begin transaction
1591
+ Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'admin_user_created' LIMIT 1
1592
+ SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "admin_user_created"], ["created_at", "2015-10-29 15:57:33.806956"], ["updated_at", "2015-10-29 15:57:33.806956"]]
1593
+  (0.1ms) SELECT "users"."id" FROM "users"
1594
+  (3.0ms) commit transaction
1595
+ Wupee::NotificationTypeConfiguration Load (0.4ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
1596
+  (0.1ms) begin transaction
1597
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-29 16:27:34.812312"], ["updated_at", "2015-10-29 16:27:34.812312"]]
1598
+  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
1599
+ Wupee::NotificationType Load (0.9ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
1600
+ Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1601
+ SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 16:27:34.852636"], ["updated_at", "2015-10-29 16:27:34.852636"]]
1602
+  (0.9ms) commit transaction
1603
+ Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
1604
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
1605
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
1606
+ Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
1607
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1608
+  (0.1ms) select sqlite_version(*)
1609
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1610
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1611
+ Migrating to CreateUsers (20150213150625)
1612
+  (0.1ms) begin transaction
1613
+  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1614
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
1615
+  (0.8ms) commit transaction
1616
+ Migrating to CreateMessages (20150213152846)
1617
+  (0.1ms) begin transaction
1618
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1619
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
1620
+  (1.1ms) commit transaction
1621
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029164356)
1622
+  (0.2ms) begin transaction
1623
+  (0.6ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1624
+  (0.2ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")
1625
+  (0.1ms) SELECT sql
1626
+ FROM sqlite_master
1627
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1628
+ UNION ALL
1629
+ SELECT sql
1630
+ FROM sqlite_temp_master
1631
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1632
+
1633
+  (0.1ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")
1634
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029164356"]]
1635
+  (0.9ms) commit transaction
1636
+ Migrating to CreateWupeeNotifications (20151029164357)
1637
+  (0.1ms) begin transaction
1638
+  (0.7ms) CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1639
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029164357"]]
1640
+  (1.0ms) commit transaction
1641
+ Migrating to CreateWupeeNotificationTypes (20151029164358)
1642
+  (0.1ms) begin transaction
1643
+  (0.6ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1644
+  (0.7ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")
1645
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029164358"]]
1646
+  (1.2ms) commit transaction
1647
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1648
+  (0.3ms) SELECT sql
1649
+ FROM sqlite_master
1650
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1651
+ UNION ALL
1652
+ SELECT sql
1653
+ FROM sqlite_temp_master
1654
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
1655
+
1656
+  (0.4ms)  SELECT sql
1657
+ FROM sqlite_master
1658
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1659
+ UNION ALL
1660
+ SELECT sql
1661
+ FROM sqlite_temp_master
1662
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
1663
+ 
1664
+  (0.2ms) SELECT sql
1665
+ FROM sqlite_master
1666
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1667
+ UNION ALL
1668
+ SELECT sql
1669
+ FROM sqlite_temp_master
1670
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
1671
+
1672
+  (0.1ms) begin transaction
1673
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 08:59:05.114529"], ["updated_at", "2015-10-30 08:59:05.114529"]]
1674
+  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
1675
+  (0.9ms) commit transaction
1676
+  (0.1ms) begin transaction
1677
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
1678
+ SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 08:59:16.756817"], ["updated_at", "2015-10-30 08:59:16.756817"]]
1679
+  (0.1ms) SELECT "users"."id" FROM "users"
1680
+ Wupee::NotificationTypeConfiguration Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1681
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1682
+ SQL (1.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 08:59:16.791421"], ["updated_at", "2015-10-30 08:59:16.791421"]]
1683
+  (1.4ms) commit transaction
1684
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
1685
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 1
1686
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1)
1687
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
1688
+ Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 1
1689
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1)
1690
+ User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1691
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1692
+  (0.1ms) begin transaction
1693
+ SQL (0.4ms) UPDATE "users" SET "email" = ?, "updated_at" = ? WHERE "users"."id" = ? [["email", "ewfwfe@wefwef.fr"], ["updated_at", "2015-11-02 12:14:35.737753"], ["id", 1]]
1694
+  (0.8ms) commit transaction
1695
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1696
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1697
+ Wupee::NotificationType Load (0.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
1698
+ Wupee::NotificationType Load (7.9ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types"
1699
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1
1700
+  (0.1ms) begin transaction
1701
+ Wupee::NotificationTypeConfiguration Load (0.7ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."notification_type_id" = ? [["notification_type_id", 1]]
1702
+ SQL (0.5ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]]
1703
+ SQL (0.2ms) DELETE FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? [["id", 1]]
1704
+  (1.3ms) commit transaction
1705
+  (0.1ms) begin transaction
1706
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
1707
+ SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 12:15:54.892746"], ["updated_at", "2015-11-02 12:15:54.892746"]]
1708
+  (0.1ms) SELECT "users"."id" FROM "users"
1709
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 2 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
1710
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1711
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 2], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 12:15:54.902152"], ["updated_at", "2015-11-02 12:15:54.902152"]]
1712
+  (1.0ms) commit transaction
1713
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1714
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1715
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
1716
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 1 AND "wupee_notification_type_configurations"."notification_type_id" = 2
1717
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1)
1718
+  (0.1ms) begin transaction
1719
+ SQL (0.7ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "attached_object_id", "attached_object_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 2], ["attached_object_id", 1], ["attached_object_type", "User"], ["created_at", "2015-11-02 12:16:19.861829"], ["updated_at", "2015-11-02 12:16:19.861829"]]
1720
+  (0.7ms) commit transaction
1721
+
1722
+ NotificationsMailer#send_mail_for: processed outbound mail in 6.9ms
1723
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1724
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
1725
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
1726
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 1 AND "wupee_notification_type_configurations"."notification_type_id" = 2
1727
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1)
1728
+  (0.1ms) begin transaction
1729
+ SQL (0.5ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "attached_object_id", "attached_object_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 2], ["attached_object_id", 1], ["attached_object_type", "User"], ["created_at", "2015-11-02 13:53:07.880148"], ["updated_at", "2015-11-02 13:53:07.880148"]]
1730
+  (0.8ms) commit transaction
1731
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
1732
+ SQL (1.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 2]]
1733
+
1734
+ NotificationsMailer#send_mail_for: processed outbound mail in 172.4ms
1735
+
1736
+ Sent mail to ewfwfe@wefwef.fr (9.1ms)
1737
+ Date: Mon, 02 Nov 2015 14:53:08 +0100
1738
+ From: contact@sleede.com
1739
+ To: ewfwfe@wefwef.fr
1740
+ Message-ID: <56376ac4efb7_15b4b3fe508c601d8438a4@mbp-sleede-nicolas.home.mail>
1741
+ Subject: notify_new_message ewfwfe@wefwef.fr
1742
+ Mime-Version: 1.0
1743
+ Content-Type: text/html;
1744
+ charset=UTF-8
1745
+ Content-Transfer-Encoding: 7bit
1746
+
1747
+
1748
+ Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" ORDER BY "wupee_notifications"."id" DESC LIMIT 1
1749
+ Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" ORDER BY "wupee_notifications"."id" DESC LIMIT 1
1750
+ Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 2]]