active_record_doctor 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be1694f7ee06ee05eb0381bea35f5a1446e067ab
4
- data.tar.gz: 7e781c490ba3276e6bae081d911b7ffc9e2795a3
3
+ metadata.gz: abe58ec722187467c43488a8959c9759485ed96f
4
+ data.tar.gz: 3e50e32c702cd411951f28d842e21cc289fe0cfd
5
5
  SHA512:
6
- metadata.gz: 8d30f1aad3a7469e7d0a693bae9254781875025086d3762487c70c5e740d12c9212bfe651f77a8c3b732a93b8d2a748921a654622e851b044882baa6907d9845
7
- data.tar.gz: 6dae1b721f9e19573935fc1ca883c5d3fd4a0c73c63d97db9171300259c96cb287a3edf08913a7a56b9dd4c51120308192827083aaeefa930cff6c08470d480a
6
+ metadata.gz: ad20a9304b9683357cc43c9d8828a31de92e74f21d76727b5d33692f4f8d8e1efa171b2b95bb502f4c825e63043413a7315a6ee1898a283bbb448e844a90230b
7
+ data.tar.gz: a859ed729543f9dc73ec67b4287efa671e9fede784e14b09e933861458aefee7c9eb949f59adfdd9b7652b42a35ea53ce96309150864e0373a6a5b6aa7acb2cf
data/MIT-LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2016 Greg Navis
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,104 @@
1
+ # Active Record Doctor
2
+
3
+ Active Record Doctor helps to keep the database in a good shape. Currently, it
4
+ can:
5
+
6
+ * index unindexed foreign keys
7
+ * detect extraneous indexes
8
+
9
+ More features coming soon!
10
+
11
+ Want to suggest a feature? Just shoot me [an email](mailto:contact@gregnavis.com).
12
+
13
+ [<img src="https://travis-ci.org/gregnavis/active_record_doctor.svg?branch=master" alt="Build Status" />](https://travis-ci.org/gregnavis/active_record_doctor)
14
+
15
+ ## Installation
16
+
17
+ The preferred installation method is adding `active_record_doctor` to your
18
+ `Gemfile`:
19
+
20
+ ```ruby
21
+ gem 'active_record_doctor', group: :development
22
+ ```
23
+
24
+ Then run:
25
+
26
+ ```bash
27
+ bundle install
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ ### Indexing Unindexed Foreign Keys
33
+
34
+ Foreign keys should be indexed unless it's proven ineffective. However, Rails
35
+ makes it easy to create an unindexed foreign key. Active Record Doctor can
36
+ automatically generate database migrations that add the missing indexes. It's a
37
+ three-step process:
38
+
39
+ 1. Generate a list of unindexed foreign keys by running
40
+
41
+ ```bash
42
+ rake active_record_doctor:unindexed_foreign_keys > unindexed_foreign_keys.txt
43
+ ```
44
+
45
+ 2. Remove columns that should _not_ be indexed from `unindexed_foreign_keys.txt`
46
+ as a column can look like a foreign key (i.e. end with `_id`) without being
47
+ one.
48
+
49
+ 3. Generate the migrations
50
+
51
+ ```bash
52
+ rails generate active_record_doctor:add_indexes unindexed_foreign_keys.txt
53
+ ```
54
+
55
+ 4. Run the migrations
56
+
57
+ ```bash
58
+ rake db:migrate
59
+ ```
60
+
61
+ ### Removing Extraneous Indexes
62
+
63
+ Let me illustrate with an example. Consider a `users` table with columns
64
+ `first_name` and `last_name`. If there are two indexes:
65
+
66
+ * A two-column index on `last_name, first_name`.
67
+ * A single-column index on `last_name`.
68
+
69
+ Then the latter index can be dropped as the former can play its role. In
70
+ general, a multi-column index on `column_1, column_2, ..., column_n` can replace
71
+ indexes on:
72
+
73
+ * `column_1`
74
+ * `column_1, column_2`
75
+ * ...
76
+ * `column_1, column_2, ..., column_(n - 1)`
77
+
78
+ To discover such indexes automatically just follow these steps:
79
+
80
+ 1. List extraneous indexes by running:
81
+
82
+ ```bash
83
+ rake active_record_doctor:extraneous_indexes
84
+ ```
85
+
86
+ 2. Confirm that each of the indexes can be indeed dropped.
87
+
88
+ 3. Create a migration to drop the indexes.
89
+
90
+ The indexes aren't dropped automatically because there's usually just a few of
91
+ them and it's a good idea to double-check that you won't drop something
92
+ necessary.
93
+
94
+ Also, extra indexes on primary keys are considered extraneous too and will be
95
+ reported.
96
+
97
+ Note that a unique index can _never be replaced by a non-unique one_. For
98
+ example, if there's a unique index on `users.login` and a non-unique index on
99
+ `users.login, users.domain` then the tool will _not_ suggest dropping
100
+ `users.login` as it could violate the uniqueness assumption.
101
+
102
+ ## Author
103
+
104
+ This gem is developed and maintained by [Greg Navis](http://www.gregnavis.com).
@@ -16,8 +16,16 @@ module ActiveRecordDoctor
16
16
  @io.puts("No indexes are extraneous.")
17
17
  else
18
18
  @io.puts("The following indexes are extraneous and can be removed:")
19
- extraneous_indexes.each do |index, super_index|
20
- @io.puts(" #{index} (can be handled by #{super_index})")
19
+ extraneous_indexes.each do |index, details|
20
+ reason, *params = details
21
+ case reason
22
+ when :multi_column
23
+ @io.puts(" #{index} (can be handled by #{params.join(', ')})")
24
+ when :primary_key
25
+ @io.puts(" #{index} (is a primary key of #{params[0]})")
26
+ else
27
+ fail("unknown reason #{reason.inspect}")
28
+ end
21
29
  end
22
30
  end
23
31
  end
@@ -18,33 +18,72 @@ module ActiveRecordDoctor
18
18
  private
19
19
 
20
20
  def extraneous_indexes
21
- @extraneous_indexes ||=
22
- tables.reject do |table|
23
- "schema_migrations" == table
24
- end.map do |table|
25
- indexes = indexes(table)
26
- maximum_indexes = indexes.select do |index|
27
- indexes.all? do |another_index|
28
- index == another_index || !prefix?(index, another_index)
29
- end
30
- end
21
+ subindexes_of_multi_column_indexes + indexed_primary_keys
22
+ end
23
+
24
+ def subindexes_of_multi_column_indexes
25
+ tables.reject do |table|
26
+ "schema_migrations" == table
27
+ end.flat_map do |table|
28
+ indexes = indexes(table)
29
+ maximum_indexes = indexes.select do |index|
30
+ maximal?(indexes, index)
31
+ end
31
32
 
32
- indexes.reject do |index|
33
- maximum_indexes.include?(index)
34
- end.map do |extraneous_index|
33
+ indexes.reject do |index|
34
+ maximum_indexes.include?(index)
35
+ end.map do |extraneous_index|
36
+ [
37
+ extraneous_index.name,
35
38
  [
36
- extraneous_index.name,
37
- maximum_indexes.find do |maximum_index|
38
- prefix?(extraneous_index, maximum_index)
39
- end.name
40
- ]
39
+ :multi_column,
40
+ maximum_indexes.select do |maximum_index|
41
+ cover?(maximum_index, extraneous_index)
42
+ end.map(&:name).sort
43
+ ].flatten(1)
44
+ ]
45
+ end
46
+ end
47
+ end
48
+
49
+ def indexed_primary_keys
50
+ @indexed_primary_keys ||= tables.reject do |table|
51
+ "schema_migrations" == table
52
+ end.map do |table|
53
+ [
54
+ table,
55
+ indexes(table).select do |index|
56
+ index.columns == ["id"]
41
57
  end
42
- end.flatten(1)
58
+ ]
59
+ end.flat_map do |table, indexes|
60
+ indexes.map do |index|
61
+ [index.name, [:primary_key, table]]
62
+ end
63
+ end
64
+ end
65
+
66
+ def maximal?(indexes, index)
67
+ indexes.all? do |another_index|
68
+ index == another_index || !cover?(another_index, index)
69
+ end
70
+ end
71
+
72
+ # Does lhs cover rhs?
73
+ def cover?(lhs, rhs)
74
+ case [lhs.unique, rhs.unique]
75
+ when [true, true]
76
+ lhs.columns == rhs.columns
77
+ when [false, true]
78
+ false
79
+ else
80
+ prefix?(rhs, lhs)
81
+ end
43
82
  end
44
83
 
45
84
  def prefix?(lhs, rhs)
46
- lhs.columns.count <= rhs.columns.count &&
47
- rhs.columns[0...lhs.columns.count] == lhs.columns
85
+ lhs.columns.count <= rhs.columns.count &&
86
+ rhs.columns[0...lhs.columns.count] == lhs.columns
48
87
  end
49
88
 
50
89
  def indexes(table_name)
@@ -24,7 +24,9 @@ module ActiveRecordDoctor
24
24
  [
25
25
  table,
26
26
  connection.columns(table).select do |column|
27
- foreign_key?(table, column) && !indexed?(table, column)
27
+ foreign_key?(table, column) &&
28
+ !indexed?(table, column) &&
29
+ !indexed_as_polymorphic?(table, column)
28
30
  end.map(&:name)
29
31
  ]
30
32
  end.select do |table, columns|
@@ -42,6 +44,13 @@ module ActiveRecordDoctor
42
44
  end
43
45
  end
44
46
 
47
+ def indexed_as_polymorphic?(table, column)
48
+ type_column_name = column.name.sub(/_id\Z/, '_type')
49
+ connection.indexes(table).any? do |index|
50
+ index.columns == [type_column_name, column.name]
51
+ end
52
+ end
53
+
45
54
  def connection
46
55
  @connection ||= ActiveRecord::Base.connection
47
56
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordDoctor
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -7,11 +7,13 @@ class ActiveRecordDoctor::Tasks::ExtraneousIndexesTest < ActiveSupport::TestCase
7
7
  result = run_task
8
8
 
9
9
  assert_equal(
10
- result.sort,
11
10
  [
12
- ["index_users_on_last_name_and_first_name", "index_users_on_last_name_and_first_name_and_email"],
13
- ["index_users_on_last_name", "index_users_on_last_name_and_first_name_and_email"]
14
- ].sort
11
+ ["index_employers_on_id", [:primary_key, "employers"]],
12
+ ["index_users_on_last_name", [:multi_column, "index_users_on_last_name_and_first_name_and_email", "unique_index_on_users_last_name_and_first_name"]],
13
+ ["index_users_on_last_name_and_first_name", [:multi_column, "index_users_on_last_name_and_first_name_and_email", "unique_index_on_users_last_name_and_first_name"]],
14
+ ["index_users_on_email", [:multi_column, "unique_index_on_users_email"]],
15
+ ].sort,
16
+ result.sort
15
17
  )
16
18
  end
17
19
 
@@ -0,0 +1,3 @@
1
+ class Comment < ActiveRecord::Base
2
+ belongs_to :commentable, polymorphic: true
3
+ end
Binary file
@@ -12,8 +12,10 @@ class CreateUsers < ActiveRecord::Migration
12
12
  end
13
13
  add_index :users, [:last_name, :first_name, :email]
14
14
  add_index :users, [:last_name, :first_name]
15
+ add_index :users, [:last_name, :first_name], unique: true, name: :unique_index_on_users_last_name_and_first_name
15
16
  add_index :users, :last_name
16
- add_index :users, :email, unique: true
17
+ add_index :users, :email
18
+ add_index :users, :email, unique: true, name: :unique_index_on_users_email
17
19
  add_index :users, [:employer_id, :country_code]
18
20
  end
19
21
  end
@@ -5,5 +5,7 @@ class CreateEmployers < ActiveRecord::Migration
5
5
 
6
6
  t.timestamps null: false
7
7
  end
8
+
9
+ add_index :employers, :id
8
10
  end
9
11
  end
@@ -0,0 +1,9 @@
1
+ class CreateComments < ActiveRecord::Migration
2
+ def change
3
+ create_table :comments do |t|
4
+ t.references :commentable, polymorphic: true, index: true
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -11,7 +11,16 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160213102131) do
14
+ ActiveRecord::Schema.define(version: 20160604081452) do
15
+
16
+ create_table "comments", force: :cascade do |t|
17
+ t.integer "commentable_id"
18
+ t.string "commentable_type"
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ end
22
+
23
+ add_index "comments", ["commentable_type", "commentable_id"], name: "index_comments_on_commentable_type_and_commentable_id"
15
24
 
16
25
  create_table "employers", force: :cascade do |t|
17
26
  t.string "name"
@@ -19,6 +28,8 @@ ActiveRecord::Schema.define(version: 20160213102131) do
19
28
  t.datetime "updated_at", null: false
20
29
  end
21
30
 
31
+ add_index "employers", ["id"], name: "index_employers_on_id"
32
+
22
33
  create_table "profiles", force: :cascade do |t|
23
34
  t.string "first_name"
24
35
  t.string "last_name"
@@ -37,10 +48,12 @@ ActiveRecord::Schema.define(version: 20160213102131) do
37
48
  t.datetime "updated_at", null: false
38
49
  end
39
50
 
40
- add_index "users", ["email"], name: "index_users_on_email", unique: true
51
+ add_index "users", ["email"], name: "index_users_on_email"
52
+ add_index "users", ["email"], name: "unique_index_on_users_email", unique: true
41
53
  add_index "users", ["employer_id", "country_code"], name: "index_users_on_employer_id_and_country_code"
42
54
  add_index "users", ["last_name", "first_name", "email"], name: "index_users_on_last_name_and_first_name_and_email"
43
55
  add_index "users", ["last_name", "first_name"], name: "index_users_on_last_name_and_first_name"
56
+ add_index "users", ["last_name", "first_name"], name: "unique_index_on_users_last_name_and_first_name", unique: true
44
57
  add_index "users", ["last_name"], name: "index_users_on_last_name"
45
58
 
46
59
  end
Binary file
@@ -957,3 +957,3736 @@ Migrating to CreateEmployers (20160213102131)
957
957
  FROM sqlite_temp_master
958
958
  WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
959
959
  
960
+  (27.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
961
+  (0.0ms) select sqlite_version(*)
962
+  (24.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
963
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
964
+ Migrating to CreateUsers (20160213101213)
965
+  (0.0ms) begin transaction
966
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
967
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
968
+  (0.1ms) SELECT sql
969
+ FROM sqlite_master
970
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
971
+ UNION ALL
972
+ SELECT sql
973
+ FROM sqlite_temp_master
974
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
975
+
976
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
977
+  (0.0ms) SELECT sql
978
+ FROM sqlite_master
979
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
980
+ UNION ALL
981
+ SELECT sql
982
+ FROM sqlite_temp_master
983
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
984
+
985
+  (0.0ms)  SELECT sql
986
+ FROM sqlite_master
987
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
988
+ UNION ALL
989
+ SELECT sql
990
+ FROM sqlite_temp_master
991
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
992
+ 
993
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
994
+  (0.0ms)  SELECT sql
995
+ FROM sqlite_master
996
+ WHERE name='index_users_on_last_name' AND type='index'
997
+ UNION ALL
998
+ SELECT sql
999
+ FROM sqlite_temp_master
1000
+ WHERE name='index_users_on_last_name' AND type='index'
1001
+ 
1002
+  (0.0ms) SELECT sql
1003
+ FROM sqlite_master
1004
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1005
+ UNION ALL
1006
+ SELECT sql
1007
+ FROM sqlite_temp_master
1008
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1009
+
1010
+  (0.0ms)  SELECT sql
1011
+ FROM sqlite_master
1012
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1013
+ UNION ALL
1014
+ SELECT sql
1015
+ FROM sqlite_temp_master
1016
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1017
+ 
1018
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1019
+  (0.0ms)  SELECT sql
1020
+ FROM sqlite_master
1021
+ WHERE name='index_users_on_email' AND type='index'
1022
+ UNION ALL
1023
+ SELECT sql
1024
+ FROM sqlite_temp_master
1025
+ WHERE name='index_users_on_email' AND type='index'
1026
+ 
1027
+  (0.0ms) SELECT sql
1028
+ FROM sqlite_master
1029
+ WHERE name='index_users_on_last_name' AND type='index'
1030
+ UNION ALL
1031
+ SELECT sql
1032
+ FROM sqlite_temp_master
1033
+ WHERE name='index_users_on_last_name' AND type='index'
1034
+
1035
+  (0.0ms)  SELECT sql
1036
+ FROM sqlite_master
1037
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1038
+ UNION ALL
1039
+ SELECT sql
1040
+ FROM sqlite_temp_master
1041
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1042
+ 
1043
+  (0.0ms) SELECT sql
1044
+ FROM sqlite_master
1045
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1046
+ UNION ALL
1047
+ SELECT sql
1048
+ FROM sqlite_temp_master
1049
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1050
+
1051
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
1052
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
1053
+  (30.2ms) commit transaction
1054
+ Migrating to CreateProfiles (20160213101232)
1055
+  (0.0ms) begin transaction
1056
+  (0.2ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1057
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
1058
+  (40.7ms) commit transaction
1059
+ Migrating to CreateEmployers (20160213102131)
1060
+  (0.0ms) begin transaction
1061
+  (0.2ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1062
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
1063
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
1064
+  (27.2ms) commit transaction
1065
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1066
+  (0.0ms) SELECT sql
1067
+ FROM sqlite_master
1068
+ WHERE name='index_employers_on_id' AND type='index'
1069
+ UNION ALL
1070
+ SELECT sql
1071
+ FROM sqlite_temp_master
1072
+ WHERE name='index_employers_on_id' AND type='index'
1073
+
1074
+  (0.1ms)  SELECT sql
1075
+ FROM sqlite_master
1076
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1077
+ UNION ALL
1078
+ SELECT sql
1079
+ FROM sqlite_temp_master
1080
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1081
+ 
1082
+  (0.1ms) SELECT sql
1083
+ FROM sqlite_master
1084
+ WHERE name='index_users_on_email' AND type='index'
1085
+ UNION ALL
1086
+ SELECT sql
1087
+ FROM sqlite_temp_master
1088
+ WHERE name='index_users_on_email' AND type='index'
1089
+
1090
+  (0.0ms)  SELECT sql
1091
+ FROM sqlite_master
1092
+ WHERE name='index_users_on_last_name' AND type='index'
1093
+ UNION ALL
1094
+ SELECT sql
1095
+ FROM sqlite_temp_master
1096
+ WHERE name='index_users_on_last_name' AND type='index'
1097
+ 
1098
+  (0.0ms) SELECT sql
1099
+ FROM sqlite_master
1100
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1101
+ UNION ALL
1102
+ SELECT sql
1103
+ FROM sqlite_temp_master
1104
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1105
+
1106
+  (0.0ms)  SELECT sql
1107
+ FROM sqlite_master
1108
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1109
+ UNION ALL
1110
+ SELECT sql
1111
+ FROM sqlite_temp_master
1112
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1113
+ 
1114
+  (32.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1115
+  (0.0ms) select sqlite_version(*)
1116
+  (33.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1118
+ Migrating to CreateUsers (20160213101213)
1119
+  (0.0ms) begin transaction
1120
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1121
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
1122
+  (0.1ms) SELECT sql
1123
+ FROM sqlite_master
1124
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1125
+ UNION ALL
1126
+ SELECT sql
1127
+ FROM sqlite_temp_master
1128
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1129
+
1130
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
1131
+  (0.0ms) SELECT sql
1132
+ FROM sqlite_master
1133
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1134
+ UNION ALL
1135
+ SELECT sql
1136
+ FROM sqlite_temp_master
1137
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1138
+
1139
+  (0.0ms)  SELECT sql
1140
+ FROM sqlite_master
1141
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1142
+ UNION ALL
1143
+ SELECT sql
1144
+ FROM sqlite_temp_master
1145
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1146
+ 
1147
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
1148
+  (0.0ms)  SELECT sql
1149
+ FROM sqlite_master
1150
+ WHERE name='index_users_on_last_name' AND type='index'
1151
+ UNION ALL
1152
+ SELECT sql
1153
+ FROM sqlite_temp_master
1154
+ WHERE name='index_users_on_last_name' AND type='index'
1155
+ 
1156
+  (0.0ms) SELECT sql
1157
+ FROM sqlite_master
1158
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1159
+ UNION ALL
1160
+ SELECT sql
1161
+ FROM sqlite_temp_master
1162
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1163
+
1164
+  (0.0ms)  SELECT sql
1165
+ FROM sqlite_master
1166
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1167
+ UNION ALL
1168
+ SELECT sql
1169
+ FROM sqlite_temp_master
1170
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1171
+ 
1172
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1173
+  (0.0ms)  SELECT sql
1174
+ FROM sqlite_master
1175
+ WHERE name='index_users_on_email' AND type='index'
1176
+ UNION ALL
1177
+ SELECT sql
1178
+ FROM sqlite_temp_master
1179
+ WHERE name='index_users_on_email' AND type='index'
1180
+ 
1181
+  (0.0ms) SELECT sql
1182
+ FROM sqlite_master
1183
+ WHERE name='index_users_on_last_name' AND type='index'
1184
+ UNION ALL
1185
+ SELECT sql
1186
+ FROM sqlite_temp_master
1187
+ WHERE name='index_users_on_last_name' AND type='index'
1188
+
1189
+  (0.1ms)  SELECT sql
1190
+ FROM sqlite_master
1191
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1192
+ UNION ALL
1193
+ SELECT sql
1194
+ FROM sqlite_temp_master
1195
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1196
+ 
1197
+  (0.0ms) SELECT sql
1198
+ FROM sqlite_master
1199
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1200
+ UNION ALL
1201
+ SELECT sql
1202
+ FROM sqlite_temp_master
1203
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1204
+
1205
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
1206
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
1207
+  (34.8ms) commit transaction
1208
+ Migrating to CreateProfiles (20160213101232)
1209
+  (0.0ms) begin transaction
1210
+  (0.2ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1211
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
1212
+  (24.7ms) commit transaction
1213
+ Migrating to CreateEmployers (20160213102131)
1214
+  (0.0ms) begin transaction
1215
+  (0.2ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1216
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
1217
+  (0.0ms)  SELECT sql
1218
+ FROM sqlite_master
1219
+ WHERE name='index_employers_on_id' AND type='index'
1220
+ UNION ALL
1221
+ SELECT sql
1222
+ FROM sqlite_temp_master
1223
+ WHERE name='index_employers_on_id' AND type='index'
1224
+ 
1225
+  (0.1ms) CREATE INDEX "index_employers_on_id_and_name" ON "employers" ("id", "name")
1226
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
1227
+  (32.7ms) commit transaction
1228
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1229
+  (0.1ms) SELECT sql
1230
+ FROM sqlite_master
1231
+ WHERE name='index_employers_on_id_and_name' AND type='index'
1232
+ UNION ALL
1233
+ SELECT sql
1234
+ FROM sqlite_temp_master
1235
+ WHERE name='index_employers_on_id_and_name' AND type='index'
1236
+
1237
+  (0.0ms)  SELECT sql
1238
+ FROM sqlite_master
1239
+ WHERE name='index_employers_on_id' AND type='index'
1240
+ UNION ALL
1241
+ SELECT sql
1242
+ FROM sqlite_temp_master
1243
+ WHERE name='index_employers_on_id' AND type='index'
1244
+ 
1245
+  (0.1ms) SELECT sql
1246
+ FROM sqlite_master
1247
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1248
+ UNION ALL
1249
+ SELECT sql
1250
+ FROM sqlite_temp_master
1251
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1252
+
1253
+  (0.0ms)  SELECT sql
1254
+ FROM sqlite_master
1255
+ WHERE name='index_users_on_email' AND type='index'
1256
+ UNION ALL
1257
+ SELECT sql
1258
+ FROM sqlite_temp_master
1259
+ WHERE name='index_users_on_email' AND type='index'
1260
+ 
1261
+  (0.0ms) SELECT sql
1262
+ FROM sqlite_master
1263
+ WHERE name='index_users_on_last_name' AND type='index'
1264
+ UNION ALL
1265
+ SELECT sql
1266
+ FROM sqlite_temp_master
1267
+ WHERE name='index_users_on_last_name' AND type='index'
1268
+
1269
+  (0.0ms)  SELECT sql
1270
+ FROM sqlite_master
1271
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1272
+ UNION ALL
1273
+ SELECT sql
1274
+ FROM sqlite_temp_master
1275
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1276
+ 
1277
+  (0.0ms) SELECT sql
1278
+ FROM sqlite_master
1279
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1280
+ UNION ALL
1281
+ SELECT sql
1282
+ FROM sqlite_temp_master
1283
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1284
+
1285
+  (33.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1286
+  (0.0ms) select sqlite_version(*)
1287
+  (21.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1288
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1289
+ Migrating to CreateUsers (20160213101213)
1290
+  (0.0ms) begin transaction
1291
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1292
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
1293
+  (0.1ms) SELECT sql
1294
+ FROM sqlite_master
1295
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1296
+ UNION ALL
1297
+ SELECT sql
1298
+ FROM sqlite_temp_master
1299
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1300
+
1301
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
1302
+  (0.0ms) SELECT sql
1303
+ FROM sqlite_master
1304
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1305
+ UNION ALL
1306
+ SELECT sql
1307
+ FROM sqlite_temp_master
1308
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1309
+
1310
+  (0.0ms)  SELECT sql
1311
+ FROM sqlite_master
1312
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1313
+ UNION ALL
1314
+ SELECT sql
1315
+ FROM sqlite_temp_master
1316
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1317
+ 
1318
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
1319
+  (0.0ms)  SELECT sql
1320
+ FROM sqlite_master
1321
+ WHERE name='index_users_on_last_name' AND type='index'
1322
+ UNION ALL
1323
+ SELECT sql
1324
+ FROM sqlite_temp_master
1325
+ WHERE name='index_users_on_last_name' AND type='index'
1326
+ 
1327
+  (0.0ms) SELECT sql
1328
+ FROM sqlite_master
1329
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1330
+ UNION ALL
1331
+ SELECT sql
1332
+ FROM sqlite_temp_master
1333
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1334
+
1335
+  (0.0ms)  SELECT sql
1336
+ FROM sqlite_master
1337
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1338
+ UNION ALL
1339
+ SELECT sql
1340
+ FROM sqlite_temp_master
1341
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1342
+ 
1343
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1344
+  (0.0ms)  SELECT sql
1345
+ FROM sqlite_master
1346
+ WHERE name='index_users_on_email' AND type='index'
1347
+ UNION ALL
1348
+ SELECT sql
1349
+ FROM sqlite_temp_master
1350
+ WHERE name='index_users_on_email' AND type='index'
1351
+ 
1352
+  (0.0ms) SELECT sql
1353
+ FROM sqlite_master
1354
+ WHERE name='index_users_on_last_name' AND type='index'
1355
+ UNION ALL
1356
+ SELECT sql
1357
+ FROM sqlite_temp_master
1358
+ WHERE name='index_users_on_last_name' AND type='index'
1359
+
1360
+  (0.0ms)  SELECT sql
1361
+ FROM sqlite_master
1362
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1363
+ UNION ALL
1364
+ SELECT sql
1365
+ FROM sqlite_temp_master
1366
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1367
+ 
1368
+  (0.0ms) SELECT sql
1369
+ FROM sqlite_master
1370
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1371
+ UNION ALL
1372
+ SELECT sql
1373
+ FROM sqlite_temp_master
1374
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1375
+
1376
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
1377
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
1378
+  (24.8ms) commit transaction
1379
+ Migrating to CreateProfiles (20160213101232)
1380
+  (0.0ms) begin transaction
1381
+  (0.2ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1382
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
1383
+  (34.7ms) commit transaction
1384
+ Migrating to CreateEmployers (20160213102131)
1385
+  (0.0ms) begin transaction
1386
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1387
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
1388
+  (0.1ms)  SELECT sql
1389
+ FROM sqlite_master
1390
+ WHERE name='index_employers_on_id' AND type='index'
1391
+ UNION ALL
1392
+ SELECT sql
1393
+ FROM sqlite_temp_master
1394
+ WHERE name='index_employers_on_id' AND type='index'
1395
+ 
1396
+  (0.1ms) CREATE INDEX "index_employers_on_id_and_name" ON "employers" ("id", "name")
1397
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
1398
+  (24.7ms) commit transaction
1399
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1400
+  (0.1ms) SELECT sql
1401
+ FROM sqlite_master
1402
+ WHERE name='index_employers_on_id_and_name' AND type='index'
1403
+ UNION ALL
1404
+ SELECT sql
1405
+ FROM sqlite_temp_master
1406
+ WHERE name='index_employers_on_id_and_name' AND type='index'
1407
+
1408
+  (0.1ms)  SELECT sql
1409
+ FROM sqlite_master
1410
+ WHERE name='index_employers_on_id' AND type='index'
1411
+ UNION ALL
1412
+ SELECT sql
1413
+ FROM sqlite_temp_master
1414
+ WHERE name='index_employers_on_id' AND type='index'
1415
+ 
1416
+  (0.1ms) SELECT sql
1417
+ FROM sqlite_master
1418
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1419
+ UNION ALL
1420
+ SELECT sql
1421
+ FROM sqlite_temp_master
1422
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1423
+
1424
+  (0.1ms)  SELECT sql
1425
+ FROM sqlite_master
1426
+ WHERE name='index_users_on_email' AND type='index'
1427
+ UNION ALL
1428
+ SELECT sql
1429
+ FROM sqlite_temp_master
1430
+ WHERE name='index_users_on_email' AND type='index'
1431
+ 
1432
+  (0.1ms) SELECT sql
1433
+ FROM sqlite_master
1434
+ WHERE name='index_users_on_last_name' AND type='index'
1435
+ UNION ALL
1436
+ SELECT sql
1437
+ FROM sqlite_temp_master
1438
+ WHERE name='index_users_on_last_name' AND type='index'
1439
+
1440
+  (0.1ms)  SELECT sql
1441
+ FROM sqlite_master
1442
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1443
+ UNION ALL
1444
+ SELECT sql
1445
+ FROM sqlite_temp_master
1446
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1447
+ 
1448
+  (0.1ms) SELECT sql
1449
+ FROM sqlite_master
1450
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1451
+ UNION ALL
1452
+ SELECT sql
1453
+ FROM sqlite_temp_master
1454
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1455
+
1456
+  (22.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1457
+  (0.0ms) select sqlite_version(*)
1458
+  (34.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1459
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1460
+ Migrating to CreateUsers (20160213101213)
1461
+  (0.0ms) begin transaction
1462
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1463
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
1464
+  (0.1ms) SELECT sql
1465
+ FROM sqlite_master
1466
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1467
+ UNION ALL
1468
+ SELECT sql
1469
+ FROM sqlite_temp_master
1470
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1471
+
1472
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
1473
+  (0.0ms) SELECT sql
1474
+ FROM sqlite_master
1475
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1476
+ UNION ALL
1477
+ SELECT sql
1478
+ FROM sqlite_temp_master
1479
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1480
+
1481
+  (0.0ms)  SELECT sql
1482
+ FROM sqlite_master
1483
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1484
+ UNION ALL
1485
+ SELECT sql
1486
+ FROM sqlite_temp_master
1487
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1488
+ 
1489
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
1490
+  (0.0ms)  SELECT sql
1491
+ FROM sqlite_master
1492
+ WHERE name='index_users_on_last_name' AND type='index'
1493
+ UNION ALL
1494
+ SELECT sql
1495
+ FROM sqlite_temp_master
1496
+ WHERE name='index_users_on_last_name' AND type='index'
1497
+ 
1498
+  (0.0ms) SELECT sql
1499
+ FROM sqlite_master
1500
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1501
+ UNION ALL
1502
+ SELECT sql
1503
+ FROM sqlite_temp_master
1504
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1505
+
1506
+  (0.0ms)  SELECT sql
1507
+ FROM sqlite_master
1508
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1509
+ UNION ALL
1510
+ SELECT sql
1511
+ FROM sqlite_temp_master
1512
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1513
+ 
1514
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1515
+  (0.0ms)  SELECT sql
1516
+ FROM sqlite_master
1517
+ WHERE name='index_users_on_email' AND type='index'
1518
+ UNION ALL
1519
+ SELECT sql
1520
+ FROM sqlite_temp_master
1521
+ WHERE name='index_users_on_email' AND type='index'
1522
+ 
1523
+  (0.0ms) SELECT sql
1524
+ FROM sqlite_master
1525
+ WHERE name='index_users_on_last_name' AND type='index'
1526
+ UNION ALL
1527
+ SELECT sql
1528
+ FROM sqlite_temp_master
1529
+ WHERE name='index_users_on_last_name' AND type='index'
1530
+
1531
+  (0.0ms)  SELECT sql
1532
+ FROM sqlite_master
1533
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1534
+ UNION ALL
1535
+ SELECT sql
1536
+ FROM sqlite_temp_master
1537
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1538
+ 
1539
+  (0.0ms) SELECT sql
1540
+ FROM sqlite_master
1541
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1542
+ UNION ALL
1543
+ SELECT sql
1544
+ FROM sqlite_temp_master
1545
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1546
+
1547
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
1548
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
1549
+  (33.0ms) commit transaction
1550
+ Migrating to CreateProfiles (20160213101232)
1551
+  (0.0ms) begin transaction
1552
+  (0.2ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1553
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
1554
+  (30.0ms) commit transaction
1555
+ Migrating to CreateEmployers (20160213102131)
1556
+  (0.0ms) begin transaction
1557
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1558
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
1559
+ SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
1560
+  (21.6ms) commit transaction
1561
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1562
+  (0.1ms) SELECT sql
1563
+ FROM sqlite_master
1564
+ WHERE name='index_employers_on_id' AND type='index'
1565
+ UNION ALL
1566
+ SELECT sql
1567
+ FROM sqlite_temp_master
1568
+ WHERE name='index_employers_on_id' AND type='index'
1569
+
1570
+  (0.1ms)  SELECT sql
1571
+ FROM sqlite_master
1572
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1573
+ UNION ALL
1574
+ SELECT sql
1575
+ FROM sqlite_temp_master
1576
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1577
+ 
1578
+  (0.0ms) SELECT sql
1579
+ FROM sqlite_master
1580
+ WHERE name='index_users_on_email' AND type='index'
1581
+ UNION ALL
1582
+ SELECT sql
1583
+ FROM sqlite_temp_master
1584
+ WHERE name='index_users_on_email' AND type='index'
1585
+
1586
+  (0.0ms)  SELECT sql
1587
+ FROM sqlite_master
1588
+ WHERE name='index_users_on_last_name' AND type='index'
1589
+ UNION ALL
1590
+ SELECT sql
1591
+ FROM sqlite_temp_master
1592
+ WHERE name='index_users_on_last_name' AND type='index'
1593
+ 
1594
+  (0.0ms) SELECT sql
1595
+ FROM sqlite_master
1596
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1597
+ UNION ALL
1598
+ SELECT sql
1599
+ FROM sqlite_temp_master
1600
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1601
+
1602
+  (0.0ms)  SELECT sql
1603
+ FROM sqlite_master
1604
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1605
+ UNION ALL
1606
+ SELECT sql
1607
+ FROM sqlite_temp_master
1608
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1609
+ 
1610
+  (0.1ms)  SELECT sql
1611
+ FROM sqlite_master
1612
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1613
+ UNION ALL
1614
+ SELECT sql
1615
+ FROM sqlite_temp_master
1616
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1617
+ 
1618
+  (0.0ms) SELECT sql
1619
+ FROM sqlite_master
1620
+ WHERE name='index_users_on_email' AND type='index'
1621
+ UNION ALL
1622
+ SELECT sql
1623
+ FROM sqlite_temp_master
1624
+ WHERE name='index_users_on_email' AND type='index'
1625
+
1626
+  (0.0ms)  SELECT sql
1627
+ FROM sqlite_master
1628
+ WHERE name='index_users_on_last_name' AND type='index'
1629
+ UNION ALL
1630
+ SELECT sql
1631
+ FROM sqlite_temp_master
1632
+ WHERE name='index_users_on_last_name' AND type='index'
1633
+ 
1634
+  (0.0ms) SELECT sql
1635
+ FROM sqlite_master
1636
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1637
+ UNION ALL
1638
+ SELECT sql
1639
+ FROM sqlite_temp_master
1640
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1641
+
1642
+  (0.0ms)  SELECT sql
1643
+ FROM sqlite_master
1644
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1645
+ UNION ALL
1646
+ SELECT sql
1647
+ FROM sqlite_temp_master
1648
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1649
+ 
1650
+  (0.0ms) SELECT sql
1651
+ FROM sqlite_master
1652
+ WHERE name='index_employers_on_id' AND type='index'
1653
+ UNION ALL
1654
+ SELECT sql
1655
+ FROM sqlite_temp_master
1656
+ WHERE name='index_employers_on_id' AND type='index'
1657
+
1658
+  (0.0ms)  SELECT sql
1659
+ FROM sqlite_master
1660
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1661
+ UNION ALL
1662
+ SELECT sql
1663
+ FROM sqlite_temp_master
1664
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1665
+ 
1666
+  (0.0ms) SELECT sql
1667
+ FROM sqlite_master
1668
+ WHERE name='index_users_on_email' AND type='index'
1669
+ UNION ALL
1670
+ SELECT sql
1671
+ FROM sqlite_temp_master
1672
+ WHERE name='index_users_on_email' AND type='index'
1673
+
1674
+  (0.0ms)  SELECT sql
1675
+ FROM sqlite_master
1676
+ WHERE name='index_users_on_last_name' AND type='index'
1677
+ UNION ALL
1678
+ SELECT sql
1679
+ FROM sqlite_temp_master
1680
+ WHERE name='index_users_on_last_name' AND type='index'
1681
+ 
1682
+  (0.0ms) SELECT sql
1683
+ FROM sqlite_master
1684
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1685
+ UNION ALL
1686
+ SELECT sql
1687
+ FROM sqlite_temp_master
1688
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1689
+
1690
+  (0.0ms)  SELECT sql
1691
+ FROM sqlite_master
1692
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1693
+ UNION ALL
1694
+ SELECT sql
1695
+ FROM sqlite_temp_master
1696
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1697
+ 
1698
+  (0.0ms) SELECT sql
1699
+ FROM sqlite_master
1700
+ WHERE name='index_employers_on_id' AND type='index'
1701
+ UNION ALL
1702
+ SELECT sql
1703
+ FROM sqlite_temp_master
1704
+ WHERE name='index_employers_on_id' AND type='index'
1705
+
1706
+  (0.1ms)  SELECT sql
1707
+ FROM sqlite_master
1708
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1709
+ UNION ALL
1710
+ SELECT sql
1711
+ FROM sqlite_temp_master
1712
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1713
+ 
1714
+  (0.0ms) SELECT sql
1715
+ FROM sqlite_master
1716
+ WHERE name='index_users_on_email' AND type='index'
1717
+ UNION ALL
1718
+ SELECT sql
1719
+ FROM sqlite_temp_master
1720
+ WHERE name='index_users_on_email' AND type='index'
1721
+
1722
+  (0.0ms)  SELECT sql
1723
+ FROM sqlite_master
1724
+ WHERE name='index_users_on_last_name' AND type='index'
1725
+ UNION ALL
1726
+ SELECT sql
1727
+ FROM sqlite_temp_master
1728
+ WHERE name='index_users_on_last_name' AND type='index'
1729
+ 
1730
+  (0.1ms) SELECT sql
1731
+ FROM sqlite_master
1732
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1733
+ UNION ALL
1734
+ SELECT sql
1735
+ FROM sqlite_temp_master
1736
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1737
+
1738
+  (0.0ms)  SELECT sql
1739
+ FROM sqlite_master
1740
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1741
+ UNION ALL
1742
+ SELECT sql
1743
+ FROM sqlite_temp_master
1744
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1745
+ 
1746
+  (0.0ms) SELECT sql
1747
+ FROM sqlite_master
1748
+ WHERE name='index_employers_on_id' AND type='index'
1749
+ UNION ALL
1750
+ SELECT sql
1751
+ FROM sqlite_temp_master
1752
+ WHERE name='index_employers_on_id' AND type='index'
1753
+
1754
+  (0.0ms)  SELECT sql
1755
+ FROM sqlite_master
1756
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1757
+ UNION ALL
1758
+ SELECT sql
1759
+ FROM sqlite_temp_master
1760
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1761
+ 
1762
+  (0.0ms) SELECT sql
1763
+ FROM sqlite_master
1764
+ WHERE name='index_users_on_email' AND type='index'
1765
+ UNION ALL
1766
+ SELECT sql
1767
+ FROM sqlite_temp_master
1768
+ WHERE name='index_users_on_email' AND type='index'
1769
+
1770
+  (0.0ms)  SELECT sql
1771
+ FROM sqlite_master
1772
+ WHERE name='index_users_on_last_name' AND type='index'
1773
+ UNION ALL
1774
+ SELECT sql
1775
+ FROM sqlite_temp_master
1776
+ WHERE name='index_users_on_last_name' AND type='index'
1777
+ 
1778
+  (0.0ms) SELECT sql
1779
+ FROM sqlite_master
1780
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1781
+ UNION ALL
1782
+ SELECT sql
1783
+ FROM sqlite_temp_master
1784
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1785
+
1786
+  (0.0ms)  SELECT sql
1787
+ FROM sqlite_master
1788
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1789
+ UNION ALL
1790
+ SELECT sql
1791
+ FROM sqlite_temp_master
1792
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1793
+ 
1794
+  (0.0ms) SELECT sql
1795
+ FROM sqlite_master
1796
+ WHERE name='index_employers_on_id' AND type='index'
1797
+ UNION ALL
1798
+ SELECT sql
1799
+ FROM sqlite_temp_master
1800
+ WHERE name='index_employers_on_id' AND type='index'
1801
+
1802
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1803
+ Migrating to CreateComments (20160604081452)
1804
+  (0.0ms) begin transaction
1805
+  (0.2ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1806
+  (0.0ms) select sqlite_version(*)
1807
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
1808
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
1809
+  (45.4ms) commit transaction
1810
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1811
+  (0.1ms)  SELECT sql
1812
+ FROM sqlite_master
1813
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
1814
+ UNION ALL
1815
+ SELECT sql
1816
+ FROM sqlite_temp_master
1817
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
1818
+ 
1819
+  (0.0ms) SELECT sql
1820
+ FROM sqlite_master
1821
+ WHERE name='index_employers_on_id' AND type='index'
1822
+ UNION ALL
1823
+ SELECT sql
1824
+ FROM sqlite_temp_master
1825
+ WHERE name='index_employers_on_id' AND type='index'
1826
+
1827
+  (0.0ms)  SELECT sql
1828
+ FROM sqlite_master
1829
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1830
+ UNION ALL
1831
+ SELECT sql
1832
+ FROM sqlite_temp_master
1833
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
1834
+ 
1835
+  (0.0ms) SELECT sql
1836
+ FROM sqlite_master
1837
+ WHERE name='index_users_on_email' AND type='index'
1838
+ UNION ALL
1839
+ SELECT sql
1840
+ FROM sqlite_temp_master
1841
+ WHERE name='index_users_on_email' AND type='index'
1842
+
1843
+  (0.0ms)  SELECT sql
1844
+ FROM sqlite_master
1845
+ WHERE name='index_users_on_last_name' AND type='index'
1846
+ UNION ALL
1847
+ SELECT sql
1848
+ FROM sqlite_temp_master
1849
+ WHERE name='index_users_on_last_name' AND type='index'
1850
+ 
1851
+  (0.0ms) SELECT sql
1852
+ FROM sqlite_master
1853
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1854
+ UNION ALL
1855
+ SELECT sql
1856
+ FROM sqlite_temp_master
1857
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1858
+
1859
+  (0.0ms)  SELECT sql
1860
+ FROM sqlite_master
1861
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1862
+ UNION ALL
1863
+ SELECT sql
1864
+ FROM sqlite_temp_master
1865
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1866
+ 
1867
+  (27.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1868
+  (0.0ms) select sqlite_version(*)
1869
+  (21.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1870
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1871
+ Migrating to CreateUsers (20160213101213)
1872
+  (0.0ms) begin transaction
1873
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1874
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
1875
+  (0.1ms) SELECT sql
1876
+ FROM sqlite_master
1877
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1878
+ UNION ALL
1879
+ SELECT sql
1880
+ FROM sqlite_temp_master
1881
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1882
+
1883
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
1884
+  (0.0ms) SELECT sql
1885
+ FROM sqlite_master
1886
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1887
+ UNION ALL
1888
+ SELECT sql
1889
+ FROM sqlite_temp_master
1890
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1891
+
1892
+  (0.0ms)  SELECT sql
1893
+ FROM sqlite_master
1894
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1895
+ UNION ALL
1896
+ SELECT sql
1897
+ FROM sqlite_temp_master
1898
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1899
+ 
1900
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
1901
+  (0.0ms)  SELECT sql
1902
+ FROM sqlite_master
1903
+ WHERE name='index_users_on_last_name' AND type='index'
1904
+ UNION ALL
1905
+ SELECT sql
1906
+ FROM sqlite_temp_master
1907
+ WHERE name='index_users_on_last_name' AND type='index'
1908
+ 
1909
+  (0.0ms) SELECT sql
1910
+ FROM sqlite_master
1911
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1912
+ UNION ALL
1913
+ SELECT sql
1914
+ FROM sqlite_temp_master
1915
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1916
+
1917
+  (0.0ms)  SELECT sql
1918
+ FROM sqlite_master
1919
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1920
+ UNION ALL
1921
+ SELECT sql
1922
+ FROM sqlite_temp_master
1923
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1924
+ 
1925
+  (0.1ms) CREATE INDEX "duplicate_index_on_users_last_name" ON "users" ("last_name")
1926
+  (0.0ms)  SELECT sql
1927
+ FROM sqlite_master
1928
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
1929
+ UNION ALL
1930
+ SELECT sql
1931
+ FROM sqlite_temp_master
1932
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
1933
+ 
1934
+  (0.0ms) SELECT sql
1935
+ FROM sqlite_master
1936
+ WHERE name='index_users_on_last_name' AND type='index'
1937
+ UNION ALL
1938
+ SELECT sql
1939
+ FROM sqlite_temp_master
1940
+ WHERE name='index_users_on_last_name' AND type='index'
1941
+
1942
+  (0.0ms)  SELECT sql
1943
+ FROM sqlite_master
1944
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1945
+ UNION ALL
1946
+ SELECT sql
1947
+ FROM sqlite_temp_master
1948
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1949
+ 
1950
+  (0.0ms) SELECT sql
1951
+ FROM sqlite_master
1952
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1953
+ UNION ALL
1954
+ SELECT sql
1955
+ FROM sqlite_temp_master
1956
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1957
+
1958
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1959
+  (0.0ms) SELECT sql
1960
+ FROM sqlite_master
1961
+ WHERE name='index_users_on_email' AND type='index'
1962
+ UNION ALL
1963
+ SELECT sql
1964
+ FROM sqlite_temp_master
1965
+ WHERE name='index_users_on_email' AND type='index'
1966
+
1967
+  (0.0ms)  SELECT sql
1968
+ FROM sqlite_master
1969
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
1970
+ UNION ALL
1971
+ SELECT sql
1972
+ FROM sqlite_temp_master
1973
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
1974
+ 
1975
+  (0.0ms) SELECT sql
1976
+ FROM sqlite_master
1977
+ WHERE name='index_users_on_last_name' AND type='index'
1978
+ UNION ALL
1979
+ SELECT sql
1980
+ FROM sqlite_temp_master
1981
+ WHERE name='index_users_on_last_name' AND type='index'
1982
+
1983
+  (0.0ms)  SELECT sql
1984
+ FROM sqlite_master
1985
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1986
+ UNION ALL
1987
+ SELECT sql
1988
+ FROM sqlite_temp_master
1989
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
1990
+ 
1991
+  (0.0ms) SELECT sql
1992
+ FROM sqlite_master
1993
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1994
+ UNION ALL
1995
+ SELECT sql
1996
+ FROM sqlite_temp_master
1997
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
1998
+
1999
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
2000
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
2001
+  (27.0ms) commit transaction
2002
+ Migrating to CreateProfiles (20160213101232)
2003
+  (0.0ms) begin transaction
2004
+  (0.1ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2005
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
2006
+  (24.7ms) commit transaction
2007
+ Migrating to CreateEmployers (20160213102131)
2008
+  (0.0ms) begin transaction
2009
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2010
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
2011
+ SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
2012
+  (34.5ms) commit transaction
2013
+ Migrating to CreateComments (20160604081452)
2014
+  (0.0ms) begin transaction
2015
+  (0.2ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2016
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
2017
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
2018
+  (32.5ms) commit transaction
2019
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
2020
+  (0.0ms)  SELECT sql
2021
+ FROM sqlite_master
2022
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2023
+ UNION ALL
2024
+ SELECT sql
2025
+ FROM sqlite_temp_master
2026
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2027
+ 
2028
+  (0.0ms) SELECT sql
2029
+ FROM sqlite_master
2030
+ WHERE name='index_employers_on_id' AND type='index'
2031
+ UNION ALL
2032
+ SELECT sql
2033
+ FROM sqlite_temp_master
2034
+ WHERE name='index_employers_on_id' AND type='index'
2035
+
2036
+  (0.1ms)  SELECT sql
2037
+ FROM sqlite_master
2038
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2039
+ UNION ALL
2040
+ SELECT sql
2041
+ FROM sqlite_temp_master
2042
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2043
+ 
2044
+  (0.0ms) SELECT sql
2045
+ FROM sqlite_master
2046
+ WHERE name='index_users_on_email' AND type='index'
2047
+ UNION ALL
2048
+ SELECT sql
2049
+ FROM sqlite_temp_master
2050
+ WHERE name='index_users_on_email' AND type='index'
2051
+
2052
+  (0.0ms)  SELECT sql
2053
+ FROM sqlite_master
2054
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
2055
+ UNION ALL
2056
+ SELECT sql
2057
+ FROM sqlite_temp_master
2058
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
2059
+ 
2060
+  (0.0ms) SELECT sql
2061
+ FROM sqlite_master
2062
+ WHERE name='index_users_on_last_name' AND type='index'
2063
+ UNION ALL
2064
+ SELECT sql
2065
+ FROM sqlite_temp_master
2066
+ WHERE name='index_users_on_last_name' AND type='index'
2067
+
2068
+  (0.0ms)  SELECT sql
2069
+ FROM sqlite_master
2070
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2071
+ UNION ALL
2072
+ SELECT sql
2073
+ FROM sqlite_temp_master
2074
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2075
+ 
2076
+  (0.1ms) SELECT sql
2077
+ FROM sqlite_master
2078
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2079
+ UNION ALL
2080
+ SELECT sql
2081
+ FROM sqlite_temp_master
2082
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2083
+
2084
+  (0.1ms)  SELECT sql
2085
+ FROM sqlite_master
2086
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2087
+ UNION ALL
2088
+ SELECT sql
2089
+ FROM sqlite_temp_master
2090
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2091
+ 
2092
+  (0.0ms) SELECT sql
2093
+ FROM sqlite_master
2094
+ WHERE name='index_users_on_email' AND type='index'
2095
+ UNION ALL
2096
+ SELECT sql
2097
+ FROM sqlite_temp_master
2098
+ WHERE name='index_users_on_email' AND type='index'
2099
+
2100
+  (0.0ms)  SELECT sql
2101
+ FROM sqlite_master
2102
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
2103
+ UNION ALL
2104
+ SELECT sql
2105
+ FROM sqlite_temp_master
2106
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
2107
+ 
2108
+  (0.0ms) SELECT sql
2109
+ FROM sqlite_master
2110
+ WHERE name='index_users_on_last_name' AND type='index'
2111
+ UNION ALL
2112
+ SELECT sql
2113
+ FROM sqlite_temp_master
2114
+ WHERE name='index_users_on_last_name' AND type='index'
2115
+
2116
+  (0.0ms)  SELECT sql
2117
+ FROM sqlite_master
2118
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2119
+ UNION ALL
2120
+ SELECT sql
2121
+ FROM sqlite_temp_master
2122
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2123
+ 
2124
+  (0.0ms) SELECT sql
2125
+ FROM sqlite_master
2126
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2127
+ UNION ALL
2128
+ SELECT sql
2129
+ FROM sqlite_temp_master
2130
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2131
+
2132
+  (0.0ms)  SELECT sql
2133
+ FROM sqlite_master
2134
+ WHERE name='index_employers_on_id' AND type='index'
2135
+ UNION ALL
2136
+ SELECT sql
2137
+ FROM sqlite_temp_master
2138
+ WHERE name='index_employers_on_id' AND type='index'
2139
+ 
2140
+  (0.0ms) SELECT sql
2141
+ FROM sqlite_master
2142
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2143
+ UNION ALL
2144
+ SELECT sql
2145
+ FROM sqlite_temp_master
2146
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2147
+
2148
+  (0.0ms)  SELECT sql
2149
+ FROM sqlite_master
2150
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2151
+ UNION ALL
2152
+ SELECT sql
2153
+ FROM sqlite_temp_master
2154
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2155
+ 
2156
+  (0.0ms) SELECT sql
2157
+ FROM sqlite_master
2158
+ WHERE name='index_users_on_email' AND type='index'
2159
+ UNION ALL
2160
+ SELECT sql
2161
+ FROM sqlite_temp_master
2162
+ WHERE name='index_users_on_email' AND type='index'
2163
+
2164
+  (0.1ms)  SELECT sql
2165
+ FROM sqlite_master
2166
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
2167
+ UNION ALL
2168
+ SELECT sql
2169
+ FROM sqlite_temp_master
2170
+ WHERE name='duplicate_index_on_users_last_name' AND type='index'
2171
+ 
2172
+  (0.0ms) SELECT sql
2173
+ FROM sqlite_master
2174
+ WHERE name='index_users_on_last_name' AND type='index'
2175
+ UNION ALL
2176
+ SELECT sql
2177
+ FROM sqlite_temp_master
2178
+ WHERE name='index_users_on_last_name' AND type='index'
2179
+
2180
+  (0.0ms)  SELECT sql
2181
+ FROM sqlite_master
2182
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2183
+ UNION ALL
2184
+ SELECT sql
2185
+ FROM sqlite_temp_master
2186
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2187
+ 
2188
+  (0.1ms) SELECT sql
2189
+ FROM sqlite_master
2190
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2191
+ UNION ALL
2192
+ SELECT sql
2193
+ FROM sqlite_temp_master
2194
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2195
+
2196
+  (0.0ms)  SELECT sql
2197
+ FROM sqlite_master
2198
+ WHERE name='index_employers_on_id' AND type='index'
2199
+ UNION ALL
2200
+ SELECT sql
2201
+ FROM sqlite_temp_master
2202
+ WHERE name='index_employers_on_id' AND type='index'
2203
+ 
2204
+  (0.0ms) SELECT sql
2205
+ FROM sqlite_master
2206
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2207
+ UNION ALL
2208
+ SELECT sql
2209
+ FROM sqlite_temp_master
2210
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2211
+
2212
+  (31.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2213
+  (0.0ms) select sqlite_version(*)
2214
+  (32.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2215
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2216
+ Migrating to CreateUsers (20160213101213)
2217
+  (0.1ms) begin transaction
2218
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2219
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
2220
+  (0.2ms) SELECT sql
2221
+ FROM sqlite_master
2222
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2223
+ UNION ALL
2224
+ SELECT sql
2225
+ FROM sqlite_temp_master
2226
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2227
+
2228
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
2229
+  (0.1ms) SELECT sql
2230
+ FROM sqlite_master
2231
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2232
+ UNION ALL
2233
+ SELECT sql
2234
+ FROM sqlite_temp_master
2235
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2236
+
2237
+  (0.1ms)  SELECT sql
2238
+ FROM sqlite_master
2239
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2240
+ UNION ALL
2241
+ SELECT sql
2242
+ FROM sqlite_temp_master
2243
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2244
+ 
2245
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
2246
+  (0.0ms)  SELECT sql
2247
+ FROM sqlite_master
2248
+ WHERE name='index_users_on_last_name' AND type='index'
2249
+ UNION ALL
2250
+ SELECT sql
2251
+ FROM sqlite_temp_master
2252
+ WHERE name='index_users_on_last_name' AND type='index'
2253
+ 
2254
+  (0.0ms) SELECT sql
2255
+ FROM sqlite_master
2256
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2257
+ UNION ALL
2258
+ SELECT sql
2259
+ FROM sqlite_temp_master
2260
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2261
+
2262
+  (0.0ms)  SELECT sql
2263
+ FROM sqlite_master
2264
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2265
+ UNION ALL
2266
+ SELECT sql
2267
+ FROM sqlite_temp_master
2268
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2269
+ 
2270
+  (0.1ms) rollback transaction
2271
+  (27.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2272
+  (0.0ms) select sqlite_version(*)
2273
+  (21.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2274
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
2275
+ Migrating to CreateUsers (20160213101213)
2276
+  (0.0ms) begin transaction
2277
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2278
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
2279
+  (0.1ms) SELECT sql
2280
+ FROM sqlite_master
2281
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2282
+ UNION ALL
2283
+ SELECT sql
2284
+ FROM sqlite_temp_master
2285
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2286
+
2287
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
2288
+  (0.0ms) SELECT sql
2289
+ FROM sqlite_master
2290
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2291
+ UNION ALL
2292
+ SELECT sql
2293
+ FROM sqlite_temp_master
2294
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2295
+
2296
+  (0.0ms)  SELECT sql
2297
+ FROM sqlite_master
2298
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2299
+ UNION ALL
2300
+ SELECT sql
2301
+ FROM sqlite_temp_master
2302
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2303
+ 
2304
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
2305
+  (0.0ms)  SELECT sql
2306
+ FROM sqlite_master
2307
+ WHERE name='index_users_on_last_name' AND type='index'
2308
+ UNION ALL
2309
+ SELECT sql
2310
+ FROM sqlite_temp_master
2311
+ WHERE name='index_users_on_last_name' AND type='index'
2312
+ 
2313
+  (0.0ms) SELECT sql
2314
+ FROM sqlite_master
2315
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2316
+ UNION ALL
2317
+ SELECT sql
2318
+ FROM sqlite_temp_master
2319
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2320
+
2321
+  (0.0ms)  SELECT sql
2322
+ FROM sqlite_master
2323
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2324
+ UNION ALL
2325
+ SELECT sql
2326
+ FROM sqlite_temp_master
2327
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2328
+ 
2329
+  (0.1ms) CREATE UNIQUE INDEX "duplicate" ON "users" ("last_name")
2330
+  (0.0ms)  SELECT sql
2331
+ FROM sqlite_master
2332
+ WHERE name='duplicate' AND type='index'
2333
+ UNION ALL
2334
+ SELECT sql
2335
+ FROM sqlite_temp_master
2336
+ WHERE name='duplicate' AND type='index'
2337
+ 
2338
+  (0.0ms) SELECT sql
2339
+ FROM sqlite_master
2340
+ WHERE name='index_users_on_last_name' AND type='index'
2341
+ UNION ALL
2342
+ SELECT sql
2343
+ FROM sqlite_temp_master
2344
+ WHERE name='index_users_on_last_name' AND type='index'
2345
+
2346
+  (0.0ms)  SELECT sql
2347
+ FROM sqlite_master
2348
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2349
+ UNION ALL
2350
+ SELECT sql
2351
+ FROM sqlite_temp_master
2352
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2353
+ 
2354
+  (0.0ms) SELECT sql
2355
+ FROM sqlite_master
2356
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2357
+ UNION ALL
2358
+ SELECT sql
2359
+ FROM sqlite_temp_master
2360
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2361
+
2362
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
2363
+  (0.0ms) SELECT sql
2364
+ FROM sqlite_master
2365
+ WHERE name='index_users_on_email' AND type='index'
2366
+ UNION ALL
2367
+ SELECT sql
2368
+ FROM sqlite_temp_master
2369
+ WHERE name='index_users_on_email' AND type='index'
2370
+
2371
+  (0.0ms)  SELECT sql
2372
+ FROM sqlite_master
2373
+ WHERE name='duplicate' AND type='index'
2374
+ UNION ALL
2375
+ SELECT sql
2376
+ FROM sqlite_temp_master
2377
+ WHERE name='duplicate' AND type='index'
2378
+ 
2379
+  (0.0ms) SELECT sql
2380
+ FROM sqlite_master
2381
+ WHERE name='index_users_on_last_name' AND type='index'
2382
+ UNION ALL
2383
+ SELECT sql
2384
+ FROM sqlite_temp_master
2385
+ WHERE name='index_users_on_last_name' AND type='index'
2386
+
2387
+  (0.0ms)  SELECT sql
2388
+ FROM sqlite_master
2389
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2390
+ UNION ALL
2391
+ SELECT sql
2392
+ FROM sqlite_temp_master
2393
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2394
+ 
2395
+  (0.0ms) SELECT sql
2396
+ FROM sqlite_master
2397
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2398
+ UNION ALL
2399
+ SELECT sql
2400
+ FROM sqlite_temp_master
2401
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2402
+
2403
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
2404
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
2405
+  (38.4ms) commit transaction
2406
+ Migrating to CreateProfiles (20160213101232)
2407
+  (0.0ms) begin transaction
2408
+  (0.1ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2409
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
2410
+  (30.7ms) commit transaction
2411
+ Migrating to CreateEmployers (20160213102131)
2412
+  (0.0ms) begin transaction
2413
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2414
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
2415
+ SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
2416
+  (29.9ms) commit transaction
2417
+ Migrating to CreateComments (20160604081452)
2418
+  (0.0ms) begin transaction
2419
+  (0.1ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2420
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
2421
+ SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
2422
+  (29.6ms) commit transaction
2423
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2424
+  (0.0ms)  SELECT sql
2425
+ FROM sqlite_master
2426
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2427
+ UNION ALL
2428
+ SELECT sql
2429
+ FROM sqlite_temp_master
2430
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2431
+ 
2432
+  (0.0ms) SELECT sql
2433
+ FROM sqlite_master
2434
+ WHERE name='index_employers_on_id' AND type='index'
2435
+ UNION ALL
2436
+ SELECT sql
2437
+ FROM sqlite_temp_master
2438
+ WHERE name='index_employers_on_id' AND type='index'
2439
+
2440
+  (0.0ms)  SELECT sql
2441
+ FROM sqlite_master
2442
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2443
+ UNION ALL
2444
+ SELECT sql
2445
+ FROM sqlite_temp_master
2446
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2447
+ 
2448
+  (0.0ms) SELECT sql
2449
+ FROM sqlite_master
2450
+ WHERE name='index_users_on_email' AND type='index'
2451
+ UNION ALL
2452
+ SELECT sql
2453
+ FROM sqlite_temp_master
2454
+ WHERE name='index_users_on_email' AND type='index'
2455
+
2456
+  (0.1ms)  SELECT sql
2457
+ FROM sqlite_master
2458
+ WHERE name='duplicate' AND type='index'
2459
+ UNION ALL
2460
+ SELECT sql
2461
+ FROM sqlite_temp_master
2462
+ WHERE name='duplicate' AND type='index'
2463
+ 
2464
+  (0.0ms) SELECT sql
2465
+ FROM sqlite_master
2466
+ WHERE name='index_users_on_last_name' AND type='index'
2467
+ UNION ALL
2468
+ SELECT sql
2469
+ FROM sqlite_temp_master
2470
+ WHERE name='index_users_on_last_name' AND type='index'
2471
+
2472
+  (0.0ms)  SELECT sql
2473
+ FROM sqlite_master
2474
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2475
+ UNION ALL
2476
+ SELECT sql
2477
+ FROM sqlite_temp_master
2478
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2479
+ 
2480
+  (0.1ms) SELECT sql
2481
+ FROM sqlite_master
2482
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2483
+ UNION ALL
2484
+ SELECT sql
2485
+ FROM sqlite_temp_master
2486
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2487
+
2488
+  (27.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2489
+  (0.1ms) select sqlite_version(*)
2490
+  (33.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2491
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2492
+ Migrating to CreateUsers (20160213101213)
2493
+  (0.1ms) begin transaction
2494
+  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2495
+  (0.3ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
2496
+  (0.2ms) SELECT sql
2497
+ FROM sqlite_master
2498
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2499
+ UNION ALL
2500
+ SELECT sql
2501
+ FROM sqlite_temp_master
2502
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2503
+
2504
+  (0.3ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
2505
+  (0.1ms) SELECT sql
2506
+ FROM sqlite_master
2507
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2508
+ UNION ALL
2509
+ SELECT sql
2510
+ FROM sqlite_temp_master
2511
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2512
+
2513
+  (0.1ms)  SELECT sql
2514
+ FROM sqlite_master
2515
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2516
+ UNION ALL
2517
+ SELECT sql
2518
+ FROM sqlite_temp_master
2519
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2520
+ 
2521
+  (0.3ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
2522
+  (0.1ms)  SELECT sql
2523
+ FROM sqlite_master
2524
+ WHERE name='index_users_on_last_name' AND type='index'
2525
+ UNION ALL
2526
+ SELECT sql
2527
+ FROM sqlite_temp_master
2528
+ WHERE name='index_users_on_last_name' AND type='index'
2529
+ 
2530
+  (0.1ms) SELECT sql
2531
+ FROM sqlite_master
2532
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2533
+ UNION ALL
2534
+ SELECT sql
2535
+ FROM sqlite_temp_master
2536
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2537
+
2538
+  (0.1ms)  SELECT sql
2539
+ FROM sqlite_master
2540
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2541
+ UNION ALL
2542
+ SELECT sql
2543
+ FROM sqlite_temp_master
2544
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2545
+ 
2546
+  (0.4ms) CREATE UNIQUE INDEX "unique_index_on_users_last_name" ON "users" ("last_name")
2547
+  (0.1ms)  SELECT sql
2548
+ FROM sqlite_master
2549
+ WHERE name='unique_index_on_users_last_name' AND type='index'
2550
+ UNION ALL
2551
+ SELECT sql
2552
+ FROM sqlite_temp_master
2553
+ WHERE name='unique_index_on_users_last_name' AND type='index'
2554
+ 
2555
+  (0.1ms) SELECT sql
2556
+ FROM sqlite_master
2557
+ WHERE name='index_users_on_last_name' AND type='index'
2558
+ UNION ALL
2559
+ SELECT sql
2560
+ FROM sqlite_temp_master
2561
+ WHERE name='index_users_on_last_name' AND type='index'
2562
+
2563
+  (0.1ms)  SELECT sql
2564
+ FROM sqlite_master
2565
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2566
+ UNION ALL
2567
+ SELECT sql
2568
+ FROM sqlite_temp_master
2569
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2570
+ 
2571
+  (0.1ms) SELECT sql
2572
+ FROM sqlite_master
2573
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2574
+ UNION ALL
2575
+ SELECT sql
2576
+ FROM sqlite_temp_master
2577
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2578
+
2579
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
2580
+  (0.1ms) SELECT sql
2581
+ FROM sqlite_master
2582
+ WHERE name='index_users_on_email' AND type='index'
2583
+ UNION ALL
2584
+ SELECT sql
2585
+ FROM sqlite_temp_master
2586
+ WHERE name='index_users_on_email' AND type='index'
2587
+
2588
+  (0.1ms)  SELECT sql
2589
+ FROM sqlite_master
2590
+ WHERE name='unique_index_on_users_last_name' AND type='index'
2591
+ UNION ALL
2592
+ SELECT sql
2593
+ FROM sqlite_temp_master
2594
+ WHERE name='unique_index_on_users_last_name' AND type='index'
2595
+ 
2596
+  (0.1ms) SELECT sql
2597
+ FROM sqlite_master
2598
+ WHERE name='index_users_on_last_name' AND type='index'
2599
+ UNION ALL
2600
+ SELECT sql
2601
+ FROM sqlite_temp_master
2602
+ WHERE name='index_users_on_last_name' AND type='index'
2603
+
2604
+  (0.1ms)  SELECT sql
2605
+ FROM sqlite_master
2606
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2607
+ UNION ALL
2608
+ SELECT sql
2609
+ FROM sqlite_temp_master
2610
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2611
+ 
2612
+  (0.1ms) SELECT sql
2613
+ FROM sqlite_master
2614
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2615
+ UNION ALL
2616
+ SELECT sql
2617
+ FROM sqlite_temp_master
2618
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2619
+
2620
+  (0.2ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
2621
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
2622
+  (35.1ms) commit transaction
2623
+ Migrating to CreateProfiles (20160213101232)
2624
+  (0.0ms) begin transaction
2625
+  (0.1ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2626
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
2627
+  (26.9ms) commit transaction
2628
+ Migrating to CreateEmployers (20160213102131)
2629
+  (0.0ms) begin transaction
2630
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2631
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
2632
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
2633
+  (45.6ms) commit transaction
2634
+ Migrating to CreateComments (20160604081452)
2635
+  (0.0ms) begin transaction
2636
+  (0.1ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2637
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
2638
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
2639
+  (15.7ms) commit transaction
2640
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
2641
+  (0.0ms)  SELECT sql
2642
+ FROM sqlite_master
2643
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2644
+ UNION ALL
2645
+ SELECT sql
2646
+ FROM sqlite_temp_master
2647
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2648
+ 
2649
+  (0.0ms) SELECT sql
2650
+ FROM sqlite_master
2651
+ WHERE name='index_employers_on_id' AND type='index'
2652
+ UNION ALL
2653
+ SELECT sql
2654
+ FROM sqlite_temp_master
2655
+ WHERE name='index_employers_on_id' AND type='index'
2656
+
2657
+  (0.0ms)  SELECT sql
2658
+ FROM sqlite_master
2659
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2660
+ UNION ALL
2661
+ SELECT sql
2662
+ FROM sqlite_temp_master
2663
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2664
+ 
2665
+  (0.0ms) SELECT sql
2666
+ FROM sqlite_master
2667
+ WHERE name='index_users_on_email' AND type='index'
2668
+ UNION ALL
2669
+ SELECT sql
2670
+ FROM sqlite_temp_master
2671
+ WHERE name='index_users_on_email' AND type='index'
2672
+
2673
+  (0.0ms)  SELECT sql
2674
+ FROM sqlite_master
2675
+ WHERE name='unique_index_on_users_last_name' AND type='index'
2676
+ UNION ALL
2677
+ SELECT sql
2678
+ FROM sqlite_temp_master
2679
+ WHERE name='unique_index_on_users_last_name' AND type='index'
2680
+ 
2681
+  (0.0ms) SELECT sql
2682
+ FROM sqlite_master
2683
+ WHERE name='index_users_on_last_name' AND type='index'
2684
+ UNION ALL
2685
+ SELECT sql
2686
+ FROM sqlite_temp_master
2687
+ WHERE name='index_users_on_last_name' AND type='index'
2688
+
2689
+  (0.1ms)  SELECT sql
2690
+ FROM sqlite_master
2691
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2692
+ UNION ALL
2693
+ SELECT sql
2694
+ FROM sqlite_temp_master
2695
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2696
+ 
2697
+  (0.1ms) SELECT sql
2698
+ FROM sqlite_master
2699
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2700
+ UNION ALL
2701
+ SELECT sql
2702
+ FROM sqlite_temp_master
2703
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2704
+
2705
+  (35.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2706
+  (0.1ms) select sqlite_version(*)
2707
+  (32.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2708
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
2709
+ Migrating to CreateUsers (20160213101213)
2710
+  (0.0ms) begin transaction
2711
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2712
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
2713
+  (0.1ms) SELECT sql
2714
+ FROM sqlite_master
2715
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2716
+ UNION ALL
2717
+ SELECT sql
2718
+ FROM sqlite_temp_master
2719
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2720
+
2721
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
2722
+  (0.0ms) SELECT sql
2723
+ FROM sqlite_master
2724
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2725
+ UNION ALL
2726
+ SELECT sql
2727
+ FROM sqlite_temp_master
2728
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2729
+
2730
+  (0.0ms)  SELECT sql
2731
+ FROM sqlite_master
2732
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2733
+ UNION ALL
2734
+ SELECT sql
2735
+ FROM sqlite_temp_master
2736
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2737
+ 
2738
+  (0.1ms) CREATE UNIQUE INDEX "unique_index_on_users_last_name_first_name" ON "users" ("last_name", "first_name")
2739
+  (0.0ms)  SELECT sql
2740
+ FROM sqlite_master
2741
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2742
+ UNION ALL
2743
+ SELECT sql
2744
+ FROM sqlite_temp_master
2745
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2746
+ 
2747
+  (0.0ms) SELECT sql
2748
+ FROM sqlite_master
2749
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2750
+ UNION ALL
2751
+ SELECT sql
2752
+ FROM sqlite_temp_master
2753
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2754
+
2755
+  (0.0ms)  SELECT sql
2756
+ FROM sqlite_master
2757
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2758
+ UNION ALL
2759
+ SELECT sql
2760
+ FROM sqlite_temp_master
2761
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2762
+ 
2763
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
2764
+  (0.0ms)  SELECT sql
2765
+ FROM sqlite_master
2766
+ WHERE name='index_users_on_last_name' AND type='index'
2767
+ UNION ALL
2768
+ SELECT sql
2769
+ FROM sqlite_temp_master
2770
+ WHERE name='index_users_on_last_name' AND type='index'
2771
+ 
2772
+  (0.0ms) SELECT sql
2773
+ FROM sqlite_master
2774
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2775
+ UNION ALL
2776
+ SELECT sql
2777
+ FROM sqlite_temp_master
2778
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2779
+
2780
+  (0.0ms)  SELECT sql
2781
+ FROM sqlite_master
2782
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2783
+ UNION ALL
2784
+ SELECT sql
2785
+ FROM sqlite_temp_master
2786
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2787
+ 
2788
+  (0.0ms) SELECT sql
2789
+ FROM sqlite_master
2790
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2791
+ UNION ALL
2792
+ SELECT sql
2793
+ FROM sqlite_temp_master
2794
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2795
+
2796
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
2797
+  (0.0ms) SELECT sql
2798
+ FROM sqlite_master
2799
+ WHERE name='index_users_on_email' AND type='index'
2800
+ UNION ALL
2801
+ SELECT sql
2802
+ FROM sqlite_temp_master
2803
+ WHERE name='index_users_on_email' AND type='index'
2804
+
2805
+  (0.0ms)  SELECT sql
2806
+ FROM sqlite_master
2807
+ WHERE name='index_users_on_last_name' AND type='index'
2808
+ UNION ALL
2809
+ SELECT sql
2810
+ FROM sqlite_temp_master
2811
+ WHERE name='index_users_on_last_name' AND type='index'
2812
+ 
2813
+  (0.0ms) SELECT sql
2814
+ FROM sqlite_master
2815
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2816
+ UNION ALL
2817
+ SELECT sql
2818
+ FROM sqlite_temp_master
2819
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2820
+
2821
+  (0.0ms)  SELECT sql
2822
+ FROM sqlite_master
2823
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2824
+ UNION ALL
2825
+ SELECT sql
2826
+ FROM sqlite_temp_master
2827
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2828
+ 
2829
+  (0.0ms) SELECT sql
2830
+ FROM sqlite_master
2831
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2832
+ UNION ALL
2833
+ SELECT sql
2834
+ FROM sqlite_temp_master
2835
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2836
+
2837
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
2838
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
2839
+  (24.7ms) commit transaction
2840
+ Migrating to CreateProfiles (20160213101232)
2841
+  (0.1ms) begin transaction
2842
+  (0.2ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2843
+ SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
2844
+  (30.6ms) commit transaction
2845
+ Migrating to CreateEmployers (20160213102131)
2846
+  (0.1ms) begin transaction
2847
+  (0.2ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2848
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
2849
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
2850
+  (33.1ms) commit transaction
2851
+ Migrating to CreateComments (20160604081452)
2852
+  (0.1ms) begin transaction
2853
+  (0.2ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2854
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
2855
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
2856
+  (32.5ms) commit transaction
2857
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
2858
+  (0.1ms)  SELECT sql
2859
+ FROM sqlite_master
2860
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2861
+ UNION ALL
2862
+ SELECT sql
2863
+ FROM sqlite_temp_master
2864
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
2865
+ 
2866
+  (0.0ms) SELECT sql
2867
+ FROM sqlite_master
2868
+ WHERE name='index_employers_on_id' AND type='index'
2869
+ UNION ALL
2870
+ SELECT sql
2871
+ FROM sqlite_temp_master
2872
+ WHERE name='index_employers_on_id' AND type='index'
2873
+
2874
+  (0.0ms)  SELECT sql
2875
+ FROM sqlite_master
2876
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2877
+ UNION ALL
2878
+ SELECT sql
2879
+ FROM sqlite_temp_master
2880
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
2881
+ 
2882
+  (0.0ms) SELECT sql
2883
+ FROM sqlite_master
2884
+ WHERE name='index_users_on_email' AND type='index'
2885
+ UNION ALL
2886
+ SELECT sql
2887
+ FROM sqlite_temp_master
2888
+ WHERE name='index_users_on_email' AND type='index'
2889
+
2890
+  (0.0ms)  SELECT sql
2891
+ FROM sqlite_master
2892
+ WHERE name='index_users_on_last_name' AND type='index'
2893
+ UNION ALL
2894
+ SELECT sql
2895
+ FROM sqlite_temp_master
2896
+ WHERE name='index_users_on_last_name' AND type='index'
2897
+ 
2898
+  (0.0ms) SELECT sql
2899
+ FROM sqlite_master
2900
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2901
+ UNION ALL
2902
+ SELECT sql
2903
+ FROM sqlite_temp_master
2904
+ WHERE name='unique_index_on_users_last_name_first_name' AND type='index'
2905
+
2906
+  (0.0ms)  SELECT sql
2907
+ FROM sqlite_master
2908
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2909
+ UNION ALL
2910
+ SELECT sql
2911
+ FROM sqlite_temp_master
2912
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2913
+ 
2914
+  (0.0ms) SELECT sql
2915
+ FROM sqlite_master
2916
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2917
+ UNION ALL
2918
+ SELECT sql
2919
+ FROM sqlite_temp_master
2920
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2921
+
2922
+  (25.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2923
+  (0.0ms) select sqlite_version(*)
2924
+  (10.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2925
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
2926
+ Migrating to CreateUsers (20160213101213)
2927
+  (0.0ms) begin transaction
2928
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2929
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
2930
+  (0.1ms) SELECT sql
2931
+ FROM sqlite_master
2932
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2933
+ UNION ALL
2934
+ SELECT sql
2935
+ FROM sqlite_temp_master
2936
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2937
+
2938
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
2939
+  (0.0ms) SELECT sql
2940
+ FROM sqlite_master
2941
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2942
+ UNION ALL
2943
+ SELECT sql
2944
+ FROM sqlite_temp_master
2945
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2946
+
2947
+  (0.0ms)  SELECT sql
2948
+ FROM sqlite_master
2949
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2950
+ UNION ALL
2951
+ SELECT sql
2952
+ FROM sqlite_temp_master
2953
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2954
+ 
2955
+  (0.1ms) CREATE UNIQUE INDEX "unique_index_on_users_last_name_and_first_name" ON "users" ("last_name", "first_name")
2956
+  (0.0ms)  SELECT sql
2957
+ FROM sqlite_master
2958
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
2959
+ UNION ALL
2960
+ SELECT sql
2961
+ FROM sqlite_temp_master
2962
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
2963
+ 
2964
+  (0.0ms) SELECT sql
2965
+ FROM sqlite_master
2966
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2967
+ UNION ALL
2968
+ SELECT sql
2969
+ FROM sqlite_temp_master
2970
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
2971
+
2972
+  (0.0ms)  SELECT sql
2973
+ FROM sqlite_master
2974
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2975
+ UNION ALL
2976
+ SELECT sql
2977
+ FROM sqlite_temp_master
2978
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
2979
+ 
2980
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
2981
+  (0.0ms)  SELECT sql
2982
+ FROM sqlite_master
2983
+ WHERE name='index_users_on_last_name' AND type='index'
2984
+ UNION ALL
2985
+ SELECT sql
2986
+ FROM sqlite_temp_master
2987
+ WHERE name='index_users_on_last_name' AND type='index'
2988
+ 
2989
+  (0.0ms) SELECT sql
2990
+ FROM sqlite_master
2991
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
2992
+ UNION ALL
2993
+ SELECT sql
2994
+ FROM sqlite_temp_master
2995
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
2996
+
2997
+  (0.0ms)  SELECT sql
2998
+ FROM sqlite_master
2999
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3000
+ UNION ALL
3001
+ SELECT sql
3002
+ FROM sqlite_temp_master
3003
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3004
+ 
3005
+  (0.0ms) SELECT sql
3006
+ FROM sqlite_master
3007
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3008
+ UNION ALL
3009
+ SELECT sql
3010
+ FROM sqlite_temp_master
3011
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3012
+
3013
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
3014
+  (0.0ms) SELECT sql
3015
+ FROM sqlite_master
3016
+ WHERE name='index_users_on_email' AND type='index'
3017
+ UNION ALL
3018
+ SELECT sql
3019
+ FROM sqlite_temp_master
3020
+ WHERE name='index_users_on_email' AND type='index'
3021
+
3022
+  (0.0ms)  SELECT sql
3023
+ FROM sqlite_master
3024
+ WHERE name='index_users_on_last_name' AND type='index'
3025
+ UNION ALL
3026
+ SELECT sql
3027
+ FROM sqlite_temp_master
3028
+ WHERE name='index_users_on_last_name' AND type='index'
3029
+ 
3030
+  (0.0ms) SELECT sql
3031
+ FROM sqlite_master
3032
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3033
+ UNION ALL
3034
+ SELECT sql
3035
+ FROM sqlite_temp_master
3036
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3037
+
3038
+  (0.0ms)  SELECT sql
3039
+ FROM sqlite_master
3040
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3041
+ UNION ALL
3042
+ SELECT sql
3043
+ FROM sqlite_temp_master
3044
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3045
+ 
3046
+  (0.0ms) SELECT sql
3047
+ FROM sqlite_master
3048
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3049
+ UNION ALL
3050
+ SELECT sql
3051
+ FROM sqlite_temp_master
3052
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3053
+
3054
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
3055
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
3056
+  (21.7ms) commit transaction
3057
+ Migrating to CreateProfiles (20160213101232)
3058
+  (0.1ms) begin transaction
3059
+  (0.1ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3060
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
3061
+  (21.6ms) commit transaction
3062
+ Migrating to CreateEmployers (20160213102131)
3063
+  (0.0ms) begin transaction
3064
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3065
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
3066
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
3067
+  (38.8ms) commit transaction
3068
+ Migrating to CreateComments (20160604081452)
3069
+  (0.0ms) begin transaction
3070
+  (0.1ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3071
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
3072
+ SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
3073
+  (21.2ms) commit transaction
3074
+ ActiveRecord::SchemaMigration Load (7.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3075
+  (0.1ms)  SELECT sql
3076
+ FROM sqlite_master
3077
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3078
+ UNION ALL
3079
+ SELECT sql
3080
+ FROM sqlite_temp_master
3081
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3082
+ 
3083
+  (0.0ms) SELECT sql
3084
+ FROM sqlite_master
3085
+ WHERE name='index_employers_on_id' AND type='index'
3086
+ UNION ALL
3087
+ SELECT sql
3088
+ FROM sqlite_temp_master
3089
+ WHERE name='index_employers_on_id' AND type='index'
3090
+
3091
+  (0.1ms)  SELECT sql
3092
+ FROM sqlite_master
3093
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3094
+ UNION ALL
3095
+ SELECT sql
3096
+ FROM sqlite_temp_master
3097
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3098
+ 
3099
+  (0.0ms) SELECT sql
3100
+ FROM sqlite_master
3101
+ WHERE name='index_users_on_email' AND type='index'
3102
+ UNION ALL
3103
+ SELECT sql
3104
+ FROM sqlite_temp_master
3105
+ WHERE name='index_users_on_email' AND type='index'
3106
+
3107
+  (0.1ms)  SELECT sql
3108
+ FROM sqlite_master
3109
+ WHERE name='index_users_on_last_name' AND type='index'
3110
+ UNION ALL
3111
+ SELECT sql
3112
+ FROM sqlite_temp_master
3113
+ WHERE name='index_users_on_last_name' AND type='index'
3114
+ 
3115
+  (0.0ms) SELECT sql
3116
+ FROM sqlite_master
3117
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3118
+ UNION ALL
3119
+ SELECT sql
3120
+ FROM sqlite_temp_master
3121
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3122
+
3123
+  (0.0ms)  SELECT sql
3124
+ FROM sqlite_master
3125
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3126
+ UNION ALL
3127
+ SELECT sql
3128
+ FROM sqlite_temp_master
3129
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3130
+ 
3131
+  (0.0ms) SELECT sql
3132
+ FROM sqlite_master
3133
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3134
+ UNION ALL
3135
+ SELECT sql
3136
+ FROM sqlite_temp_master
3137
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3138
+
3139
+  (0.1ms)  SELECT sql
3140
+ FROM sqlite_master
3141
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3142
+ UNION ALL
3143
+ SELECT sql
3144
+ FROM sqlite_temp_master
3145
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3146
+ 
3147
+  (0.0ms) SELECT sql
3148
+ FROM sqlite_master
3149
+ WHERE name='index_users_on_email' AND type='index'
3150
+ UNION ALL
3151
+ SELECT sql
3152
+ FROM sqlite_temp_master
3153
+ WHERE name='index_users_on_email' AND type='index'
3154
+
3155
+  (0.0ms)  SELECT sql
3156
+ FROM sqlite_master
3157
+ WHERE name='index_users_on_last_name' AND type='index'
3158
+ UNION ALL
3159
+ SELECT sql
3160
+ FROM sqlite_temp_master
3161
+ WHERE name='index_users_on_last_name' AND type='index'
3162
+ 
3163
+  (0.0ms) SELECT sql
3164
+ FROM sqlite_master
3165
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3166
+ UNION ALL
3167
+ SELECT sql
3168
+ FROM sqlite_temp_master
3169
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3170
+
3171
+  (0.0ms)  SELECT sql
3172
+ FROM sqlite_master
3173
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3174
+ UNION ALL
3175
+ SELECT sql
3176
+ FROM sqlite_temp_master
3177
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3178
+ 
3179
+  (0.0ms) SELECT sql
3180
+ FROM sqlite_master
3181
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3182
+ UNION ALL
3183
+ SELECT sql
3184
+ FROM sqlite_temp_master
3185
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3186
+
3187
+  (0.0ms)  SELECT sql
3188
+ FROM sqlite_master
3189
+ WHERE name='index_employers_on_id' AND type='index'
3190
+ UNION ALL
3191
+ SELECT sql
3192
+ FROM sqlite_temp_master
3193
+ WHERE name='index_employers_on_id' AND type='index'
3194
+ 
3195
+  (0.0ms) SELECT sql
3196
+ FROM sqlite_master
3197
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3198
+ UNION ALL
3199
+ SELECT sql
3200
+ FROM sqlite_temp_master
3201
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3202
+
3203
+  (0.0ms)  SELECT sql
3204
+ FROM sqlite_master
3205
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3206
+ UNION ALL
3207
+ SELECT sql
3208
+ FROM sqlite_temp_master
3209
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3210
+ 
3211
+  (0.0ms) SELECT sql
3212
+ FROM sqlite_master
3213
+ WHERE name='index_users_on_email' AND type='index'
3214
+ UNION ALL
3215
+ SELECT sql
3216
+ FROM sqlite_temp_master
3217
+ WHERE name='index_users_on_email' AND type='index'
3218
+
3219
+  (0.1ms)  SELECT sql
3220
+ FROM sqlite_master
3221
+ WHERE name='index_users_on_last_name' AND type='index'
3222
+ UNION ALL
3223
+ SELECT sql
3224
+ FROM sqlite_temp_master
3225
+ WHERE name='index_users_on_last_name' AND type='index'
3226
+ 
3227
+  (0.0ms) SELECT sql
3228
+ FROM sqlite_master
3229
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3230
+ UNION ALL
3231
+ SELECT sql
3232
+ FROM sqlite_temp_master
3233
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3234
+
3235
+  (0.0ms)  SELECT sql
3236
+ FROM sqlite_master
3237
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3238
+ UNION ALL
3239
+ SELECT sql
3240
+ FROM sqlite_temp_master
3241
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3242
+ 
3243
+  (0.0ms) SELECT sql
3244
+ FROM sqlite_master
3245
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3246
+ UNION ALL
3247
+ SELECT sql
3248
+ FROM sqlite_temp_master
3249
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3250
+
3251
+  (0.0ms)  SELECT sql
3252
+ FROM sqlite_master
3253
+ WHERE name='index_employers_on_id' AND type='index'
3254
+ UNION ALL
3255
+ SELECT sql
3256
+ FROM sqlite_temp_master
3257
+ WHERE name='index_employers_on_id' AND type='index'
3258
+ 
3259
+  (0.0ms) SELECT sql
3260
+ FROM sqlite_master
3261
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3262
+ UNION ALL
3263
+ SELECT sql
3264
+ FROM sqlite_temp_master
3265
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3266
+
3267
+  (0.1ms)  SELECT sql
3268
+ FROM sqlite_master
3269
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3270
+ UNION ALL
3271
+ SELECT sql
3272
+ FROM sqlite_temp_master
3273
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3274
+ 
3275
+  (0.0ms) SELECT sql
3276
+ FROM sqlite_master
3277
+ WHERE name='index_users_on_email' AND type='index'
3278
+ UNION ALL
3279
+ SELECT sql
3280
+ FROM sqlite_temp_master
3281
+ WHERE name='index_users_on_email' AND type='index'
3282
+
3283
+  (0.0ms)  SELECT sql
3284
+ FROM sqlite_master
3285
+ WHERE name='index_users_on_last_name' AND type='index'
3286
+ UNION ALL
3287
+ SELECT sql
3288
+ FROM sqlite_temp_master
3289
+ WHERE name='index_users_on_last_name' AND type='index'
3290
+ 
3291
+  (0.0ms) SELECT sql
3292
+ FROM sqlite_master
3293
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3294
+ UNION ALL
3295
+ SELECT sql
3296
+ FROM sqlite_temp_master
3297
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3298
+
3299
+  (0.0ms)  SELECT sql
3300
+ FROM sqlite_master
3301
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3302
+ UNION ALL
3303
+ SELECT sql
3304
+ FROM sqlite_temp_master
3305
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3306
+ 
3307
+  (0.0ms) SELECT sql
3308
+ FROM sqlite_master
3309
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3310
+ UNION ALL
3311
+ SELECT sql
3312
+ FROM sqlite_temp_master
3313
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3314
+
3315
+  (0.0ms)  SELECT sql
3316
+ FROM sqlite_master
3317
+ WHERE name='index_employers_on_id' AND type='index'
3318
+ UNION ALL
3319
+ SELECT sql
3320
+ FROM sqlite_temp_master
3321
+ WHERE name='index_employers_on_id' AND type='index'
3322
+ 
3323
+  (0.0ms) SELECT sql
3324
+ FROM sqlite_master
3325
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3326
+ UNION ALL
3327
+ SELECT sql
3328
+ FROM sqlite_temp_master
3329
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3330
+
3331
+  (0.1ms)  SELECT sql
3332
+ FROM sqlite_master
3333
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3334
+ UNION ALL
3335
+ SELECT sql
3336
+ FROM sqlite_temp_master
3337
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3338
+ 
3339
+  (0.0ms) SELECT sql
3340
+ FROM sqlite_master
3341
+ WHERE name='index_users_on_email' AND type='index'
3342
+ UNION ALL
3343
+ SELECT sql
3344
+ FROM sqlite_temp_master
3345
+ WHERE name='index_users_on_email' AND type='index'
3346
+
3347
+  (0.0ms)  SELECT sql
3348
+ FROM sqlite_master
3349
+ WHERE name='index_users_on_last_name' AND type='index'
3350
+ UNION ALL
3351
+ SELECT sql
3352
+ FROM sqlite_temp_master
3353
+ WHERE name='index_users_on_last_name' AND type='index'
3354
+ 
3355
+  (0.0ms) SELECT sql
3356
+ FROM sqlite_master
3357
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3358
+ UNION ALL
3359
+ SELECT sql
3360
+ FROM sqlite_temp_master
3361
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3362
+
3363
+  (0.0ms)  SELECT sql
3364
+ FROM sqlite_master
3365
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3366
+ UNION ALL
3367
+ SELECT sql
3368
+ FROM sqlite_temp_master
3369
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3370
+ 
3371
+  (0.0ms) SELECT sql
3372
+ FROM sqlite_master
3373
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3374
+ UNION ALL
3375
+ SELECT sql
3376
+ FROM sqlite_temp_master
3377
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3378
+
3379
+  (0.0ms)  SELECT sql
3380
+ FROM sqlite_master
3381
+ WHERE name='index_employers_on_id' AND type='index'
3382
+ UNION ALL
3383
+ SELECT sql
3384
+ FROM sqlite_temp_master
3385
+ WHERE name='index_employers_on_id' AND type='index'
3386
+ 
3387
+  (0.0ms) SELECT sql
3388
+ FROM sqlite_master
3389
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3390
+ UNION ALL
3391
+ SELECT sql
3392
+ FROM sqlite_temp_master
3393
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3394
+
3395
+  (0.1ms)  SELECT sql
3396
+ FROM sqlite_master
3397
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3398
+ UNION ALL
3399
+ SELECT sql
3400
+ FROM sqlite_temp_master
3401
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3402
+ 
3403
+  (0.0ms) SELECT sql
3404
+ FROM sqlite_master
3405
+ WHERE name='index_users_on_email' AND type='index'
3406
+ UNION ALL
3407
+ SELECT sql
3408
+ FROM sqlite_temp_master
3409
+ WHERE name='index_users_on_email' AND type='index'
3410
+
3411
+  (0.1ms)  SELECT sql
3412
+ FROM sqlite_master
3413
+ WHERE name='index_users_on_last_name' AND type='index'
3414
+ UNION ALL
3415
+ SELECT sql
3416
+ FROM sqlite_temp_master
3417
+ WHERE name='index_users_on_last_name' AND type='index'
3418
+ 
3419
+  (0.0ms) SELECT sql
3420
+ FROM sqlite_master
3421
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3422
+ UNION ALL
3423
+ SELECT sql
3424
+ FROM sqlite_temp_master
3425
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3426
+
3427
+  (0.0ms)  SELECT sql
3428
+ FROM sqlite_master
3429
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3430
+ UNION ALL
3431
+ SELECT sql
3432
+ FROM sqlite_temp_master
3433
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3434
+ 
3435
+  (0.0ms) SELECT sql
3436
+ FROM sqlite_master
3437
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3438
+ UNION ALL
3439
+ SELECT sql
3440
+ FROM sqlite_temp_master
3441
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3442
+
3443
+  (0.0ms)  SELECT sql
3444
+ FROM sqlite_master
3445
+ WHERE name='index_employers_on_id' AND type='index'
3446
+ UNION ALL
3447
+ SELECT sql
3448
+ FROM sqlite_temp_master
3449
+ WHERE name='index_employers_on_id' AND type='index'
3450
+ 
3451
+  (0.0ms) SELECT sql
3452
+ FROM sqlite_master
3453
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3454
+ UNION ALL
3455
+ SELECT sql
3456
+ FROM sqlite_temp_master
3457
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3458
+
3459
+  (0.0ms)  SELECT sql
3460
+ FROM sqlite_master
3461
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3462
+ UNION ALL
3463
+ SELECT sql
3464
+ FROM sqlite_temp_master
3465
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3466
+ 
3467
+  (0.0ms) SELECT sql
3468
+ FROM sqlite_master
3469
+ WHERE name='index_users_on_email' AND type='index'
3470
+ UNION ALL
3471
+ SELECT sql
3472
+ FROM sqlite_temp_master
3473
+ WHERE name='index_users_on_email' AND type='index'
3474
+
3475
+  (0.0ms)  SELECT sql
3476
+ FROM sqlite_master
3477
+ WHERE name='index_users_on_last_name' AND type='index'
3478
+ UNION ALL
3479
+ SELECT sql
3480
+ FROM sqlite_temp_master
3481
+ WHERE name='index_users_on_last_name' AND type='index'
3482
+ 
3483
+  (0.1ms) SELECT sql
3484
+ FROM sqlite_master
3485
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3486
+ UNION ALL
3487
+ SELECT sql
3488
+ FROM sqlite_temp_master
3489
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3490
+
3491
+  (0.0ms)  SELECT sql
3492
+ FROM sqlite_master
3493
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3494
+ UNION ALL
3495
+ SELECT sql
3496
+ FROM sqlite_temp_master
3497
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3498
+ 
3499
+  (0.0ms) SELECT sql
3500
+ FROM sqlite_master
3501
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3502
+ UNION ALL
3503
+ SELECT sql
3504
+ FROM sqlite_temp_master
3505
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3506
+
3507
+  (0.0ms)  SELECT sql
3508
+ FROM sqlite_master
3509
+ WHERE name='index_employers_on_id' AND type='index'
3510
+ UNION ALL
3511
+ SELECT sql
3512
+ FROM sqlite_temp_master
3513
+ WHERE name='index_employers_on_id' AND type='index'
3514
+ 
3515
+  (0.0ms) SELECT sql
3516
+ FROM sqlite_master
3517
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3518
+ UNION ALL
3519
+ SELECT sql
3520
+ FROM sqlite_temp_master
3521
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3522
+
3523
+  (0.1ms)  SELECT sql
3524
+ FROM sqlite_master
3525
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3526
+ UNION ALL
3527
+ SELECT sql
3528
+ FROM sqlite_temp_master
3529
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3530
+ 
3531
+  (0.0ms) SELECT sql
3532
+ FROM sqlite_master
3533
+ WHERE name='index_users_on_email' AND type='index'
3534
+ UNION ALL
3535
+ SELECT sql
3536
+ FROM sqlite_temp_master
3537
+ WHERE name='index_users_on_email' AND type='index'
3538
+
3539
+  (0.0ms)  SELECT sql
3540
+ FROM sqlite_master
3541
+ WHERE name='index_users_on_last_name' AND type='index'
3542
+ UNION ALL
3543
+ SELECT sql
3544
+ FROM sqlite_temp_master
3545
+ WHERE name='index_users_on_last_name' AND type='index'
3546
+ 
3547
+  (0.0ms) SELECT sql
3548
+ FROM sqlite_master
3549
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3550
+ UNION ALL
3551
+ SELECT sql
3552
+ FROM sqlite_temp_master
3553
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3554
+
3555
+  (0.0ms)  SELECT sql
3556
+ FROM sqlite_master
3557
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3558
+ UNION ALL
3559
+ SELECT sql
3560
+ FROM sqlite_temp_master
3561
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3562
+ 
3563
+  (0.0ms) SELECT sql
3564
+ FROM sqlite_master
3565
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3566
+ UNION ALL
3567
+ SELECT sql
3568
+ FROM sqlite_temp_master
3569
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3570
+
3571
+  (0.0ms)  SELECT sql
3572
+ FROM sqlite_master
3573
+ WHERE name='index_employers_on_id' AND type='index'
3574
+ UNION ALL
3575
+ SELECT sql
3576
+ FROM sqlite_temp_master
3577
+ WHERE name='index_employers_on_id' AND type='index'
3578
+ 
3579
+  (0.0ms) SELECT sql
3580
+ FROM sqlite_master
3581
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3582
+ UNION ALL
3583
+ SELECT sql
3584
+ FROM sqlite_temp_master
3585
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3586
+
3587
+  (0.0ms)  SELECT sql
3588
+ FROM sqlite_master
3589
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3590
+ UNION ALL
3591
+ SELECT sql
3592
+ FROM sqlite_temp_master
3593
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3594
+ 
3595
+  (0.0ms) SELECT sql
3596
+ FROM sqlite_master
3597
+ WHERE name='index_users_on_email' AND type='index'
3598
+ UNION ALL
3599
+ SELECT sql
3600
+ FROM sqlite_temp_master
3601
+ WHERE name='index_users_on_email' AND type='index'
3602
+
3603
+  (0.0ms)  SELECT sql
3604
+ FROM sqlite_master
3605
+ WHERE name='index_users_on_last_name' AND type='index'
3606
+ UNION ALL
3607
+ SELECT sql
3608
+ FROM sqlite_temp_master
3609
+ WHERE name='index_users_on_last_name' AND type='index'
3610
+ 
3611
+  (0.0ms) SELECT sql
3612
+ FROM sqlite_master
3613
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3614
+ UNION ALL
3615
+ SELECT sql
3616
+ FROM sqlite_temp_master
3617
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3618
+
3619
+  (0.0ms)  SELECT sql
3620
+ FROM sqlite_master
3621
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3622
+ UNION ALL
3623
+ SELECT sql
3624
+ FROM sqlite_temp_master
3625
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3626
+ 
3627
+  (0.0ms) SELECT sql
3628
+ FROM sqlite_master
3629
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3630
+ UNION ALL
3631
+ SELECT sql
3632
+ FROM sqlite_temp_master
3633
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3634
+
3635
+  (0.0ms)  SELECT sql
3636
+ FROM sqlite_master
3637
+ WHERE name='index_employers_on_id' AND type='index'
3638
+ UNION ALL
3639
+ SELECT sql
3640
+ FROM sqlite_temp_master
3641
+ WHERE name='index_employers_on_id' AND type='index'
3642
+ 
3643
+  (0.0ms) SELECT sql
3644
+ FROM sqlite_master
3645
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3646
+ UNION ALL
3647
+ SELECT sql
3648
+ FROM sqlite_temp_master
3649
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3650
+
3651
+  (0.1ms)  SELECT sql
3652
+ FROM sqlite_master
3653
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3654
+ UNION ALL
3655
+ SELECT sql
3656
+ FROM sqlite_temp_master
3657
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3658
+ 
3659
+  (0.0ms) SELECT sql
3660
+ FROM sqlite_master
3661
+ WHERE name='index_users_on_email' AND type='index'
3662
+ UNION ALL
3663
+ SELECT sql
3664
+ FROM sqlite_temp_master
3665
+ WHERE name='index_users_on_email' AND type='index'
3666
+
3667
+  (0.0ms)  SELECT sql
3668
+ FROM sqlite_master
3669
+ WHERE name='index_users_on_last_name' AND type='index'
3670
+ UNION ALL
3671
+ SELECT sql
3672
+ FROM sqlite_temp_master
3673
+ WHERE name='index_users_on_last_name' AND type='index'
3674
+ 
3675
+  (0.0ms) SELECT sql
3676
+ FROM sqlite_master
3677
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3678
+ UNION ALL
3679
+ SELECT sql
3680
+ FROM sqlite_temp_master
3681
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3682
+
3683
+  (0.0ms)  SELECT sql
3684
+ FROM sqlite_master
3685
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3686
+ UNION ALL
3687
+ SELECT sql
3688
+ FROM sqlite_temp_master
3689
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3690
+ 
3691
+  (0.0ms) SELECT sql
3692
+ FROM sqlite_master
3693
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3694
+ UNION ALL
3695
+ SELECT sql
3696
+ FROM sqlite_temp_master
3697
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3698
+
3699
+  (0.0ms)  SELECT sql
3700
+ FROM sqlite_master
3701
+ WHERE name='index_employers_on_id' AND type='index'
3702
+ UNION ALL
3703
+ SELECT sql
3704
+ FROM sqlite_temp_master
3705
+ WHERE name='index_employers_on_id' AND type='index'
3706
+ 
3707
+  (0.0ms) SELECT sql
3708
+ FROM sqlite_master
3709
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3710
+ UNION ALL
3711
+ SELECT sql
3712
+ FROM sqlite_temp_master
3713
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3714
+
3715
+  (0.0ms)  SELECT sql
3716
+ FROM sqlite_master
3717
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3718
+ UNION ALL
3719
+ SELECT sql
3720
+ FROM sqlite_temp_master
3721
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3722
+ 
3723
+  (0.0ms) SELECT sql
3724
+ FROM sqlite_master
3725
+ WHERE name='index_users_on_email' AND type='index'
3726
+ UNION ALL
3727
+ SELECT sql
3728
+ FROM sqlite_temp_master
3729
+ WHERE name='index_users_on_email' AND type='index'
3730
+
3731
+  (0.0ms)  SELECT sql
3732
+ FROM sqlite_master
3733
+ WHERE name='index_users_on_last_name' AND type='index'
3734
+ UNION ALL
3735
+ SELECT sql
3736
+ FROM sqlite_temp_master
3737
+ WHERE name='index_users_on_last_name' AND type='index'
3738
+ 
3739
+  (0.0ms) SELECT sql
3740
+ FROM sqlite_master
3741
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3742
+ UNION ALL
3743
+ SELECT sql
3744
+ FROM sqlite_temp_master
3745
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3746
+
3747
+  (0.0ms)  SELECT sql
3748
+ FROM sqlite_master
3749
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3750
+ UNION ALL
3751
+ SELECT sql
3752
+ FROM sqlite_temp_master
3753
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3754
+ 
3755
+  (0.0ms) SELECT sql
3756
+ FROM sqlite_master
3757
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3758
+ UNION ALL
3759
+ SELECT sql
3760
+ FROM sqlite_temp_master
3761
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3762
+
3763
+  (0.0ms)  SELECT sql
3764
+ FROM sqlite_master
3765
+ WHERE name='index_employers_on_id' AND type='index'
3766
+ UNION ALL
3767
+ SELECT sql
3768
+ FROM sqlite_temp_master
3769
+ WHERE name='index_employers_on_id' AND type='index'
3770
+ 
3771
+  (0.0ms) SELECT sql
3772
+ FROM sqlite_master
3773
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3774
+ UNION ALL
3775
+ SELECT sql
3776
+ FROM sqlite_temp_master
3777
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3778
+
3779
+  (0.1ms)  SELECT sql
3780
+ FROM sqlite_master
3781
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3782
+ UNION ALL
3783
+ SELECT sql
3784
+ FROM sqlite_temp_master
3785
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3786
+ 
3787
+  (0.1ms) SELECT sql
3788
+ FROM sqlite_master
3789
+ WHERE name='index_users_on_email' AND type='index'
3790
+ UNION ALL
3791
+ SELECT sql
3792
+ FROM sqlite_temp_master
3793
+ WHERE name='index_users_on_email' AND type='index'
3794
+
3795
+  (0.0ms)  SELECT sql
3796
+ FROM sqlite_master
3797
+ WHERE name='index_users_on_last_name' AND type='index'
3798
+ UNION ALL
3799
+ SELECT sql
3800
+ FROM sqlite_temp_master
3801
+ WHERE name='index_users_on_last_name' AND type='index'
3802
+ 
3803
+  (0.0ms) SELECT sql
3804
+ FROM sqlite_master
3805
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3806
+ UNION ALL
3807
+ SELECT sql
3808
+ FROM sqlite_temp_master
3809
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3810
+
3811
+  (0.0ms)  SELECT sql
3812
+ FROM sqlite_master
3813
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3814
+ UNION ALL
3815
+ SELECT sql
3816
+ FROM sqlite_temp_master
3817
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3818
+ 
3819
+  (0.0ms) SELECT sql
3820
+ FROM sqlite_master
3821
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3822
+ UNION ALL
3823
+ SELECT sql
3824
+ FROM sqlite_temp_master
3825
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3826
+
3827
+  (0.0ms)  SELECT sql
3828
+ FROM sqlite_master
3829
+ WHERE name='index_employers_on_id' AND type='index'
3830
+ UNION ALL
3831
+ SELECT sql
3832
+ FROM sqlite_temp_master
3833
+ WHERE name='index_employers_on_id' AND type='index'
3834
+ 
3835
+  (0.0ms) SELECT sql
3836
+ FROM sqlite_master
3837
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3838
+ UNION ALL
3839
+ SELECT sql
3840
+ FROM sqlite_temp_master
3841
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3842
+
3843
+  (0.0ms)  SELECT sql
3844
+ FROM sqlite_master
3845
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3846
+ UNION ALL
3847
+ SELECT sql
3848
+ FROM sqlite_temp_master
3849
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3850
+ 
3851
+  (0.0ms) SELECT sql
3852
+ FROM sqlite_master
3853
+ WHERE name='index_users_on_email' AND type='index'
3854
+ UNION ALL
3855
+ SELECT sql
3856
+ FROM sqlite_temp_master
3857
+ WHERE name='index_users_on_email' AND type='index'
3858
+
3859
+  (0.0ms)  SELECT sql
3860
+ FROM sqlite_master
3861
+ WHERE name='index_users_on_last_name' AND type='index'
3862
+ UNION ALL
3863
+ SELECT sql
3864
+ FROM sqlite_temp_master
3865
+ WHERE name='index_users_on_last_name' AND type='index'
3866
+ 
3867
+  (0.0ms) SELECT sql
3868
+ FROM sqlite_master
3869
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3870
+ UNION ALL
3871
+ SELECT sql
3872
+ FROM sqlite_temp_master
3873
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3874
+
3875
+  (0.0ms)  SELECT sql
3876
+ FROM sqlite_master
3877
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3878
+ UNION ALL
3879
+ SELECT sql
3880
+ FROM sqlite_temp_master
3881
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3882
+ 
3883
+  (0.0ms) SELECT sql
3884
+ FROM sqlite_master
3885
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3886
+ UNION ALL
3887
+ SELECT sql
3888
+ FROM sqlite_temp_master
3889
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3890
+
3891
+  (0.0ms)  SELECT sql
3892
+ FROM sqlite_master
3893
+ WHERE name='index_employers_on_id' AND type='index'
3894
+ UNION ALL
3895
+ SELECT sql
3896
+ FROM sqlite_temp_master
3897
+ WHERE name='index_employers_on_id' AND type='index'
3898
+ 
3899
+  (0.0ms) SELECT sql
3900
+ FROM sqlite_master
3901
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3902
+ UNION ALL
3903
+ SELECT sql
3904
+ FROM sqlite_temp_master
3905
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3906
+
3907
+  (0.1ms)  SELECT sql
3908
+ FROM sqlite_master
3909
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3910
+ UNION ALL
3911
+ SELECT sql
3912
+ FROM sqlite_temp_master
3913
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3914
+ 
3915
+  (0.0ms) SELECT sql
3916
+ FROM sqlite_master
3917
+ WHERE name='index_users_on_email' AND type='index'
3918
+ UNION ALL
3919
+ SELECT sql
3920
+ FROM sqlite_temp_master
3921
+ WHERE name='index_users_on_email' AND type='index'
3922
+
3923
+  (0.0ms)  SELECT sql
3924
+ FROM sqlite_master
3925
+ WHERE name='index_users_on_last_name' AND type='index'
3926
+ UNION ALL
3927
+ SELECT sql
3928
+ FROM sqlite_temp_master
3929
+ WHERE name='index_users_on_last_name' AND type='index'
3930
+ 
3931
+  (0.0ms) SELECT sql
3932
+ FROM sqlite_master
3933
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3934
+ UNION ALL
3935
+ SELECT sql
3936
+ FROM sqlite_temp_master
3937
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3938
+
3939
+  (0.0ms)  SELECT sql
3940
+ FROM sqlite_master
3941
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3942
+ UNION ALL
3943
+ SELECT sql
3944
+ FROM sqlite_temp_master
3945
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
3946
+ 
3947
+  (0.0ms) SELECT sql
3948
+ FROM sqlite_master
3949
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3950
+ UNION ALL
3951
+ SELECT sql
3952
+ FROM sqlite_temp_master
3953
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
3954
+
3955
+  (0.0ms)  SELECT sql
3956
+ FROM sqlite_master
3957
+ WHERE name='index_employers_on_id' AND type='index'
3958
+ UNION ALL
3959
+ SELECT sql
3960
+ FROM sqlite_temp_master
3961
+ WHERE name='index_employers_on_id' AND type='index'
3962
+ 
3963
+  (0.0ms) SELECT sql
3964
+ FROM sqlite_master
3965
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3966
+ UNION ALL
3967
+ SELECT sql
3968
+ FROM sqlite_temp_master
3969
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
3970
+
3971
+  (0.0ms)  SELECT sql
3972
+ FROM sqlite_master
3973
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3974
+ UNION ALL
3975
+ SELECT sql
3976
+ FROM sqlite_temp_master
3977
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
3978
+ 
3979
+  (0.0ms) SELECT sql
3980
+ FROM sqlite_master
3981
+ WHERE name='index_users_on_email' AND type='index'
3982
+ UNION ALL
3983
+ SELECT sql
3984
+ FROM sqlite_temp_master
3985
+ WHERE name='index_users_on_email' AND type='index'
3986
+
3987
+  (0.0ms)  SELECT sql
3988
+ FROM sqlite_master
3989
+ WHERE name='index_users_on_last_name' AND type='index'
3990
+ UNION ALL
3991
+ SELECT sql
3992
+ FROM sqlite_temp_master
3993
+ WHERE name='index_users_on_last_name' AND type='index'
3994
+ 
3995
+  (0.0ms) SELECT sql
3996
+ FROM sqlite_master
3997
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
3998
+ UNION ALL
3999
+ SELECT sql
4000
+ FROM sqlite_temp_master
4001
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4002
+
4003
+  (0.0ms)  SELECT sql
4004
+ FROM sqlite_master
4005
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4006
+ UNION ALL
4007
+ SELECT sql
4008
+ FROM sqlite_temp_master
4009
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4010
+ 
4011
+  (0.1ms) SELECT sql
4012
+ FROM sqlite_master
4013
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4014
+ UNION ALL
4015
+ SELECT sql
4016
+ FROM sqlite_temp_master
4017
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4018
+
4019
+  (0.0ms)  SELECT sql
4020
+ FROM sqlite_master
4021
+ WHERE name='index_employers_on_id' AND type='index'
4022
+ UNION ALL
4023
+ SELECT sql
4024
+ FROM sqlite_temp_master
4025
+ WHERE name='index_employers_on_id' AND type='index'
4026
+ 
4027
+  (0.0ms) SELECT sql
4028
+ FROM sqlite_master
4029
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4030
+ UNION ALL
4031
+ SELECT sql
4032
+ FROM sqlite_temp_master
4033
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4034
+
4035
+  (0.1ms)  SELECT sql
4036
+ FROM sqlite_master
4037
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4038
+ UNION ALL
4039
+ SELECT sql
4040
+ FROM sqlite_temp_master
4041
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4042
+ 
4043
+  (0.0ms) SELECT sql
4044
+ FROM sqlite_master
4045
+ WHERE name='index_users_on_email' AND type='index'
4046
+ UNION ALL
4047
+ SELECT sql
4048
+ FROM sqlite_temp_master
4049
+ WHERE name='index_users_on_email' AND type='index'
4050
+
4051
+  (0.0ms)  SELECT sql
4052
+ FROM sqlite_master
4053
+ WHERE name='index_users_on_last_name' AND type='index'
4054
+ UNION ALL
4055
+ SELECT sql
4056
+ FROM sqlite_temp_master
4057
+ WHERE name='index_users_on_last_name' AND type='index'
4058
+ 
4059
+  (0.0ms) SELECT sql
4060
+ FROM sqlite_master
4061
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4062
+ UNION ALL
4063
+ SELECT sql
4064
+ FROM sqlite_temp_master
4065
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4066
+
4067
+  (0.0ms)  SELECT sql
4068
+ FROM sqlite_master
4069
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4070
+ UNION ALL
4071
+ SELECT sql
4072
+ FROM sqlite_temp_master
4073
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4074
+ 
4075
+  (0.0ms) SELECT sql
4076
+ FROM sqlite_master
4077
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4078
+ UNION ALL
4079
+ SELECT sql
4080
+ FROM sqlite_temp_master
4081
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4082
+
4083
+  (0.0ms)  SELECT sql
4084
+ FROM sqlite_master
4085
+ WHERE name='index_employers_on_id' AND type='index'
4086
+ UNION ALL
4087
+ SELECT sql
4088
+ FROM sqlite_temp_master
4089
+ WHERE name='index_employers_on_id' AND type='index'
4090
+ 
4091
+  (0.0ms) SELECT sql
4092
+ FROM sqlite_master
4093
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4094
+ UNION ALL
4095
+ SELECT sql
4096
+ FROM sqlite_temp_master
4097
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4098
+
4099
+  (0.0ms)  SELECT sql
4100
+ FROM sqlite_master
4101
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4102
+ UNION ALL
4103
+ SELECT sql
4104
+ FROM sqlite_temp_master
4105
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4106
+ 
4107
+  (0.0ms) SELECT sql
4108
+ FROM sqlite_master
4109
+ WHERE name='index_users_on_email' AND type='index'
4110
+ UNION ALL
4111
+ SELECT sql
4112
+ FROM sqlite_temp_master
4113
+ WHERE name='index_users_on_email' AND type='index'
4114
+
4115
+  (0.0ms)  SELECT sql
4116
+ FROM sqlite_master
4117
+ WHERE name='index_users_on_last_name' AND type='index'
4118
+ UNION ALL
4119
+ SELECT sql
4120
+ FROM sqlite_temp_master
4121
+ WHERE name='index_users_on_last_name' AND type='index'
4122
+ 
4123
+  (0.0ms) SELECT sql
4124
+ FROM sqlite_master
4125
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4126
+ UNION ALL
4127
+ SELECT sql
4128
+ FROM sqlite_temp_master
4129
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4130
+
4131
+  (0.0ms)  SELECT sql
4132
+ FROM sqlite_master
4133
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4134
+ UNION ALL
4135
+ SELECT sql
4136
+ FROM sqlite_temp_master
4137
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4138
+ 
4139
+  (0.0ms) SELECT sql
4140
+ FROM sqlite_master
4141
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4142
+ UNION ALL
4143
+ SELECT sql
4144
+ FROM sqlite_temp_master
4145
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4146
+
4147
+  (0.0ms)  SELECT sql
4148
+ FROM sqlite_master
4149
+ WHERE name='index_employers_on_id' AND type='index'
4150
+ UNION ALL
4151
+ SELECT sql
4152
+ FROM sqlite_temp_master
4153
+ WHERE name='index_employers_on_id' AND type='index'
4154
+ 
4155
+  (0.0ms) SELECT sql
4156
+ FROM sqlite_master
4157
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4158
+ UNION ALL
4159
+ SELECT sql
4160
+ FROM sqlite_temp_master
4161
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4162
+
4163
+  (0.1ms)  SELECT sql
4164
+ FROM sqlite_master
4165
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4166
+ UNION ALL
4167
+ SELECT sql
4168
+ FROM sqlite_temp_master
4169
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4170
+ 
4171
+  (0.0ms) SELECT sql
4172
+ FROM sqlite_master
4173
+ WHERE name='index_users_on_email' AND type='index'
4174
+ UNION ALL
4175
+ SELECT sql
4176
+ FROM sqlite_temp_master
4177
+ WHERE name='index_users_on_email' AND type='index'
4178
+
4179
+  (0.0ms)  SELECT sql
4180
+ FROM sqlite_master
4181
+ WHERE name='index_users_on_last_name' AND type='index'
4182
+ UNION ALL
4183
+ SELECT sql
4184
+ FROM sqlite_temp_master
4185
+ WHERE name='index_users_on_last_name' AND type='index'
4186
+ 
4187
+  (0.0ms) SELECT sql
4188
+ FROM sqlite_master
4189
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4190
+ UNION ALL
4191
+ SELECT sql
4192
+ FROM sqlite_temp_master
4193
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4194
+
4195
+  (0.0ms)  SELECT sql
4196
+ FROM sqlite_master
4197
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4198
+ UNION ALL
4199
+ SELECT sql
4200
+ FROM sqlite_temp_master
4201
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4202
+ 
4203
+  (0.0ms) SELECT sql
4204
+ FROM sqlite_master
4205
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4206
+ UNION ALL
4207
+ SELECT sql
4208
+ FROM sqlite_temp_master
4209
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4210
+
4211
+  (0.0ms)  SELECT sql
4212
+ FROM sqlite_master
4213
+ WHERE name='index_employers_on_id' AND type='index'
4214
+ UNION ALL
4215
+ SELECT sql
4216
+ FROM sqlite_temp_master
4217
+ WHERE name='index_employers_on_id' AND type='index'
4218
+ 
4219
+  (0.1ms) SELECT sql
4220
+ FROM sqlite_master
4221
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4222
+ UNION ALL
4223
+ SELECT sql
4224
+ FROM sqlite_temp_master
4225
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4226
+
4227
+  (0.0ms)  SELECT sql
4228
+ FROM sqlite_master
4229
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4230
+ UNION ALL
4231
+ SELECT sql
4232
+ FROM sqlite_temp_master
4233
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4234
+ 
4235
+  (0.1ms) SELECT sql
4236
+ FROM sqlite_master
4237
+ WHERE name='index_users_on_email' AND type='index'
4238
+ UNION ALL
4239
+ SELECT sql
4240
+ FROM sqlite_temp_master
4241
+ WHERE name='index_users_on_email' AND type='index'
4242
+
4243
+  (0.0ms)  SELECT sql
4244
+ FROM sqlite_master
4245
+ WHERE name='index_users_on_last_name' AND type='index'
4246
+ UNION ALL
4247
+ SELECT sql
4248
+ FROM sqlite_temp_master
4249
+ WHERE name='index_users_on_last_name' AND type='index'
4250
+ 
4251
+  (0.0ms) SELECT sql
4252
+ FROM sqlite_master
4253
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4254
+ UNION ALL
4255
+ SELECT sql
4256
+ FROM sqlite_temp_master
4257
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4258
+
4259
+  (0.0ms)  SELECT sql
4260
+ FROM sqlite_master
4261
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4262
+ UNION ALL
4263
+ SELECT sql
4264
+ FROM sqlite_temp_master
4265
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4266
+ 
4267
+  (0.0ms) SELECT sql
4268
+ FROM sqlite_master
4269
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4270
+ UNION ALL
4271
+ SELECT sql
4272
+ FROM sqlite_temp_master
4273
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4274
+
4275
+  (0.0ms)  SELECT sql
4276
+ FROM sqlite_master
4277
+ WHERE name='index_employers_on_id' AND type='index'
4278
+ UNION ALL
4279
+ SELECT sql
4280
+ FROM sqlite_temp_master
4281
+ WHERE name='index_employers_on_id' AND type='index'
4282
+ 
4283
+  (0.0ms) SELECT sql
4284
+ FROM sqlite_master
4285
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4286
+ UNION ALL
4287
+ SELECT sql
4288
+ FROM sqlite_temp_master
4289
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4290
+
4291
+  (0.1ms)  SELECT sql
4292
+ FROM sqlite_master
4293
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4294
+ UNION ALL
4295
+ SELECT sql
4296
+ FROM sqlite_temp_master
4297
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4298
+ 
4299
+  (0.0ms) SELECT sql
4300
+ FROM sqlite_master
4301
+ WHERE name='index_users_on_email' AND type='index'
4302
+ UNION ALL
4303
+ SELECT sql
4304
+ FROM sqlite_temp_master
4305
+ WHERE name='index_users_on_email' AND type='index'
4306
+
4307
+  (0.0ms)  SELECT sql
4308
+ FROM sqlite_master
4309
+ WHERE name='index_users_on_last_name' AND type='index'
4310
+ UNION ALL
4311
+ SELECT sql
4312
+ FROM sqlite_temp_master
4313
+ WHERE name='index_users_on_last_name' AND type='index'
4314
+ 
4315
+  (0.0ms) SELECT sql
4316
+ FROM sqlite_master
4317
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4318
+ UNION ALL
4319
+ SELECT sql
4320
+ FROM sqlite_temp_master
4321
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4322
+
4323
+  (0.0ms)  SELECT sql
4324
+ FROM sqlite_master
4325
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4326
+ UNION ALL
4327
+ SELECT sql
4328
+ FROM sqlite_temp_master
4329
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4330
+ 
4331
+  (0.0ms) SELECT sql
4332
+ FROM sqlite_master
4333
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4334
+ UNION ALL
4335
+ SELECT sql
4336
+ FROM sqlite_temp_master
4337
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4338
+
4339
+  (0.0ms)  SELECT sql
4340
+ FROM sqlite_master
4341
+ WHERE name='index_employers_on_id' AND type='index'
4342
+ UNION ALL
4343
+ SELECT sql
4344
+ FROM sqlite_temp_master
4345
+ WHERE name='index_employers_on_id' AND type='index'
4346
+ 
4347
+  (0.0ms) SELECT sql
4348
+ FROM sqlite_master
4349
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4350
+ UNION ALL
4351
+ SELECT sql
4352
+ FROM sqlite_temp_master
4353
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4354
+
4355
+  (0.0ms)  SELECT sql
4356
+ FROM sqlite_master
4357
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4358
+ UNION ALL
4359
+ SELECT sql
4360
+ FROM sqlite_temp_master
4361
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4362
+ 
4363
+  (0.0ms) SELECT sql
4364
+ FROM sqlite_master
4365
+ WHERE name='index_users_on_email' AND type='index'
4366
+ UNION ALL
4367
+ SELECT sql
4368
+ FROM sqlite_temp_master
4369
+ WHERE name='index_users_on_email' AND type='index'
4370
+
4371
+  (0.0ms)  SELECT sql
4372
+ FROM sqlite_master
4373
+ WHERE name='index_users_on_last_name' AND type='index'
4374
+ UNION ALL
4375
+ SELECT sql
4376
+ FROM sqlite_temp_master
4377
+ WHERE name='index_users_on_last_name' AND type='index'
4378
+ 
4379
+  (0.0ms) SELECT sql
4380
+ FROM sqlite_master
4381
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4382
+ UNION ALL
4383
+ SELECT sql
4384
+ FROM sqlite_temp_master
4385
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4386
+
4387
+  (0.0ms)  SELECT sql
4388
+ FROM sqlite_master
4389
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4390
+ UNION ALL
4391
+ SELECT sql
4392
+ FROM sqlite_temp_master
4393
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4394
+ 
4395
+  (0.1ms) SELECT sql
4396
+ FROM sqlite_master
4397
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4398
+ UNION ALL
4399
+ SELECT sql
4400
+ FROM sqlite_temp_master
4401
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4402
+
4403
+  (0.0ms)  SELECT sql
4404
+ FROM sqlite_master
4405
+ WHERE name='index_employers_on_id' AND type='index'
4406
+ UNION ALL
4407
+ SELECT sql
4408
+ FROM sqlite_temp_master
4409
+ WHERE name='index_employers_on_id' AND type='index'
4410
+ 
4411
+  (0.0ms) SELECT sql
4412
+ FROM sqlite_master
4413
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4414
+ UNION ALL
4415
+ SELECT sql
4416
+ FROM sqlite_temp_master
4417
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4418
+
4419
+  (27.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
4420
+  (0.0ms) select sqlite_version(*)
4421
+  (21.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4422
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
4423
+ Migrating to CreateUsers (20160213101213)
4424
+  (0.0ms) begin transaction
4425
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "first_name" varchar, "last_name" varchar, "profile_id" integer, "employer_id" integer, "country_code" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4426
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name_and_email" ON "users" ("last_name", "first_name", "email")
4427
+  (0.1ms) SELECT sql
4428
+ FROM sqlite_master
4429
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4430
+ UNION ALL
4431
+ SELECT sql
4432
+ FROM sqlite_temp_master
4433
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4434
+
4435
+  (0.1ms) CREATE INDEX "index_users_on_last_name_and_first_name" ON "users" ("last_name", "first_name")
4436
+  (0.0ms) SELECT sql
4437
+ FROM sqlite_master
4438
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4439
+ UNION ALL
4440
+ SELECT sql
4441
+ FROM sqlite_temp_master
4442
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4443
+
4444
+  (0.0ms)  SELECT sql
4445
+ FROM sqlite_master
4446
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4447
+ UNION ALL
4448
+ SELECT sql
4449
+ FROM sqlite_temp_master
4450
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4451
+ 
4452
+  (0.1ms) CREATE UNIQUE INDEX "unique_index_on_users_last_name_and_first_name" ON "users" ("last_name", "first_name")
4453
+  (0.0ms)  SELECT sql
4454
+ FROM sqlite_master
4455
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4456
+ UNION ALL
4457
+ SELECT sql
4458
+ FROM sqlite_temp_master
4459
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4460
+ 
4461
+  (0.0ms) SELECT sql
4462
+ FROM sqlite_master
4463
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4464
+ UNION ALL
4465
+ SELECT sql
4466
+ FROM sqlite_temp_master
4467
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4468
+
4469
+  (0.0ms)  SELECT sql
4470
+ FROM sqlite_master
4471
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4472
+ UNION ALL
4473
+ SELECT sql
4474
+ FROM sqlite_temp_master
4475
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4476
+ 
4477
+  (0.1ms) CREATE INDEX "index_users_on_last_name" ON "users" ("last_name")
4478
+  (0.0ms)  SELECT sql
4479
+ FROM sqlite_master
4480
+ WHERE name='index_users_on_last_name' AND type='index'
4481
+ UNION ALL
4482
+ SELECT sql
4483
+ FROM sqlite_temp_master
4484
+ WHERE name='index_users_on_last_name' AND type='index'
4485
+ 
4486
+  (0.0ms) SELECT sql
4487
+ FROM sqlite_master
4488
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4489
+ UNION ALL
4490
+ SELECT sql
4491
+ FROM sqlite_temp_master
4492
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4493
+
4494
+  (0.0ms)  SELECT sql
4495
+ FROM sqlite_master
4496
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4497
+ UNION ALL
4498
+ SELECT sql
4499
+ FROM sqlite_temp_master
4500
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4501
+ 
4502
+  (0.0ms) SELECT sql
4503
+ FROM sqlite_master
4504
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4505
+ UNION ALL
4506
+ SELECT sql
4507
+ FROM sqlite_temp_master
4508
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4509
+
4510
+  (0.1ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
4511
+  (0.0ms) SELECT sql
4512
+ FROM sqlite_master
4513
+ WHERE name='index_users_on_email' AND type='index'
4514
+ UNION ALL
4515
+ SELECT sql
4516
+ FROM sqlite_temp_master
4517
+ WHERE name='index_users_on_email' AND type='index'
4518
+
4519
+  (0.0ms)  SELECT sql
4520
+ FROM sqlite_master
4521
+ WHERE name='index_users_on_last_name' AND type='index'
4522
+ UNION ALL
4523
+ SELECT sql
4524
+ FROM sqlite_temp_master
4525
+ WHERE name='index_users_on_last_name' AND type='index'
4526
+ 
4527
+  (0.0ms) SELECT sql
4528
+ FROM sqlite_master
4529
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4530
+ UNION ALL
4531
+ SELECT sql
4532
+ FROM sqlite_temp_master
4533
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4534
+
4535
+  (0.0ms)  SELECT sql
4536
+ FROM sqlite_master
4537
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4538
+ UNION ALL
4539
+ SELECT sql
4540
+ FROM sqlite_temp_master
4541
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4542
+ 
4543
+  (0.0ms) SELECT sql
4544
+ FROM sqlite_master
4545
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4546
+ UNION ALL
4547
+ SELECT sql
4548
+ FROM sqlite_temp_master
4549
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4550
+
4551
+  (0.1ms) CREATE UNIQUE INDEX "unique_index_on_users_email" ON "users" ("email")
4552
+  (0.0ms) SELECT sql
4553
+ FROM sqlite_master
4554
+ WHERE name='unique_index_on_users_email' AND type='index'
4555
+ UNION ALL
4556
+ SELECT sql
4557
+ FROM sqlite_temp_master
4558
+ WHERE name='unique_index_on_users_email' AND type='index'
4559
+
4560
+  (0.0ms)  SELECT sql
4561
+ FROM sqlite_master
4562
+ WHERE name='index_users_on_email' AND type='index'
4563
+ UNION ALL
4564
+ SELECT sql
4565
+ FROM sqlite_temp_master
4566
+ WHERE name='index_users_on_email' AND type='index'
4567
+ 
4568
+  (0.0ms) SELECT sql
4569
+ FROM sqlite_master
4570
+ WHERE name='index_users_on_last_name' AND type='index'
4571
+ UNION ALL
4572
+ SELECT sql
4573
+ FROM sqlite_temp_master
4574
+ WHERE name='index_users_on_last_name' AND type='index'
4575
+
4576
+  (0.0ms)  SELECT sql
4577
+ FROM sqlite_master
4578
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4579
+ UNION ALL
4580
+ SELECT sql
4581
+ FROM sqlite_temp_master
4582
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4583
+ 
4584
+  (0.0ms) SELECT sql
4585
+ FROM sqlite_master
4586
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4587
+ UNION ALL
4588
+ SELECT sql
4589
+ FROM sqlite_temp_master
4590
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4591
+
4592
+  (0.0ms)  SELECT sql
4593
+ FROM sqlite_master
4594
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4595
+ UNION ALL
4596
+ SELECT sql
4597
+ FROM sqlite_temp_master
4598
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4599
+ 
4600
+  (0.1ms) CREATE INDEX "index_users_on_employer_id_and_country_code" ON "users" ("employer_id", "country_code")
4601
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101213"]]
4602
+  (38.3ms) commit transaction
4603
+ Migrating to CreateProfiles (20160213101232)
4604
+  (0.0ms) begin transaction
4605
+  (0.1ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4606
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213101232"]]
4607
+  (22.0ms) commit transaction
4608
+ Migrating to CreateEmployers (20160213102131)
4609
+  (0.0ms) begin transaction
4610
+  (0.1ms) CREATE TABLE "employers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4611
+  (0.1ms) CREATE INDEX "index_employers_on_id" ON "employers" ("id")
4612
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160213102131"]]
4613
+  (30.3ms) commit transaction
4614
+ Migrating to CreateComments (20160604081452)
4615
+  (0.0ms) begin transaction
4616
+  (0.1ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commentable_id" integer, "commentable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4617
+  (0.1ms) CREATE INDEX "index_comments_on_commentable_type_and_commentable_id" ON "comments" ("commentable_type", "commentable_id")
4618
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160604081452"]]
4619
+  (27.3ms) commit transaction
4620
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
4621
+  (0.1ms) SELECT sql
4622
+ FROM sqlite_master
4623
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4624
+ UNION ALL
4625
+ SELECT sql
4626
+ FROM sqlite_temp_master
4627
+ WHERE name='index_comments_on_commentable_type_and_commentable_id' AND type='index'
4628
+
4629
+  (0.0ms)  SELECT sql
4630
+ FROM sqlite_master
4631
+ WHERE name='index_employers_on_id' AND type='index'
4632
+ UNION ALL
4633
+ SELECT sql
4634
+ FROM sqlite_temp_master
4635
+ WHERE name='index_employers_on_id' AND type='index'
4636
+ 
4637
+  (0.0ms) SELECT sql
4638
+ FROM sqlite_master
4639
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4640
+ UNION ALL
4641
+ SELECT sql
4642
+ FROM sqlite_temp_master
4643
+ WHERE name='index_users_on_employer_id_and_country_code' AND type='index'
4644
+
4645
+  (0.0ms)  SELECT sql
4646
+ FROM sqlite_master
4647
+ WHERE name='unique_index_on_users_email' AND type='index'
4648
+ UNION ALL
4649
+ SELECT sql
4650
+ FROM sqlite_temp_master
4651
+ WHERE name='unique_index_on_users_email' AND type='index'
4652
+ 
4653
+  (0.0ms) SELECT sql
4654
+ FROM sqlite_master
4655
+ WHERE name='index_users_on_email' AND type='index'
4656
+ UNION ALL
4657
+ SELECT sql
4658
+ FROM sqlite_temp_master
4659
+ WHERE name='index_users_on_email' AND type='index'
4660
+
4661
+  (0.1ms)  SELECT sql
4662
+ FROM sqlite_master
4663
+ WHERE name='index_users_on_last_name' AND type='index'
4664
+ UNION ALL
4665
+ SELECT sql
4666
+ FROM sqlite_temp_master
4667
+ WHERE name='index_users_on_last_name' AND type='index'
4668
+ 
4669
+  (0.0ms) SELECT sql
4670
+ FROM sqlite_master
4671
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4672
+ UNION ALL
4673
+ SELECT sql
4674
+ FROM sqlite_temp_master
4675
+ WHERE name='unique_index_on_users_last_name_and_first_name' AND type='index'
4676
+
4677
+  (0.1ms)  SELECT sql
4678
+ FROM sqlite_master
4679
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4680
+ UNION ALL
4681
+ SELECT sql
4682
+ FROM sqlite_temp_master
4683
+ WHERE name='index_users_on_last_name_and_first_name' AND type='index'
4684
+ 
4685
+  (0.0ms) SELECT sql
4686
+ FROM sqlite_master
4687
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4688
+ UNION ALL
4689
+ SELECT sql
4690
+ FROM sqlite_temp_master
4691
+ WHERE name='index_users_on_last_name_and_first_name_and_email' AND type='index'
4692
+