wupee 1.1.4 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/wupee/api/notifications_controller.rb +15 -14
- data/app/mailers/wupee/notifications_mailer.rb +11 -5
- data/app/models/concerns/wupee/receiver.rb +0 -7
- data/app/models/wupee/notification.rb +5 -2
- data/app/models/wupee/notification_type.rb +0 -13
- data/config/routes.rb +3 -2
- data/db/migrate/20151029113107_create_wupee_notifications.rb +4 -3
- data/lib/generators/wupee/install/templates/wupee.rb +12 -1
- data/lib/tasks/wupee.rake +0 -14
- data/lib/wupee.rb +1 -7
- data/lib/wupee/notifier.rb +45 -8
- data/lib/wupee/version.rb +1 -1
- data/spec/controllers/notifications_controller_spec.rb +7 -2
- data/spec/dummy/config/initializers/wupee.rb +8 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +5 -12
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +804 -0
- data/spec/dummy/log/test.log +35767 -0
- data/spec/models/concerns/receiver_spec.rb +0 -22
- data/spec/models/notification_spec.rb +0 -15
- data/spec/models/notification_type_spec.rb +1 -15
- data/spec/models/notifier_spec.rb +12 -8
- metadata +4 -10
- data/app/models/wupee/notification_type_configuration.rb +0 -17
- data/db/migrate/20151029113101_create_wupee_notification_type_configurations.rb +0 -14
- data/spec/factories/notification_type_configuration.rb +0 -6
- data/spec/models/notification_type_configuration_spec.rb +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4277221ab932fab41fba033d5b5d0b86fe9ffb81
|
4
|
+
data.tar.gz: 5638a7a9a039e55d1841f0b1b56a37256da5197e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2702fdf37b2ac16d955c685ce7f39f373e7c51556f34a98552c71bc49d1a00cf0b234b0d55d218c23c53ccb4739f7c79d9582a0e9aa32bb9779fd67a439da312
|
7
|
+
data.tar.gz: dc4385d99c0540f8d46ef31bef45b0907957565880bc8880c1a0e3115f95e35303eb215a939fb61f06e4885f59c234a63fb02c90f89d680ddf4d6cc055b24eab
|
@@ -1,33 +1,34 @@
|
|
1
1
|
module Wupee
|
2
2
|
class Api::NotificationsController < ApplicationController
|
3
|
-
before_action :set_notification, only: [:show, :update]
|
4
|
-
|
5
3
|
def index
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
scopes = params[:scopes].present? ? params[:scopes].split(',') : []
|
5
|
+
scopes = ['read', 'unread', 'wanted', 'unwanted', 'ordered'] & scopes
|
6
|
+
|
7
|
+
@notifications = current_user.notifications
|
8
|
+
|
9
|
+
scopes.each do |scope|
|
10
|
+
@notifications = @notifications.public_send(scope)
|
10
11
|
end
|
11
12
|
end
|
12
13
|
|
13
14
|
def show
|
15
|
+
@notification = find_notification
|
14
16
|
end
|
15
17
|
|
16
|
-
def
|
18
|
+
def mark_as_read
|
19
|
+
@notification = find_notification
|
17
20
|
@notification.mark_as_read
|
18
21
|
render :show
|
19
22
|
end
|
20
23
|
|
21
|
-
def
|
22
|
-
current_user.notifications.
|
23
|
-
n.mark_as_read
|
24
|
-
end
|
24
|
+
def mark_all_as_read
|
25
|
+
current_user.notifications.unread.update_all(is_read: true)
|
25
26
|
head :no_content
|
26
27
|
end
|
27
28
|
|
28
29
|
private
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
def find_notification
|
31
|
+
current_user.notifications.find(params[:id])
|
32
|
+
end
|
32
33
|
end
|
33
34
|
end
|
@@ -2,20 +2,26 @@ module Wupee
|
|
2
2
|
class NotificationsMailer < ActionMailer::Base
|
3
3
|
after_action :mark_notification_as_sent
|
4
4
|
|
5
|
-
def send_mail_for(notification, subject_interpolations = {}, locals_interpolations = {})
|
5
|
+
def send_mail_for(notification, subject_interpolations = {}, locals_interpolations = {}, headers = {})
|
6
6
|
@notification = notification
|
7
7
|
@receiver = notification.receiver
|
8
8
|
@attached_object = notification.attached_object
|
9
9
|
@subject_interpolations = subject_interpolations
|
10
10
|
@locals = locals_interpolations
|
11
|
+
@headers = headers
|
11
12
|
|
12
13
|
if !respond_to?(notification.notification_type.name)
|
13
14
|
class_eval %Q{
|
14
15
|
def #{notification.notification_type.name}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
mail_args = {
|
17
|
+
to: @receiver.email,
|
18
|
+
subject: t('wupee.email_subjects.#{notification.notification_type.name}', @subject_interpolations),
|
19
|
+
template_name: '#{notification.notification_type.name}',
|
20
|
+
content_type: 'text/html'
|
21
|
+
}
|
22
|
+
|
23
|
+
mail_args = mail_args.merge(@headers)
|
24
|
+
mail mail_args
|
19
25
|
end
|
20
26
|
}
|
21
27
|
end
|
@@ -4,13 +4,6 @@ module Wupee
|
|
4
4
|
|
5
5
|
included do
|
6
6
|
has_many :notifications, as: :receiver, dependent: :destroy, class_name: "Wupee::Notification"
|
7
|
-
has_many :notification_type_configurations, as: :receiver, dependent: :destroy, class_name: "Wupee::NotificationTypeConfiguration"
|
8
|
-
|
9
|
-
after_create do
|
10
|
-
Wupee::NotificationType.pluck(:id).each do |notification_type_id|
|
11
|
-
Wupee::NotificationTypeConfiguration.create!(notification_type_id: notification_type_id, receiver: self)
|
12
|
-
end
|
13
|
-
end
|
14
7
|
end
|
15
8
|
end
|
16
9
|
end
|
@@ -3,10 +3,13 @@ class Wupee::Notification < ActiveRecord::Base
|
|
3
3
|
belongs_to :attached_object, polymorphic: true
|
4
4
|
belongs_to :notification_type, class_name: "Wupee::NotificationType"
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
validates :receiver, presence: true
|
7
|
+
validates :notification_type, presence: true
|
8
8
|
|
9
|
+
scope :read, -> { where(is_read: true) }
|
9
10
|
scope :unread, -> { where(is_read: false) }
|
11
|
+
scope :wanted, -> { where(is_wanted: true) }
|
12
|
+
scope :unwanted, -> { where(is_wanted: false) }
|
10
13
|
scope :ordered, -> { order(created_at: :desc) }
|
11
14
|
|
12
15
|
def mark_as_read
|
@@ -2,18 +2,5 @@ class Wupee::NotificationType < ActiveRecord::Base
|
|
2
2
|
validates :name, presence: true
|
3
3
|
validates :name, uniqueness: true
|
4
4
|
|
5
|
-
has_many :notification_type_configurations, foreign_key: :notification_type_id, dependent: :destroy
|
6
5
|
has_many :notifications, foreign_key: :notification_type_id, dependent: :destroy
|
7
|
-
|
8
|
-
def self.create_configurations_for(*receivers)
|
9
|
-
class_eval do
|
10
|
-
receivers.each do |receiver|
|
11
|
-
after_create do
|
12
|
-
receiver.to_s.constantize.pluck(:id).each do |receiver_id|
|
13
|
-
Wupee::NotificationTypeConfiguration.create!(notification_type: self, receiver_type: receiver, receiver_id: receiver_id)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
6
|
end
|
data/config/routes.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
Wupee::Engine.routes.draw do
|
2
2
|
namespace :api, defaults: { format: :json } do
|
3
|
-
resources :notifications, only: [:index, :show
|
4
|
-
|
3
|
+
resources :notifications, only: [:index, :show] do
|
4
|
+
patch :mark_as_read, on: :member
|
5
|
+
patch :mark_all_as_read, on: :collection
|
5
6
|
end
|
6
7
|
end
|
7
8
|
end
|
@@ -1,16 +1,17 @@
|
|
1
1
|
class CreateWupeeNotifications < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :wupee_notifications do |t|
|
4
|
-
t.references :receiver, polymorphic: true
|
5
|
-
t.references :attached_object, polymorphic: true
|
6
|
-
t.belongs_to :notification_type
|
4
|
+
t.references :receiver, polymorphic: true, index: { name: 'idx_wupee_notifications_on_receiver_id' }
|
5
|
+
t.references :attached_object, polymorphic: true, index: { name: 'idx_wupee_notifications_on_attached_object_id' }
|
7
6
|
t.integer :notification_type_id
|
8
7
|
t.boolean :is_read, default: false
|
9
8
|
t.boolean :is_sent, default: false
|
9
|
+
t.boolean :is_wanted, default: true
|
10
10
|
|
11
11
|
t.timestamps null: false
|
12
12
|
end
|
13
13
|
|
14
|
+
add_index :wupee_notifications, :notification_type_id, name: 'idx_wupee_notifications_on_notification_type_id'
|
14
15
|
add_foreign_key :wupee_notifications, :wupee_notification_types, column: :notification_type_id
|
15
16
|
end
|
16
17
|
end
|
@@ -1,3 +1,14 @@
|
|
1
1
|
Wupee.mailer = NotificationsMailer
|
2
2
|
Wupee.deliver_when = :now
|
3
|
-
|
3
|
+
|
4
|
+
# uncomment and implement your logic here to avoid/permit email sending to your users
|
5
|
+
# leave it commented if you always want your users received emails
|
6
|
+
# Wupee.email_sending_rule = Proc.new do |receiver, notification_type|
|
7
|
+
# # logic goes here, returning a boolean
|
8
|
+
# end
|
9
|
+
|
10
|
+
# uncomment and implement your logic here to avoid/permit email sending to your users
|
11
|
+
# leave it commented if you always want your users received notifications
|
12
|
+
# Wupee.notification_sending_rule = Proc.new do |receiver, notification_type|
|
13
|
+
# # logic goes here, returning a boolean
|
14
|
+
# end
|
data/lib/tasks/wupee.rake
CHANGED
@@ -1,16 +1,2 @@
|
|
1
1
|
namespace :wupee do
|
2
|
-
desc "generate Wupee::NotificationTypeConfiguration objects for given Wupee::NotificationType name and for all receivers of given class (default to User)"
|
3
|
-
task :generate_notification_type_configurations, [:notification_type_name, :receiver_klass] => [:environment] do |t, args|
|
4
|
-
|
5
|
-
unless notification_type = Wupee::NotificationType.find_by(name: args[:notification_type_name])
|
6
|
-
warn "Wupee::NotificationType with name #{args[:notification_type_name]} not found."
|
7
|
-
next
|
8
|
-
end
|
9
|
-
|
10
|
-
receiver_klass = args[:receiver_klass] || 'User'
|
11
|
-
|
12
|
-
receiver_klass.constantize.pluck(:id).each do |id|
|
13
|
-
Wupee::NotificationTypeConfiguration.create!(receiver_type: receiver_klass, receiver_id: id, notification_type_id: notification_type.id)
|
14
|
-
end
|
15
|
-
end
|
16
2
|
end
|
data/lib/wupee.rb
CHANGED
@@ -2,17 +2,11 @@ require "wupee/engine"
|
|
2
2
|
require "wupee/notifier"
|
3
3
|
|
4
4
|
module Wupee
|
5
|
-
mattr_accessor :mailer, :deliver_when
|
6
|
-
mattr_reader :receivers
|
5
|
+
mattr_accessor :mailer, :deliver_when, :email_sending_rule, :notification_sending_rule
|
7
6
|
|
8
7
|
def self.notify(opts = {}, &block)
|
9
8
|
wupee_notifier = Wupee::Notifier.new(opts)
|
10
9
|
yield wupee_notifier if block_given?
|
11
10
|
wupee_notifier.execute
|
12
11
|
end
|
13
|
-
|
14
|
-
def self.receivers=(klass)
|
15
|
-
@@receivers = klass
|
16
|
-
Wupee::NotificationType.create_configurations_for(klass)
|
17
|
-
end
|
18
12
|
end
|
data/lib/wupee/notifier.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Wupee
|
2
2
|
class Notifier
|
3
|
-
attr_reader :deliver_when, :attached_object, :receiver_s, :notification_type, :subject_vars, :locals
|
3
|
+
attr_reader :deliver_when, :attached_object, :receiver_s, :notification_type, :subject_vars, :locals, :headers, :config_scope
|
4
4
|
|
5
5
|
def initialize(opts = {})
|
6
6
|
@attached_object = opts[:attached_object]
|
@@ -11,10 +11,18 @@ module Wupee
|
|
11
11
|
@subject_vars = opts[:subject_vars] || {}
|
12
12
|
@locals = opts[:locals] || {}
|
13
13
|
|
14
|
+
@headers = opts[:headers] || {}
|
15
|
+
|
16
|
+
@config_scope = opts[:config_scope]
|
17
|
+
|
14
18
|
@deliver_when = opts[:deliver]
|
15
19
|
notif_type(opts[:notif_type]) if opts[:notif_type]
|
16
20
|
end
|
17
21
|
|
22
|
+
def headers(headers = {})
|
23
|
+
@headers = headers
|
24
|
+
end
|
25
|
+
|
18
26
|
def notif_type(notif_type)
|
19
27
|
if notif_type.is_a?(Wupee::NotificationType)
|
20
28
|
@notification_type = notif_type
|
@@ -51,24 +59,29 @@ module Wupee
|
|
51
59
|
raise ArgumentError.new('receiver or receivers is missing') if @receiver_s.nil?
|
52
60
|
raise ArgumentError.new('notif_type is missing') if @notification_type.nil?
|
53
61
|
|
54
|
-
|
62
|
+
notifications = []
|
63
|
+
@receiver_s.each do |receiver|
|
64
|
+
notification = Wupee::Notification.new(receiver: receiver, notification_type: @notification_type, attached_object: @attached_object)
|
65
|
+
|
66
|
+
notification.is_wanted = false unless send_notification?(receiver, @notification_type)
|
55
67
|
|
56
|
-
notif_type_configs.each do |notif_type_config|
|
57
|
-
notification = Wupee::Notification.new(receiver: notif_type_config.receiver, notification_type: @notification_type, attached_object: @attached_object)
|
58
|
-
notification.is_read = true unless notif_type_config.wants_notification?
|
59
68
|
notification.save!
|
60
69
|
|
70
|
+
notifications << notification
|
71
|
+
|
61
72
|
subject_interpolations = interpolate_vars(@subject_vars, notification)
|
62
73
|
locals_interpolations = interpolate_vars(@locals, notification)
|
63
74
|
|
64
|
-
send_email(notification, subject_interpolations, locals_interpolations) if
|
75
|
+
send_email(notification, subject_interpolations, locals_interpolations) if send_email?(receiver, @notification_type)
|
65
76
|
end
|
77
|
+
|
78
|
+
notifications
|
66
79
|
end
|
67
80
|
|
68
81
|
private
|
69
82
|
def send_email(notification, subject_interpolations, locals_interpolations)
|
70
83
|
deliver_method = "deliver_#{@deliver_when || Wupee.deliver_when}"
|
71
|
-
Wupee.mailer.send_mail_for(notification, subject_interpolations, locals_interpolations).send(deliver_method)
|
84
|
+
Wupee.mailer.send_mail_for(notification, subject_interpolations, locals_interpolations, @headers).send(deliver_method)
|
72
85
|
end
|
73
86
|
|
74
87
|
def interpolate_vars(vars, notification)
|
@@ -77,11 +90,35 @@ module Wupee
|
|
77
90
|
vars_interpolated[key] = if value.kind_of?(Proc)
|
78
91
|
notification.instance_eval(&value)
|
79
92
|
else
|
80
|
-
value
|
93
|
+
value
|
81
94
|
end
|
82
95
|
end
|
83
96
|
|
84
97
|
vars_interpolated
|
85
98
|
end
|
99
|
+
|
100
|
+
def send_notification?(receiver, notification_type)
|
101
|
+
if !Wupee.notification_sending_rule.nil?
|
102
|
+
if Wupee.notification_sending_rule.is_a?(Proc)
|
103
|
+
Wupee.notification_sending_rule.call(receiver, notification_type)
|
104
|
+
else
|
105
|
+
Wupee.notification_sending_rule
|
106
|
+
end
|
107
|
+
else
|
108
|
+
true
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
def send_email?(receiver, notification_type)
|
113
|
+
if !Wupee.email_sending_rule.nil?
|
114
|
+
if Wupee.email_sending_rule.is_a?(Proc)
|
115
|
+
Wupee.email_sending_rule.call(receiver, notification_type)
|
116
|
+
else
|
117
|
+
Wupee.email_sending_rule
|
118
|
+
end
|
119
|
+
else
|
120
|
+
true
|
121
|
+
end
|
122
|
+
end
|
86
123
|
end
|
87
124
|
end
|
data/lib/wupee/version.rb
CHANGED
@@ -29,6 +29,11 @@ RSpec.describe Wupee::Api::NotificationsController, type: :controller do
|
|
29
29
|
expect(json[0]['id']).to eq notification.id
|
30
30
|
expect(json[0]['message']['subject']).to eq "subject"
|
31
31
|
end
|
32
|
+
|
33
|
+
it "should accept scopes as param" do
|
34
|
+
get :index, format: :json, scopes: "unwanted"
|
35
|
+
expect(json.size).to eq 0
|
36
|
+
end
|
32
37
|
end
|
33
38
|
|
34
39
|
describe 'GET show json' do
|
@@ -45,7 +50,7 @@ RSpec.describe Wupee::Api::NotificationsController, type: :controller do
|
|
45
50
|
render_views
|
46
51
|
|
47
52
|
it "should mark as read" do
|
48
|
-
|
53
|
+
patch :mark_as_read, id: notification.id, format: :json
|
49
54
|
expect(json['is_read']).to eq true
|
50
55
|
end
|
51
56
|
end
|
@@ -54,7 +59,7 @@ RSpec.describe Wupee::Api::NotificationsController, type: :controller do
|
|
54
59
|
render_views
|
55
60
|
|
56
61
|
it "should all notification of user mark as read" do
|
57
|
-
|
62
|
+
patch :mark_all_as_read, format: :json
|
58
63
|
expect(notification.reload.is_read).to eq true
|
59
64
|
end
|
60
65
|
end
|
@@ -1,3 +1,10 @@
|
|
1
1
|
Wupee.mailer = NotificationsMailer
|
2
2
|
Wupee.deliver_when = :now
|
3
|
-
|
3
|
+
|
4
|
+
Wupee.email_sending_rule = Proc.new do |receiver, notification_type|
|
5
|
+
true
|
6
|
+
end
|
7
|
+
|
8
|
+
Wupee.notification_sending_rule = Proc.new do |receiver, notification_type|
|
9
|
+
true
|
10
|
+
end
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -26,18 +26,6 @@ ActiveRecord::Schema.define(version: 20151029113107) do
|
|
26
26
|
t.datetime "updated_at", null: false
|
27
27
|
end
|
28
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
29
|
create_table "wupee_notification_types", force: :cascade do |t|
|
42
30
|
t.string "name"
|
43
31
|
t.datetime "created_at", null: false
|
@@ -54,8 +42,13 @@ ActiveRecord::Schema.define(version: 20151029113107) do
|
|
54
42
|
t.integer "notification_type_id"
|
55
43
|
t.boolean "is_read", default: false
|
56
44
|
t.boolean "is_sent", default: false
|
45
|
+
t.boolean "is_wanted", default: true
|
57
46
|
t.datetime "created_at", null: false
|
58
47
|
t.datetime "updated_at", null: false
|
59
48
|
end
|
60
49
|
|
50
|
+
add_index "wupee_notifications", ["attached_object_type", "attached_object_id"], name: "idx_wupee_notifications_on_attached_object_id"
|
51
|
+
add_index "wupee_notifications", ["notification_type_id"], name: "idx_wupee_notifications_on_notification_type_id"
|
52
|
+
add_index "wupee_notifications", ["receiver_type", "receiver_id"], name: "idx_wupee_notifications_on_receiver_id"
|
53
|
+
|
61
54
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -2314,3 +2314,807 @@ Content-Transfer-Encoding: 7bit
|
|
2314
2314
|
{:bla=>"test"}
|
2315
2315
|
{:test=>"lapute"}
|
2316
2316
|
|
2317
|
+
[1m[36mWupee::NotificationType Load (8.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1[0m
|
2318
|
+
[1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1
|
2319
|
+
[1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1[0m
|
2320
|
+
[1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1
|
2321
|
+
[1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1[0m
|
2322
|
+
[1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1
|
2323
|
+
[1m[36mWupee::NotificationType Load (0.5ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1[0m
|
2324
|
+
[1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" ORDER BY "wupee_notification_types"."id" DESC LIMIT 1
|
2325
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
2326
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
2327
|
+
[1m[36mWupee::Notification Load (0.6ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
2328
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
2329
|
+
[1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ?[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "false"]]
|
2330
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
2331
|
+
[1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ?[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
|
2332
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2333
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2334
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2335
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2336
|
+
Migrating to CreateUsers (20150213150625)
|
2337
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2338
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2339
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2340
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2341
|
+
Migrating to CreateMessages (20150213152846)
|
2342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2343
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2344
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2345
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2346
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2347
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2348
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2349
|
+
[1m[36m (9.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2350
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2351
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2352
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2353
|
+
Migrating to CreateUsers (20150213150625)
|
2354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2355
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2356
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2357
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2358
|
+
Migrating to CreateMessages (20150213152846)
|
2359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2360
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2361
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2362
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2363
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2364
|
+
[1m[36m (0.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
2365
|
+
[1m[36m (9.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2366
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2367
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2368
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2369
|
+
Migrating to CreateUsers (20150213150625)
|
2370
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2371
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2372
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2373
|
+
[1m[35m (0.9ms)[0m commit transaction
|
2374
|
+
Migrating to CreateMessages (20150213152846)
|
2375
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2376
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2377
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2378
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2379
|
+
Migrating to CreateWupeeNotificationTypes (20170217114154)
|
2380
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2381
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2382
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2383
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217114154"]]
|
2384
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
2385
|
+
Migrating to CreateWupeeNotifications (20170217114155)
|
2386
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2387
|
+
[1m[36m (0.9ms)[0m [1mCREATE 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2388
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2389
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
2390
|
+
FROM sqlite_master
|
2391
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2392
|
+
UNION ALL
|
2393
|
+
SELECT sql
|
2394
|
+
FROM sqlite_temp_master
|
2395
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2396
|
+
[0m
|
2397
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")
|
2398
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2399
|
+
FROM sqlite_master
|
2400
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2401
|
+
UNION ALL
|
2402
|
+
SELECT sql
|
2403
|
+
FROM sqlite_temp_master
|
2404
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2405
|
+
[0m
|
2406
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2407
|
+
FROM sqlite_master
|
2408
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2409
|
+
UNION ALL
|
2410
|
+
SELECT sql
|
2411
|
+
FROM sqlite_temp_master
|
2412
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2413
|
+
|
2414
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2415
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217114155"]]
|
2416
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
2417
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2418
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2419
|
+
FROM sqlite_master
|
2420
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2421
|
+
UNION ALL
|
2422
|
+
SELECT sql
|
2423
|
+
FROM sqlite_temp_master
|
2424
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2425
|
+
[0m
|
2426
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2427
|
+
FROM sqlite_master
|
2428
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2429
|
+
UNION ALL
|
2430
|
+
SELECT sql
|
2431
|
+
FROM sqlite_temp_master
|
2432
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2433
|
+
|
2434
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
2435
|
+
FROM sqlite_master
|
2436
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2437
|
+
UNION ALL
|
2438
|
+
SELECT sql
|
2439
|
+
FROM sqlite_temp_master
|
2440
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2441
|
+
[0m
|
2442
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2443
|
+
FROM sqlite_master
|
2444
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2445
|
+
UNION ALL
|
2446
|
+
SELECT sql
|
2447
|
+
FROM sqlite_temp_master
|
2448
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2449
|
+
|
2450
|
+
[1m[36m (1.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
2451
|
+
[1m[36m (9.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2452
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2453
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2454
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2455
|
+
Migrating to CreateUsers (20150213150625)
|
2456
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2457
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2458
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2459
|
+
[1m[35m (0.9ms)[0m commit transaction
|
2460
|
+
Migrating to CreateMessages (20150213152846)
|
2461
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2462
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2463
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2464
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2465
|
+
Migrating to CreateWupeeNotificationTypes (20170217114154)
|
2466
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2467
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2468
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2469
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217114154"]]
|
2470
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
2471
|
+
Migrating to CreateWupeeNotifications (20170217114155)
|
2472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2473
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2474
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2475
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2476
|
+
FROM sqlite_master
|
2477
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2478
|
+
UNION ALL
|
2479
|
+
SELECT sql
|
2480
|
+
FROM sqlite_temp_master
|
2481
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2482
|
+
[0m
|
2483
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")
|
2484
|
+
[1m[36m (0.0ms)[0m [1m SELECT sql
|
2485
|
+
FROM sqlite_master
|
2486
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2487
|
+
UNION ALL
|
2488
|
+
SELECT sql
|
2489
|
+
FROM sqlite_temp_master
|
2490
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2491
|
+
[0m
|
2492
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
2493
|
+
FROM sqlite_master
|
2494
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2495
|
+
UNION ALL
|
2496
|
+
SELECT sql
|
2497
|
+
FROM sqlite_temp_master
|
2498
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2499
|
+
|
2500
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2501
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217114155"]]
|
2502
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
2503
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2504
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
2505
|
+
FROM sqlite_master
|
2506
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2507
|
+
UNION ALL
|
2508
|
+
SELECT sql
|
2509
|
+
FROM sqlite_temp_master
|
2510
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2511
|
+
[0m
|
2512
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2513
|
+
FROM sqlite_master
|
2514
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2515
|
+
UNION ALL
|
2516
|
+
SELECT sql
|
2517
|
+
FROM sqlite_temp_master
|
2518
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2519
|
+
|
2520
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2521
|
+
FROM sqlite_master
|
2522
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2523
|
+
UNION ALL
|
2524
|
+
SELECT sql
|
2525
|
+
FROM sqlite_temp_master
|
2526
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2527
|
+
[0m
|
2528
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2529
|
+
FROM sqlite_master
|
2530
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2531
|
+
UNION ALL
|
2532
|
+
SELECT sql
|
2533
|
+
FROM sqlite_temp_master
|
2534
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2535
|
+
|
2536
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2537
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2538
|
+
[1m[36m (2.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2539
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2540
|
+
Migrating to CreateUsers (20150213150625)
|
2541
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2542
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2543
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2544
|
+
[1m[35m (1.1ms)[0m commit transaction
|
2545
|
+
Migrating to CreateMessages (20150213152846)
|
2546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2547
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2548
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2549
|
+
[1m[35m (0.9ms)[0m commit transaction
|
2550
|
+
Migrating to CreateWupeeNotificationTypes (20170217114154)
|
2551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2552
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2553
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2554
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217114154"]]
|
2555
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
2556
|
+
Migrating to CreateWupeeNotifications (20170217114155)
|
2557
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2558
|
+
[1m[36m (0.5ms)[0m [1mCREATE 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2559
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2560
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2561
|
+
FROM sqlite_master
|
2562
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2563
|
+
UNION ALL
|
2564
|
+
SELECT sql
|
2565
|
+
FROM sqlite_temp_master
|
2566
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2567
|
+
[0m
|
2568
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")
|
2569
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2570
|
+
FROM sqlite_master
|
2571
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2572
|
+
UNION ALL
|
2573
|
+
SELECT sql
|
2574
|
+
FROM sqlite_temp_master
|
2575
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2576
|
+
[0m
|
2577
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
2578
|
+
FROM sqlite_master
|
2579
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2580
|
+
UNION ALL
|
2581
|
+
SELECT sql
|
2582
|
+
FROM sqlite_temp_master
|
2583
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2584
|
+
|
2585
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2586
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217114155"]]
|
2587
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
2588
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2589
|
+
[1m[36m (0.4ms)[0m [1m SELECT sql
|
2590
|
+
FROM sqlite_master
|
2591
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2592
|
+
UNION ALL
|
2593
|
+
SELECT sql
|
2594
|
+
FROM sqlite_temp_master
|
2595
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2596
|
+
[0m
|
2597
|
+
[1m[35m (0.4ms)[0m SELECT sql
|
2598
|
+
FROM sqlite_master
|
2599
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2600
|
+
UNION ALL
|
2601
|
+
SELECT sql
|
2602
|
+
FROM sqlite_temp_master
|
2603
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2604
|
+
|
2605
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2606
|
+
FROM sqlite_master
|
2607
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2608
|
+
UNION ALL
|
2609
|
+
SELECT sql
|
2610
|
+
FROM sqlite_temp_master
|
2611
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2612
|
+
[0m
|
2613
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2614
|
+
FROM sqlite_master
|
2615
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2616
|
+
UNION ALL
|
2617
|
+
SELECT sql
|
2618
|
+
FROM sqlite_temp_master
|
2619
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2620
|
+
|
2621
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2622
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2623
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2624
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2625
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2626
|
+
[1m[35m (0.9ms)[0m 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2627
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")[0m
|
2628
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2629
|
+
FROM sqlite_master
|
2630
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2631
|
+
UNION ALL
|
2632
|
+
SELECT sql
|
2633
|
+
FROM sqlite_temp_master
|
2634
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2635
|
+
|
2636
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2637
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2638
|
+
FROM sqlite_master
|
2639
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2640
|
+
UNION ALL
|
2641
|
+
SELECT sql
|
2642
|
+
FROM sqlite_temp_master
|
2643
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2644
|
+
|
2645
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2646
|
+
FROM sqlite_master
|
2647
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2648
|
+
UNION ALL
|
2649
|
+
SELECT sql
|
2650
|
+
FROM sqlite_temp_master
|
2651
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2652
|
+
[0m
|
2653
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2654
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2655
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2656
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2657
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170217114155')
|
2658
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m
|
2659
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
|
2660
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170217114154')[0m
|
2661
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029113100')
|
2662
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029113107')[0m
|
2663
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2664
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2665
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2666
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2667
|
+
Migrating to CreateUsers (20150213150625)
|
2668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2669
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2670
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2671
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2672
|
+
Migrating to CreateMessages (20150213152846)
|
2673
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2674
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2675
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2676
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2677
|
+
Migrating to CreateWupeeNotificationTypes (20151029113100)
|
2678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2679
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2680
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2681
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113100"]]
|
2682
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
2683
|
+
Migrating to CreateWupeeNotifications (20151029113107)
|
2684
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2685
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2686
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2687
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2688
|
+
FROM sqlite_master
|
2689
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2690
|
+
UNION ALL
|
2691
|
+
SELECT sql
|
2692
|
+
FROM sqlite_temp_master
|
2693
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2694
|
+
[0m
|
2695
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")
|
2696
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2697
|
+
FROM sqlite_master
|
2698
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2699
|
+
UNION ALL
|
2700
|
+
SELECT sql
|
2701
|
+
FROM sqlite_temp_master
|
2702
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2703
|
+
[0m
|
2704
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
2705
|
+
FROM sqlite_master
|
2706
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2707
|
+
UNION ALL
|
2708
|
+
SELECT sql
|
2709
|
+
FROM sqlite_temp_master
|
2710
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2711
|
+
|
2712
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2713
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]
|
2714
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
2715
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2716
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2717
|
+
FROM sqlite_master
|
2718
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2719
|
+
UNION ALL
|
2720
|
+
SELECT sql
|
2721
|
+
FROM sqlite_temp_master
|
2722
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2723
|
+
[0m
|
2724
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
2725
|
+
FROM sqlite_master
|
2726
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2727
|
+
UNION ALL
|
2728
|
+
SELECT sql
|
2729
|
+
FROM sqlite_temp_master
|
2730
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2731
|
+
|
2732
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2733
|
+
FROM sqlite_master
|
2734
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2735
|
+
UNION ALL
|
2736
|
+
SELECT sql
|
2737
|
+
FROM sqlite_temp_master
|
2738
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2739
|
+
[0m
|
2740
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2741
|
+
FROM sqlite_master
|
2742
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2743
|
+
UNION ALL
|
2744
|
+
SELECT sql
|
2745
|
+
FROM sqlite_temp_master
|
2746
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2747
|
+
|
2748
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2749
|
+
Migrating to CreateWupeeNotificationTypes (20170217143614)
|
2750
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2751
|
+
Migrating to CreateWupeeNotificationTypes (20170217143614)
|
2752
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2753
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2754
|
+
SQLite3::SQLException: table "wupee_notification_types" already exists: CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2755
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2756
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2757
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2758
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2759
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2760
|
+
Migrating to CreateUsers (20150213150625)
|
2761
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2762
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2763
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2764
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2765
|
+
Migrating to CreateMessages (20150213152846)
|
2766
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2767
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2768
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2769
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2770
|
+
Migrating to CreateWupeeNotificationTypes (20170217143614)
|
2771
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2772
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2773
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2774
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217143614"]]
|
2775
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
2776
|
+
Migrating to CreateWupeeNotifications (20170217143615)
|
2777
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2778
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2779
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2780
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2781
|
+
FROM sqlite_master
|
2782
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2783
|
+
UNION ALL
|
2784
|
+
SELECT sql
|
2785
|
+
FROM sqlite_temp_master
|
2786
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2787
|
+
[0m
|
2788
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")
|
2789
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2790
|
+
FROM sqlite_master
|
2791
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2792
|
+
UNION ALL
|
2793
|
+
SELECT sql
|
2794
|
+
FROM sqlite_temp_master
|
2795
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2796
|
+
[0m
|
2797
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2798
|
+
FROM sqlite_master
|
2799
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2800
|
+
UNION ALL
|
2801
|
+
SELECT sql
|
2802
|
+
FROM sqlite_temp_master
|
2803
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2804
|
+
|
2805
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2806
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170217143615"]]
|
2807
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
2808
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2809
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2810
|
+
FROM sqlite_master
|
2811
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2812
|
+
UNION ALL
|
2813
|
+
SELECT sql
|
2814
|
+
FROM sqlite_temp_master
|
2815
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2816
|
+
[0m
|
2817
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2818
|
+
FROM sqlite_master
|
2819
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2820
|
+
UNION ALL
|
2821
|
+
SELECT sql
|
2822
|
+
FROM sqlite_temp_master
|
2823
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2824
|
+
|
2825
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2826
|
+
FROM sqlite_master
|
2827
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2828
|
+
UNION ALL
|
2829
|
+
SELECT sql
|
2830
|
+
FROM sqlite_temp_master
|
2831
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2832
|
+
[0m
|
2833
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2834
|
+
FROM sqlite_master
|
2835
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2836
|
+
UNION ALL
|
2837
|
+
SELECT sql
|
2838
|
+
FROM sqlite_temp_master
|
2839
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2840
|
+
|
2841
|
+
[1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
2842
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2843
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
2844
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2845
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2846
|
+
Migrating to CreateUsers (20150213150625)
|
2847
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2848
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2849
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2850
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2851
|
+
Migrating to CreateMessages (20150213152846)
|
2852
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2853
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2854
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2855
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2856
|
+
Migrating to CreateWupeeNotificationTypes (20151029113100)
|
2857
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2858
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2859
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2860
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113100"]]
|
2861
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
2862
|
+
Migrating to CreateWupeeNotifications (20151029113107)
|
2863
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2864
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2865
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")
|
2866
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2867
|
+
FROM sqlite_master
|
2868
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2869
|
+
UNION ALL
|
2870
|
+
SELECT sql
|
2871
|
+
FROM sqlite_temp_master
|
2872
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2873
|
+
[0m
|
2874
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")
|
2875
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2876
|
+
FROM sqlite_master
|
2877
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2878
|
+
UNION ALL
|
2879
|
+
SELECT sql
|
2880
|
+
FROM sqlite_temp_master
|
2881
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2882
|
+
[0m
|
2883
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2884
|
+
FROM sqlite_master
|
2885
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2886
|
+
UNION ALL
|
2887
|
+
SELECT sql
|
2888
|
+
FROM sqlite_temp_master
|
2889
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2890
|
+
|
2891
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2892
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]
|
2893
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
2894
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2895
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2896
|
+
FROM sqlite_master
|
2897
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2898
|
+
UNION ALL
|
2899
|
+
SELECT sql
|
2900
|
+
FROM sqlite_temp_master
|
2901
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2902
|
+
[0m
|
2903
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2904
|
+
FROM sqlite_master
|
2905
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2906
|
+
UNION ALL
|
2907
|
+
SELECT sql
|
2908
|
+
FROM sqlite_temp_master
|
2909
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
2910
|
+
|
2911
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
2912
|
+
FROM sqlite_master
|
2913
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2914
|
+
UNION ALL
|
2915
|
+
SELECT sql
|
2916
|
+
FROM sqlite_temp_master
|
2917
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2918
|
+
[0m
|
2919
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
2920
|
+
FROM sqlite_master
|
2921
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2922
|
+
UNION ALL
|
2923
|
+
SELECT sql
|
2924
|
+
FROM sqlite_temp_master
|
2925
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2926
|
+
|
2927
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2928
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
2929
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
2930
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2931
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-02-17 15:03:26 UTC], ["updated_at", 2017-02-17 15:03:26 UTC]]
|
2932
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
2933
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2934
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
2935
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2936
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
2937
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2938
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", :environment]]
|
2939
|
+
[1m[35m (16.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2940
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
2941
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2942
|
+
Migrating to CreateUsers (20150213150625)
|
2943
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2944
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
2945
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
2946
|
+
[1m[35m (2.9ms)[0m [1m[36mcommit transaction[0m
|
2947
|
+
Migrating to CreateMessages (20150213152846)
|
2948
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2949
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
2950
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
2951
|
+
[1m[35m (3.3ms)[0m [1m[36mcommit transaction[0m
|
2952
|
+
Migrating to CreateWupeeNotificationTypes (20151029113100)
|
2953
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
2954
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
2955
|
+
[1m[35m (0.4ms)[0m [1m[34mselect sqlite_version(*)[0m
|
2956
|
+
[1m[35m (26.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
2957
|
+
[1m[35mSQL (2.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113100"]]
|
2958
|
+
[1m[35m (3.5ms)[0m [1m[36mcommit transaction[0m
|
2959
|
+
Migrating to CreateWupeeNotifications (20151029113107)
|
2960
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2961
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_type" varchar, "receiver_id" integer, "attached_object_type" varchar, "attached_object_id" integer, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
2962
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")[0m
|
2963
|
+
[1m[35m (1.7ms)[0m [1m[34m SELECT sql
|
2964
|
+
FROM sqlite_master
|
2965
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2966
|
+
UNION ALL
|
2967
|
+
SELECT sql
|
2968
|
+
FROM sqlite_temp_master
|
2969
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2970
|
+
[0m
|
2971
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")[0m
|
2972
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
2973
|
+
FROM sqlite_master
|
2974
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2975
|
+
UNION ALL
|
2976
|
+
SELECT sql
|
2977
|
+
FROM sqlite_temp_master
|
2978
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
2979
|
+
[0m
|
2980
|
+
[1m[35m (0.2ms)[0m [1m[34m SELECT sql
|
2981
|
+
FROM sqlite_master
|
2982
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2983
|
+
UNION ALL
|
2984
|
+
SELECT sql
|
2985
|
+
FROM sqlite_temp_master
|
2986
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
2987
|
+
[0m
|
2988
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
2989
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113107"]]
|
2990
|
+
[1m[35m (11.3ms)[0m [1m[36mcommit transaction[0m
|
2991
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
2992
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2993
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-02-17 15:03:31 UTC], ["updated_at", 2017-02-17 15:03:31 UTC]]
|
2994
|
+
[1m[35m (1.6ms)[0m [1m[36mcommit transaction[0m
|
2995
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2996
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
2997
|
+
FROM sqlite_master
|
2998
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
2999
|
+
UNION ALL
|
3000
|
+
SELECT sql
|
3001
|
+
FROM sqlite_temp_master
|
3002
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
3003
|
+
[0m
|
3004
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
3005
|
+
FROM sqlite_master
|
3006
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
3007
|
+
UNION ALL
|
3008
|
+
SELECT sql
|
3009
|
+
FROM sqlite_temp_master
|
3010
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
3011
|
+
[0m
|
3012
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
3013
|
+
FROM sqlite_master
|
3014
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
3015
|
+
UNION ALL
|
3016
|
+
SELECT sql
|
3017
|
+
FROM sqlite_temp_master
|
3018
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
3019
|
+
[0m
|
3020
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
3021
|
+
FROM sqlite_master
|
3022
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3023
|
+
UNION ALL
|
3024
|
+
SELECT sql
|
3025
|
+
FROM sqlite_temp_master
|
3026
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3027
|
+
[0m
|
3028
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
3029
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
3030
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3031
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
3032
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3033
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3034
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3035
|
+
Migrating to CreateUsers (20150213150625)
|
3036
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3037
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3038
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]]
|
3039
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
3040
|
+
Migrating to CreateMessages (20150213152846)
|
3041
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3042
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3043
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]]
|
3044
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
3045
|
+
Migrating to CreateWupeeNotificationTypes (20151029113100)
|
3046
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3047
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3048
|
+
[1m[35m (0.4ms)[0m [1m[34mselect sqlite_version(*)[0m
|
3049
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m
|
3050
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113100"]]
|
3051
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
3052
|
+
Migrating to CreateWupeeNotifications (20151029113107)
|
3053
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3054
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_type" varchar, "receiver_id" integer, "attached_object_type" varchar, "attached_object_id" integer, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "is_wanted" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3055
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "idx_wupee_notifications_on_receiver_id" ON "wupee_notifications" ("receiver_type", "receiver_id")[0m
|
3056
|
+
[1m[35m (0.0ms)[0m [1m[34m SELECT sql
|
3057
|
+
FROM sqlite_master
|
3058
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3059
|
+
UNION ALL
|
3060
|
+
SELECT sql
|
3061
|
+
FROM sqlite_temp_master
|
3062
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3063
|
+
[0m
|
3064
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "idx_wupee_notifications_on_attached_object_id" ON "wupee_notifications" ("attached_object_type", "attached_object_id")[0m
|
3065
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
3066
|
+
FROM sqlite_master
|
3067
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
3068
|
+
UNION ALL
|
3069
|
+
SELECT sql
|
3070
|
+
FROM sqlite_temp_master
|
3071
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
3072
|
+
[0m
|
3073
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
3074
|
+
FROM sqlite_master
|
3075
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3076
|
+
UNION ALL
|
3077
|
+
SELECT sql
|
3078
|
+
FROM sqlite_temp_master
|
3079
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3080
|
+
[0m
|
3081
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "idx_wupee_notifications_on_notification_type_id" ON "wupee_notifications" ("notification_type_id")[0m
|
3082
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113107"]]
|
3083
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
3084
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
3085
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3086
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-02-17 15:26:16 UTC], ["updated_at", 2017-02-17 15:26:16 UTC]]
|
3087
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
3088
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3089
|
+
[1m[35m (0.2ms)[0m [1m[34m SELECT sql
|
3090
|
+
FROM sqlite_master
|
3091
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
3092
|
+
UNION ALL
|
3093
|
+
SELECT sql
|
3094
|
+
FROM sqlite_temp_master
|
3095
|
+
WHERE name='index_wupee_notification_types_on_name' AND type='index'
|
3096
|
+
[0m
|
3097
|
+
[1m[35m (0.2ms)[0m [1m[34m SELECT sql
|
3098
|
+
FROM sqlite_master
|
3099
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
3100
|
+
UNION ALL
|
3101
|
+
SELECT sql
|
3102
|
+
FROM sqlite_temp_master
|
3103
|
+
WHERE name='idx_wupee_notifications_on_notification_type_id' AND type='index'
|
3104
|
+
[0m
|
3105
|
+
[1m[35m (0.2ms)[0m [1m[34m SELECT sql
|
3106
|
+
FROM sqlite_master
|
3107
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
3108
|
+
UNION ALL
|
3109
|
+
SELECT sql
|
3110
|
+
FROM sqlite_temp_master
|
3111
|
+
WHERE name='idx_wupee_notifications_on_attached_object_id' AND type='index'
|
3112
|
+
[0m
|
3113
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
3114
|
+
FROM sqlite_master
|
3115
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3116
|
+
UNION ALL
|
3117
|
+
SELECT sql
|
3118
|
+
FROM sqlite_temp_master
|
3119
|
+
WHERE name='idx_wupee_notifications_on_receiver_id' AND type='index'
|
3120
|
+
[0m
|