contact_sync 1.4.6 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +24 -22
- data/lib/contact_sync.rb +0 -1
- data/lib/contact_sync/engine.rb +7 -0
- data/lib/contact_sync/syncable.rb +10 -0
- data/lib/contact_sync/version.rb +1 -1
- data/lib/generators/install_contact_sync/templates/contact.rb +0 -64
- data/lib/generators/install_contact_sync/templates/phone.rb +18 -8
- data/{test → spec}/dummy/README.rdoc +0 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
- data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/models/address.rb +5 -0
- data/spec/dummy/app/models/contact.rb +10 -0
- data/spec/dummy/app/models/email.rb +14 -0
- data/spec/dummy/app/models/phone.rb +41 -0
- data/spec/dummy/app/models/routes.rb +9 -0
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/{test → spec}/dummy/bin/bundle +0 -0
- data/{test → spec}/dummy/bin/rails +0 -0
- data/{test → spec}/dummy/bin/rake +0 -0
- data/{test → spec}/dummy/bin/setup +0 -0
- data/{test → spec}/dummy/config.ru +0 -0
- data/{test → spec}/dummy/config/application.rb +13 -3
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +0 -0
- data/{test → spec}/dummy/config/environments/production.rb +0 -0
- data/{test → spec}/dummy/config/environments/test.rb +0 -0
- data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
- data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/{test → spec}/dummy/config/routes.rb +0 -0
- data/{test → spec}/dummy/config/secrets.yml +3 -3
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150520065844_create_contact_sync_schema.rb +70 -0
- data/spec/dummy/db/migrate/20150529072537_remove_device_id_from_contacts.rb +7 -0
- data/spec/dummy/db/schema.rb +74 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +186 -0
- data/spec/dummy/log/test.log +386 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/spec/factories/contact_factory.rb +18 -0
- data/spec/factories/user_factory.rb +7 -0
- data/spec/rails_helper.rb +82 -0
- data/spec/spec_helper.rb +92 -0
- data/spec/string_phone_spec.rb +15 -0
- metadata +152 -82
- data/test/con_sync_test.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/db/schema.rb +0 -17
- data/test/integration/navigation_test.rb +0 -10
- data/test/lib/generators/con_sync/install_con_sync_generator_test.rb +0 -16
- data/test/test_helper.rb +0 -20
Binary file
|
@@ -0,0 +1,70 @@
|
|
1
|
+
class CreateContactSyncSchema < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
create_table :contacts do |t|
|
4
|
+
t.string :composite_name
|
5
|
+
t.string :first_name
|
6
|
+
t.string :middle_name
|
7
|
+
t.string :last_name
|
8
|
+
t.string :prefix
|
9
|
+
t.string :suffix
|
10
|
+
t.string :nickname
|
11
|
+
t.string :organization
|
12
|
+
t.string :job_title
|
13
|
+
t.string :department
|
14
|
+
t.date :birthdate
|
15
|
+
t.text :note
|
16
|
+
t.string :device_id
|
17
|
+
t.integer :record_id, default: 0
|
18
|
+
t.datetime :creation_date
|
19
|
+
t.datetime :modification_date
|
20
|
+
t.integer :user_id
|
21
|
+
t.timestamps
|
22
|
+
end
|
23
|
+
|
24
|
+
create_table :phones do |t|
|
25
|
+
t.string :label
|
26
|
+
t.string :encrypted_number
|
27
|
+
t.string :cc_prefix
|
28
|
+
t.string :extension
|
29
|
+
t.integer :contact_id
|
30
|
+
|
31
|
+
t.timestamps
|
32
|
+
end
|
33
|
+
|
34
|
+
create_table :emails do |t|
|
35
|
+
t.string :label
|
36
|
+
t.string :encrypted_email
|
37
|
+
t.integer :contact_id
|
38
|
+
|
39
|
+
t.timestamps
|
40
|
+
end
|
41
|
+
|
42
|
+
if table_exists? :users
|
43
|
+
add_column :users, :last_contact_sync, :datetime
|
44
|
+
add_column :users, :encrypted_number, :string
|
45
|
+
add_column :users, :cc_prefix, :string
|
46
|
+
add_index :users, :encrypted_number
|
47
|
+
else
|
48
|
+
create_table :users do |t|
|
49
|
+
t.string :first_name
|
50
|
+
t.string :middle_name
|
51
|
+
t.string :last_name
|
52
|
+
t.string :email
|
53
|
+
t.string :encrypted_number
|
54
|
+
t.string :cc_prefix
|
55
|
+
t.datetime :last_contact_sync
|
56
|
+
end
|
57
|
+
add_index :users, :encrypted_number
|
58
|
+
end
|
59
|
+
|
60
|
+
add_index :contacts, [:record_id, :device_id], name: "unique_device_contact", unique: true
|
61
|
+
add_index :contacts, :user_id
|
62
|
+
add_index :phones, :encrypted_number
|
63
|
+
add_index :emails, :encrypted_email
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
def down
|
68
|
+
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class RemoveDeviceIdFromContacts < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
remove_column :contacts, :device_id, :string, default: ""
|
4
|
+
remove_index :contacts, columns: [:device_id, :record_id], name: "unique_device_contact"
|
5
|
+
add_index :contacts, [:user_id, :record_id], unique: true
|
6
|
+
end
|
7
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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: 20150529072537) do
|
15
|
+
|
16
|
+
create_table "contacts", force: :cascade do |t|
|
17
|
+
t.string "composite_name"
|
18
|
+
t.string "first_name"
|
19
|
+
t.string "middle_name"
|
20
|
+
t.string "last_name"
|
21
|
+
t.string "prefix"
|
22
|
+
t.string "suffix"
|
23
|
+
t.string "nickname"
|
24
|
+
t.string "organization"
|
25
|
+
t.string "job_title"
|
26
|
+
t.string "department"
|
27
|
+
t.date "birthdate"
|
28
|
+
t.text "note"
|
29
|
+
t.integer "record_id", default: 0
|
30
|
+
t.datetime "creation_date"
|
31
|
+
t.datetime "modification_date"
|
32
|
+
t.integer "user_id"
|
33
|
+
t.datetime "created_at"
|
34
|
+
t.datetime "updated_at"
|
35
|
+
end
|
36
|
+
|
37
|
+
add_index "contacts", ["user_id", "record_id"], name: "index_contacts_on_user_id_and_record_id", unique: true
|
38
|
+
add_index "contacts", ["user_id"], name: "index_contacts_on_user_id"
|
39
|
+
|
40
|
+
create_table "emails", force: :cascade do |t|
|
41
|
+
t.string "label"
|
42
|
+
t.string "encrypted_email"
|
43
|
+
t.integer "contact_id"
|
44
|
+
t.datetime "created_at"
|
45
|
+
t.datetime "updated_at"
|
46
|
+
end
|
47
|
+
|
48
|
+
add_index "emails", ["encrypted_email"], name: "index_emails_on_encrypted_email"
|
49
|
+
|
50
|
+
create_table "phones", force: :cascade do |t|
|
51
|
+
t.string "label"
|
52
|
+
t.string "encrypted_number"
|
53
|
+
t.string "cc_prefix"
|
54
|
+
t.string "extension"
|
55
|
+
t.integer "contact_id"
|
56
|
+
t.datetime "created_at"
|
57
|
+
t.datetime "updated_at"
|
58
|
+
end
|
59
|
+
|
60
|
+
add_index "phones", ["encrypted_number"], name: "index_phones_on_encrypted_number"
|
61
|
+
|
62
|
+
create_table "users", force: :cascade do |t|
|
63
|
+
t.string "first_name"
|
64
|
+
t.string "middle_name"
|
65
|
+
t.string "last_name"
|
66
|
+
t.string "email"
|
67
|
+
t.string "encrypted_number"
|
68
|
+
t.string "cc_prefix"
|
69
|
+
t.datetime "last_contact_sync"
|
70
|
+
end
|
71
|
+
|
72
|
+
add_index "users", ["encrypted_number"], name: "index_users_on_encrypted_number"
|
73
|
+
|
74
|
+
end
|
Binary file
|
@@ -0,0 +1,186 @@
|
|
1
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
7
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
9
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
Migrating to CreateContactSyncSchema (20150520065844)
|
12
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/SM/Developer/Personal/RoR/con_sync/spec/dummy/db/migrate/20150520065844_create_contact_sync_schema.rb:21)
|
14
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "device_id" varchar, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
15
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/SM/Developer/Personal/RoR/con_sync/spec/dummy/db/migrate/20150520065844_create_contact_sync_schema.rb:31)
|
16
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
17
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/SM/Developer/Personal/RoR/con_sync/spec/dummy/db/migrate/20150520065844_create_contact_sync_schema.rb:39)
|
18
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
19
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
20
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
21
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")
|
22
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_device_contact" ON "contacts" ("record_id", "device_id")[0m
|
23
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
24
|
+
FROM sqlite_master
|
25
|
+
WHERE name='unique_device_contact' AND type='index'
|
26
|
+
UNION ALL
|
27
|
+
SELECT sql
|
28
|
+
FROM sqlite_temp_master
|
29
|
+
WHERE name='unique_device_contact' AND type='index'
|
30
|
+
|
31
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
32
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")
|
33
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
34
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150520065844"]]
|
35
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
36
|
+
Migrating to RemoveDeviceIdFromContacts (20150529072537)
|
37
|
+
[1m[35m (0.1ms)[0m begin transaction
|
38
|
+
[1m[36m (0.5ms)[0m [1mCREATE TEMPORARY TABLE "acontacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "device_id" varchar, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
39
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
40
|
+
FROM sqlite_master
|
41
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
42
|
+
UNION ALL
|
43
|
+
SELECT sql
|
44
|
+
FROM sqlite_temp_master
|
45
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
46
|
+
|
47
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
48
|
+
FROM sqlite_master
|
49
|
+
WHERE name='unique_device_contact' AND type='index'
|
50
|
+
UNION ALL
|
51
|
+
SELECT sql
|
52
|
+
FROM sqlite_temp_master
|
53
|
+
WHERE name='unique_device_contact' AND type='index'
|
54
|
+
[0m
|
55
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "tindex_acontacts_on_user_id" ON "acontacts" ("user_id")
|
56
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "tunique_device_contact" ON "acontacts" ("record_id", "device_id")[0m
|
57
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "contacts"
|
58
|
+
[1m[36m (0.4ms)[0m [1mDROP TABLE "contacts"[0m
|
59
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime)
|
60
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
61
|
+
FROM sqlite_master
|
62
|
+
WHERE name='tunique_device_contact' AND type='index'
|
63
|
+
UNION ALL
|
64
|
+
SELECT sql
|
65
|
+
FROM sqlite_temp_master
|
66
|
+
WHERE name='tunique_device_contact' AND type='index'
|
67
|
+
[0m
|
68
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
69
|
+
FROM sqlite_master
|
70
|
+
WHERE name='tindex_acontacts_on_user_id' AND type='index'
|
71
|
+
UNION ALL
|
72
|
+
SELECT sql
|
73
|
+
FROM sqlite_temp_master
|
74
|
+
WHERE name='tindex_acontacts_on_user_id' AND type='index'
|
75
|
+
|
76
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "unique_device_contact" ON "contacts" ("record_id")[0m
|
77
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
78
|
+
FROM sqlite_master
|
79
|
+
WHERE name='unique_device_contact' AND type='index'
|
80
|
+
UNION ALL
|
81
|
+
SELECT sql
|
82
|
+
FROM sqlite_temp_master
|
83
|
+
WHERE name='unique_device_contact' AND type='index'
|
84
|
+
|
85
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
86
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "acontacts"
|
87
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "acontacts"[0m
|
88
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
89
|
+
FROM sqlite_master
|
90
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
91
|
+
UNION ALL
|
92
|
+
SELECT sql
|
93
|
+
FROM sqlite_temp_master
|
94
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
95
|
+
|
96
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
97
|
+
FROM sqlite_master
|
98
|
+
WHERE name='unique_device_contact' AND type='index'
|
99
|
+
UNION ALL
|
100
|
+
SELECT sql
|
101
|
+
FROM sqlite_temp_master
|
102
|
+
WHERE name='unique_device_contact' AND type='index'
|
103
|
+
[0m
|
104
|
+
[1m[35m (0.1ms)[0m DROP INDEX "unique_device_contact"
|
105
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106
|
+
FROM sqlite_master
|
107
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
108
|
+
UNION ALL
|
109
|
+
SELECT sql
|
110
|
+
FROM sqlite_temp_master
|
111
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
112
|
+
[0m
|
113
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")
|
114
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150529072537"]]
|
115
|
+
[1m[35m (1.6ms)[0m commit transaction
|
116
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
117
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
118
|
+
FROM sqlite_master
|
119
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
120
|
+
UNION ALL
|
121
|
+
SELECT sql
|
122
|
+
FROM sqlite_temp_master
|
123
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
124
|
+
|
125
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
126
|
+
FROM sqlite_master
|
127
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
128
|
+
UNION ALL
|
129
|
+
SELECT sql
|
130
|
+
FROM sqlite_temp_master
|
131
|
+
WHERE name='index_contacts_on_user_id' AND type='index'
|
132
|
+
[0m
|
133
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
134
|
+
FROM sqlite_master
|
135
|
+
WHERE name='index_emails_on_encrypted_email' AND type='index'
|
136
|
+
UNION ALL
|
137
|
+
SELECT sql
|
138
|
+
FROM sqlite_temp_master
|
139
|
+
WHERE name='index_emails_on_encrypted_email' AND type='index'
|
140
|
+
|
141
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
142
|
+
FROM sqlite_master
|
143
|
+
WHERE name='index_phones_on_encrypted_number' AND type='index'
|
144
|
+
UNION ALL
|
145
|
+
SELECT sql
|
146
|
+
FROM sqlite_temp_master
|
147
|
+
WHERE name='index_phones_on_encrypted_number' AND type='index'
|
148
|
+
[0m
|
149
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
150
|
+
FROM sqlite_master
|
151
|
+
WHERE name='index_users_on_encrypted_number' AND type='index'
|
152
|
+
UNION ALL
|
153
|
+
SELECT sql
|
154
|
+
FROM sqlite_temp_master
|
155
|
+
WHERE name='index_users_on_encrypted_number' AND type='index'
|
156
|
+
|
157
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
158
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
159
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
160
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
161
|
+
FROM sqlite_master
|
162
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
163
|
+
UNION ALL
|
164
|
+
SELECT sql
|
165
|
+
FROM sqlite_temp_master
|
166
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
167
|
+
|
168
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
169
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
170
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
171
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
172
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
173
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
174
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
175
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
176
|
+
[1m[36m (2.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
177
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
178
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
179
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
180
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
182
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name") VALUES (?, ?)[0m [["first_name", "Saad"], ["last_name", "Masood"]]
|
183
|
+
[1m[35m (6.1ms)[0m commit transaction
|
184
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
185
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
186
|
+
[1m[35mContact Load (0.2ms)[0m SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]]
|
@@ -0,0 +1,386 @@
|
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
3
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
7
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
8
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
12
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
13
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
15
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
16
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
17
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
19
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
20
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
21
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
22
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
24
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
25
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
28
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31
|
+
[1m[36m (6.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
32
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
33
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
34
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
35
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
36
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
37
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
38
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
39
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
40
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
42
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
43
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
+
[1m[36m (6.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
45
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
46
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
47
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
48
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
49
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
50
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
55
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
57
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
58
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
59
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
60
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
61
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
62
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
63
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
68
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
71
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
72
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
73
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
74
|
+
FROM sqlite_master
|
75
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
76
|
+
UNION ALL
|
77
|
+
SELECT sql
|
78
|
+
FROM sqlite_temp_master
|
79
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
80
|
+
|
81
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
82
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
83
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
84
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
85
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
86
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
87
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
88
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
89
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
90
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
91
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
92
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
93
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
94
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
95
|
+
[1m[36m (6.6ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
96
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
97
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
98
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
99
|
+
FROM sqlite_master
|
100
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
101
|
+
UNION ALL
|
102
|
+
SELECT sql
|
103
|
+
FROM sqlite_temp_master
|
104
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
105
|
+
|
106
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
107
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
108
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
109
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
110
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
111
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
112
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
113
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
114
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
115
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
116
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
117
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
118
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
120
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
121
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
122
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
123
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
124
|
+
FROM sqlite_master
|
125
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
126
|
+
UNION ALL
|
127
|
+
SELECT sql
|
128
|
+
FROM sqlite_temp_master
|
129
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
130
|
+
|
131
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
132
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
133
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
134
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
135
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
136
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
137
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
138
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
139
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
140
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
141
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
142
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
143
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
144
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
145
|
+
[1m[35m (0.0ms)[0m commit transaction
|
146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
147
|
+
[1m[35m (0.4ms)[0m DELETE FROM "contacts";
|
148
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
149
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'contacts';
|
150
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "emails";[0m
|
151
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
152
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'emails';[0m
|
153
|
+
[1m[35m (0.1ms)[0m DELETE FROM "phones";
|
154
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
155
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'phones';
|
156
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
157
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
158
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
159
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
+
[1m[35m (0.0ms)[0m commit transaction
|
162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
163
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
164
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
165
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
+
[1m[35m (0.0ms)[0m commit transaction
|
168
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
169
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
170
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
171
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
173
|
+
[1m[35m (0.0ms)[0m commit transaction
|
174
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
175
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
176
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
177
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
178
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
179
|
+
[1m[36m (6.0ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
180
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
181
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
182
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
183
|
+
FROM sqlite_master
|
184
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
185
|
+
UNION ALL
|
186
|
+
SELECT sql
|
187
|
+
FROM sqlite_temp_master
|
188
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
189
|
+
|
190
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
191
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
192
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
193
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
194
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
195
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
196
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
197
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
198
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
199
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
200
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
201
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
202
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
203
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
204
|
+
[1m[35m (0.0ms)[0m commit transaction
|
205
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
206
|
+
[1m[35m (0.3ms)[0m DELETE FROM "contacts";
|
207
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'contacts';
|
209
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "emails";[0m
|
210
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
211
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'emails';[0m
|
212
|
+
[1m[35m (0.1ms)[0m DELETE FROM "phones";
|
213
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
214
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'phones';
|
215
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
216
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
217
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "cc_prefix", "encrypted_number") VALUES (?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["cc_prefix", "92"], ["encrypted_number", "hFkuSUoedTG9SuJmGG6EIw==\n"]]
|
220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
221
|
+
[1m[36m (2.9ms)[0m [1mrollback transaction[0m
|
222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
223
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
224
|
+
[1m[35m (0.0ms)[0m begin transaction
|
225
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
226
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
227
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
228
|
+
[1m[35m (0.1ms)[0m begin transaction
|
229
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
230
|
+
[1m[35m (0.0ms)[0m begin transaction
|
231
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
232
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
233
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
234
|
+
[1m[35m (0.0ms)[0m begin transaction
|
235
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
236
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
239
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
240
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
241
|
+
[1m[36m (6.2ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
242
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
243
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
244
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
245
|
+
FROM sqlite_master
|
246
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
247
|
+
UNION ALL
|
248
|
+
SELECT sql
|
249
|
+
FROM sqlite_temp_master
|
250
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
251
|
+
|
252
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
253
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
254
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
255
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
256
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
257
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
258
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
259
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
260
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
261
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
262
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
263
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
264
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
265
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
266
|
+
[1m[35m (0.0ms)[0m commit transaction
|
267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
268
|
+
[1m[35m (0.3ms)[0m DELETE FROM "contacts";
|
269
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
270
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'contacts';
|
271
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "emails";[0m
|
272
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
273
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'emails';[0m
|
274
|
+
[1m[35m (0.1ms)[0m DELETE FROM "phones";
|
275
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
276
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'phones';
|
277
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
278
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
279
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
280
|
+
[1m[35m (2.5ms)[0m rollback transaction
|
281
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
282
|
+
[1m[36m (6.2ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
283
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
284
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
285
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
286
|
+
FROM sqlite_master
|
287
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
288
|
+
UNION ALL
|
289
|
+
SELECT sql
|
290
|
+
FROM sqlite_temp_master
|
291
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
292
|
+
|
293
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
294
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
295
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
296
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
297
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
298
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
299
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
300
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
301
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
302
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
303
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
304
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
305
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
307
|
+
[1m[35m (0.0ms)[0m commit transaction
|
308
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
309
|
+
[1m[35m (0.3ms)[0m DELETE FROM "contacts";
|
310
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
311
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'contacts';
|
312
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "emails";[0m
|
313
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
314
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'emails';[0m
|
315
|
+
[1m[35m (0.1ms)[0m DELETE FROM "phones";
|
316
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
317
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'phones';
|
318
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
319
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
320
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
321
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
322
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "cc_prefix", "encrypted_number") VALUES (?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["cc_prefix", "92"], ["encrypted_number", "hFkuSUoedTG9SuJmGG6EIw==\n"]]
|
323
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
324
|
+
[1m[36m (2.9ms)[0m [1mrollback transaction[0m
|
325
|
+
[1m[35m (0.1ms)[0m begin transaction
|
326
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
327
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
330
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
331
|
+
[1m[35m (0.1ms)[0m begin transaction
|
332
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
333
|
+
[1m[35m (0.0ms)[0m begin transaction
|
334
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
335
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
336
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
337
|
+
[1m[35m (0.1ms)[0m begin transaction
|
338
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
341
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
342
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
343
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
344
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "composite_name" varchar, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "prefix" varchar, "suffix" varchar, "nickname" varchar, "organization" varchar, "job_title" varchar, "department" varchar, "birthdate" date, "note" text, "record_id" integer DEFAULT 0, "creation_date" datetime, "modification_date" datetime, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
345
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
346
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_contacts_on_user_id_and_record_id" ON "contacts" ("user_id", "record_id")[0m
|
347
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
348
|
+
FROM sqlite_master
|
349
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
350
|
+
UNION ALL
|
351
|
+
SELECT sql
|
352
|
+
FROM sqlite_temp_master
|
353
|
+
WHERE name='index_contacts_on_user_id_and_record_id' AND type='index'
|
354
|
+
|
355
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")[0m
|
356
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_email" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
357
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_emails_on_encrypted_email" ON "emails" ("encrypted_email")[0m
|
358
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "extension" varchar, "contact_id" integer, "created_at" datetime, "updated_at" datetime)
|
359
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_phones_on_encrypted_number" ON "phones" ("encrypted_number")[0m
|
360
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "middle_name" varchar, "last_name" varchar, "email" varchar, "encrypted_number" varchar, "cc_prefix" varchar, "last_contact_sync" datetime)
|
361
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_users_on_encrypted_number" ON "users" ("encrypted_number")[0m
|
362
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
363
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
364
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
365
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150529072537')[0m
|
366
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150520065844')
|
367
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
369
|
+
[1m[35m (0.0ms)[0m commit transaction
|
370
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
371
|
+
[1m[35m (0.4ms)[0m DELETE FROM "contacts";
|
372
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
373
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'contacts';
|
374
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "emails";[0m
|
375
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
376
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'emails';[0m
|
377
|
+
[1m[35m (0.1ms)[0m DELETE FROM "phones";
|
378
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
379
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'phones';
|
380
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
381
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
382
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
383
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
384
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "cc_prefix", "encrypted_number") VALUES (?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["cc_prefix", "92"], ["encrypted_number", "hFkuSUoedTG9SuJmGG6EIw==\n"]]
|
385
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
386
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|