slugs 4.0.0.3 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +5 -5
  4. data/Rakefile +1 -3
  5. data/lib/slugs/extensions/action_dispatch/optimized_url_helper.rb +6 -6
  6. data/lib/slugs/slug.rb +1 -1
  7. data/lib/slugs/version.rb +1 -1
  8. metadata +13 -127
  9. data/test/dummy/Rakefile +0 -5
  10. data/test/dummy/app/assets/javascripts/application.js +0 -13
  11. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  12. data/test/dummy/app/controllers/application_controller.rb +0 -5
  13. data/test/dummy/app/helpers/application_helper.rb +0 -2
  14. data/test/dummy/app/models/category.rb +0 -7
  15. data/test/dummy/app/models/domain.rb +0 -2
  16. data/test/dummy/app/models/product.rb +0 -8
  17. data/test/dummy/app/models/shop.rb +0 -5
  18. data/test/dummy/app/models/user.rb +0 -5
  19. data/test/dummy/app/views/layouts/application.html.erb +0 -12
  20. data/test/dummy/bin/bundle +0 -4
  21. data/test/dummy/bin/rails +0 -5
  22. data/test/dummy/bin/rake +0 -5
  23. data/test/dummy/bin/setup +0 -30
  24. data/test/dummy/config.ru +0 -4
  25. data/test/dummy/config/application.rb +0 -25
  26. data/test/dummy/config/boot.rb +0 -5
  27. data/test/dummy/config/database.yml +0 -10
  28. data/test/dummy/config/database.yml.travis +0 -3
  29. data/test/dummy/config/environment.rb +0 -5
  30. data/test/dummy/config/environments/development.rb +0 -41
  31. data/test/dummy/config/environments/production.rb +0 -79
  32. data/test/dummy/config/environments/test.rb +0 -42
  33. data/test/dummy/config/initializers/assets.rb +0 -11
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  35. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  36. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  37. data/test/dummy/config/initializers/inflections.rb +0 -16
  38. data/test/dummy/config/initializers/mime_types.rb +0 -4
  39. data/test/dummy/config/initializers/session_store.rb +0 -3
  40. data/test/dummy/config/initializers/slugs.rb +0 -7
  41. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  42. data/test/dummy/config/locales/en.yml +0 -23
  43. data/test/dummy/config/routes.rb +0 -5
  44. data/test/dummy/config/secrets.yml +0 -22
  45. data/test/dummy/db/migrate/20161016174020_create_users.rb +0 -11
  46. data/test/dummy/db/migrate/20161016174126_create_shops.rb +0 -10
  47. data/test/dummy/db/migrate/20161016174202_create_products.rb +0 -12
  48. data/test/dummy/db/migrate/20161016174225_create_categories.rb +0 -11
  49. data/test/dummy/db/migrate/20161124162802_create_slugs.rb +0 -15
  50. data/test/dummy/db/migrate/20161208062832_create_domains.rb +0 -8
  51. data/test/dummy/db/schema.rb +0 -68
  52. data/test/dummy/log/development.log +0 -726
  53. data/test/dummy/log/test.log +0 -5870
  54. data/test/dummy/public/404.html +0 -61
  55. data/test/dummy/public/422.html +0 -61
  56. data/test/dummy/public/500.html +0 -60
  57. data/test/dummy/public/favicon.ico +0 -0
  58. data/test/generator_test.rb +0 -18
  59. data/test/record_test.rb +0 -71
  60. data/test/route_test.rb +0 -17
  61. data/test/task_test.rb +0 -17
  62. data/test/test_helper.rb +0 -13
@@ -1,68 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20161208062832) do
15
-
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "categories", force: :cascade do |t|
20
- t.string "name"
21
- t.integer "shop_id"
22
- t.string "slug"
23
- t.datetime "created_at", null: false
24
- t.datetime "updated_at", null: false
25
- end
26
-
27
- create_table "domains", force: :cascade do |t|
28
- t.datetime "created_at", null: false
29
- t.datetime "updated_at", null: false
30
- end
31
-
32
- create_table "products", force: :cascade do |t|
33
- t.string "name"
34
- t.integer "shop_id"
35
- t.integer "category_id"
36
- t.string "slug"
37
- t.datetime "created_at", null: false
38
- t.datetime "updated_at", null: false
39
- end
40
-
41
- create_table "shops", force: :cascade do |t|
42
- t.string "name"
43
- t.string "slug"
44
- t.datetime "created_at", null: false
45
- t.datetime "updated_at", null: false
46
- end
47
-
48
- create_table "slugs", force: :cascade do |t|
49
- t.integer "sluggable_id"
50
- t.string "sluggable_type"
51
- t.string "value"
52
- t.datetime "created_at", null: false
53
- t.datetime "updated_at", null: false
54
- end
55
-
56
- add_index "slugs", ["sluggable_id"], name: "index_slugs_on_sluggable_id", using: :btree
57
- add_index "slugs", ["sluggable_type"], name: "index_slugs_on_sluggable_type", using: :btree
58
- add_index "slugs", ["value"], name: "index_slugs_on_value", using: :btree
59
-
60
- create_table "users", force: :cascade do |t|
61
- t.string "first_name"
62
- t.string "last_name"
63
- t.string "slug"
64
- t.datetime "created_at", null: false
65
- t.datetime "updated_at", null: false
66
- end
67
-
68
- end
@@ -1,726 +0,0 @@
1
-  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateUsers (20161016174020)
5
-  (0.2ms) BEGIN
6
-  (13.6ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
7
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
8
-  (5.8ms) COMMIT
9
- Migrating to CreateShops (20161016174126)
10
-  (5.9ms) BEGIN
11
-  (19.4ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
12
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
13
-  (0.4ms) COMMIT
14
- Migrating to CreateProducts (20161016174202)
15
-  (5.9ms) BEGIN
16
-  (18.3ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
17
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
18
-  (1.7ms) COMMIT
19
- Migrating to CreateCategories (20161016174225)
20
-  (5.9ms) BEGIN
21
-  (43.7ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
22
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
23
-  (0.2ms) COMMIT
24
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
26
- FROM pg_constraint c
27
- JOIN pg_class t1 ON c.conrelid = t1.oid
28
- JOIN pg_class t2 ON c.confrelid = t2.oid
29
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
30
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
31
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
32
- WHERE c.contype = 'f'
33
- AND t1.relname = 'categories'
34
- AND t3.nspname = ANY (current_schemas(false))
35
- ORDER BY c.conname
36
- 
37
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
38
- FROM pg_constraint c
39
- JOIN pg_class t1 ON c.conrelid = t1.oid
40
- JOIN pg_class t2 ON c.confrelid = t2.oid
41
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
42
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
43
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
44
- WHERE c.contype = 'f'
45
- AND t1.relname = 'products'
46
- AND t3.nspname = ANY (current_schemas(false))
47
- ORDER BY c.conname
48
-
49
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
50
- FROM pg_constraint c
51
- JOIN pg_class t1 ON c.conrelid = t1.oid
52
- JOIN pg_class t2 ON c.confrelid = t2.oid
53
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
54
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
55
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
56
- WHERE c.contype = 'f'
57
- AND t1.relname = 'shops'
58
- AND t3.nspname = ANY (current_schemas(false))
59
- ORDER BY c.conname
60
- 
61
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
62
- FROM pg_constraint c
63
- JOIN pg_class t1 ON c.conrelid = t1.oid
64
- JOIN pg_class t2 ON c.confrelid = t2.oid
65
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
66
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
67
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
68
- WHERE c.contype = 'f'
69
- AND t1.relname = 'users'
70
- AND t3.nspname = ANY (current_schemas(false))
71
- ORDER BY c.conname
72
-
73
-  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
74
-  (17.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
75
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
76
- Migrating to CreateUsers (20161016174020)
77
-  (0.1ms) BEGIN
78
-  (0.2ms) ROLLBACK
79
-  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
80
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
81
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
82
- Migrating to CreateUsers (20161016174020)
83
-  (0.2ms) BEGIN
84
-  (13.6ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slugs" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
85
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
86
-  (6.2ms) COMMIT
87
- Migrating to CreateShops (20161016174126)
88
-  (11.3ms) BEGIN
89
-  (13.1ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slugs" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
90
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
91
-  (0.3ms) COMMIT
92
- Migrating to CreateProducts (20161016174202)
93
-  (5.8ms) BEGIN
94
-  (13.1ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slugs" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
95
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
96
-  (4.9ms) COMMIT
97
- Migrating to CreateCategories (20161016174225)
98
-  (6.1ms) BEGIN
99
-  (12.6ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
100
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
101
-  (4.9ms) COMMIT
102
- Migrating to AddSlugsToCategories (20161122160434)
103
-  (5.9ms) BEGIN
104
-  (19.4ms) ALTER TABLE "categories" ADD "slugs" jsonb DEFAULT '[]'
105
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161122160434"]]
106
-  (0.6ms) COMMIT
107
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
108
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
109
- FROM pg_constraint c
110
- JOIN pg_class t1 ON c.conrelid = t1.oid
111
- JOIN pg_class t2 ON c.confrelid = t2.oid
112
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
113
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
114
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
115
- WHERE c.contype = 'f'
116
- AND t1.relname = 'categories'
117
- AND t3.nspname = ANY (current_schemas(false))
118
- ORDER BY c.conname
119
- 
120
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
121
- FROM pg_constraint c
122
- JOIN pg_class t1 ON c.conrelid = t1.oid
123
- JOIN pg_class t2 ON c.confrelid = t2.oid
124
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
125
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
126
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
127
- WHERE c.contype = 'f'
128
- AND t1.relname = 'products'
129
- AND t3.nspname = ANY (current_schemas(false))
130
- ORDER BY c.conname
131
-
132
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
133
- FROM pg_constraint c
134
- JOIN pg_class t1 ON c.conrelid = t1.oid
135
- JOIN pg_class t2 ON c.confrelid = t2.oid
136
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
137
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
138
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
139
- WHERE c.contype = 'f'
140
- AND t1.relname = 'shops'
141
- AND t3.nspname = ANY (current_schemas(false))
142
- ORDER BY c.conname
143
- 
144
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
145
- FROM pg_constraint c
146
- JOIN pg_class t1 ON c.conrelid = t1.oid
147
- JOIN pg_class t2 ON c.confrelid = t2.oid
148
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
149
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
150
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
151
- WHERE c.contype = 'f'
152
- AND t1.relname = 'users'
153
- AND t3.nspname = ANY (current_schemas(false))
154
- ORDER BY c.conname
155
-
156
-  (13.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
157
-  (17.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
158
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
159
- Migrating to CreateUsers (20161016174020)
160
-  (0.2ms) BEGIN
161
-  (13.4ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "previous_slugs" character varying[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
162
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
163
-  (5.5ms) COMMIT
164
- Migrating to CreateShops (20161016174126)
165
-  (5.8ms) BEGIN
166
-  (12.4ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "previous_slugs" character varying[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
167
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
168
-  (0.4ms) COMMIT
169
- Migrating to CreateProducts (20161016174202)
170
-  (0.2ms) BEGIN
171
-  (1.9ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "previous_slugs" character varying[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
172
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
173
-  (0.3ms) COMMIT
174
- Migrating to CreateCategories (20161016174225)
175
-  (0.2ms) BEGIN
176
-  (1.9ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
177
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
178
-  (0.3ms) COMMIT
179
- Migrating to AddSlugsToCategories (20161122160434)
180
-  (0.2ms) BEGIN
181
-  (0.3ms) ALTER TABLE "categories" ADD "slug" character varying
182
-  (0.2ms) ALTER TABLE "categories" ADD "previous_slugs" character varying[]
183
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161122160434"]]
184
-  (0.2ms) COMMIT
185
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
186
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
187
- FROM pg_constraint c
188
- JOIN pg_class t1 ON c.conrelid = t1.oid
189
- JOIN pg_class t2 ON c.confrelid = t2.oid
190
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
191
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
192
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
193
- WHERE c.contype = 'f'
194
- AND t1.relname = 'categories'
195
- AND t3.nspname = ANY (current_schemas(false))
196
- ORDER BY c.conname
197
-
198
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
199
- FROM pg_constraint c
200
- JOIN pg_class t1 ON c.conrelid = t1.oid
201
- JOIN pg_class t2 ON c.confrelid = t2.oid
202
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
203
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
204
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
205
- WHERE c.contype = 'f'
206
- AND t1.relname = 'products'
207
- AND t3.nspname = ANY (current_schemas(false))
208
- ORDER BY c.conname
209
- 
210
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
211
- FROM pg_constraint c
212
- JOIN pg_class t1 ON c.conrelid = t1.oid
213
- JOIN pg_class t2 ON c.confrelid = t2.oid
214
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
215
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
216
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
217
- WHERE c.contype = 'f'
218
- AND t1.relname = 'shops'
219
- AND t3.nspname = ANY (current_schemas(false))
220
- ORDER BY c.conname
221
-
222
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
223
- FROM pg_constraint c
224
- JOIN pg_class t1 ON c.conrelid = t1.oid
225
- JOIN pg_class t2 ON c.confrelid = t2.oid
226
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
227
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
228
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
229
- WHERE c.contype = 'f'
230
- AND t1.relname = 'users'
231
- AND t3.nspname = ANY (current_schemas(false))
232
- ORDER BY c.conname
233
- 
234
- ActiveRecord::SchemaMigration Load (6.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
- Migrating to CreateSlugs (20161124162802)
236
-  (0.2ms) BEGIN
237
-  (25.1ms) CREATE TABLE "slugs" ("id" serial primary key, "sluggable_id" integer, "sluggable_type" character varying, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
238
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161124162802"]]
239
-  (7.0ms) COMMIT
240
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
241
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
242
- FROM pg_constraint c
243
- JOIN pg_class t1 ON c.conrelid = t1.oid
244
- JOIN pg_class t2 ON c.confrelid = t2.oid
245
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
246
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
247
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
248
- WHERE c.contype = 'f'
249
- AND t1.relname = 'categories'
250
- AND t3.nspname = ANY (current_schemas(false))
251
- ORDER BY c.conname
252
- 
253
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
254
- FROM pg_constraint c
255
- JOIN pg_class t1 ON c.conrelid = t1.oid
256
- JOIN pg_class t2 ON c.confrelid = t2.oid
257
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
258
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
259
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
260
- WHERE c.contype = 'f'
261
- AND t1.relname = 'products'
262
- AND t3.nspname = ANY (current_schemas(false))
263
- ORDER BY c.conname
264
-
265
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
266
- FROM pg_constraint c
267
- JOIN pg_class t1 ON c.conrelid = t1.oid
268
- JOIN pg_class t2 ON c.confrelid = t2.oid
269
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
270
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
271
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
272
- WHERE c.contype = 'f'
273
- AND t1.relname = 'shops'
274
- AND t3.nspname = ANY (current_schemas(false))
275
- ORDER BY c.conname
276
- 
277
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
278
- FROM pg_constraint c
279
- JOIN pg_class t1 ON c.conrelid = t1.oid
280
- JOIN pg_class t2 ON c.confrelid = t2.oid
281
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
282
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
283
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
284
- WHERE c.contype = 'f'
285
- AND t1.relname = 'slugs'
286
- AND t3.nspname = ANY (current_schemas(false))
287
- ORDER BY c.conname
288
-
289
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
290
- FROM pg_constraint c
291
- JOIN pg_class t1 ON c.conrelid = t1.oid
292
- JOIN pg_class t2 ON c.confrelid = t2.oid
293
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
294
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
295
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
296
- WHERE c.contype = 'f'
297
- AND t1.relname = 'users'
298
- AND t3.nspname = ANY (current_schemas(false))
299
- ORDER BY c.conname
300
- 
301
- Product Load (2.0ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
302
-  (24.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
303
-  (16.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
304
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
305
- Migrating to CreateUsers (20161016174020)
306
-  (0.2ms) BEGIN
307
-  (13.8ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
308
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
309
-  (16.5ms) COMMIT
310
- Migrating to CreateShops (20161016174126)
311
-  (6.1ms) BEGIN
312
-  (3.1ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
313
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
314
-  (0.4ms) COMMIT
315
- Migrating to CreateProducts (20161016174202)
316
-  (0.3ms) BEGIN
317
-  (2.0ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
318
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
319
-  (1.3ms) COMMIT
320
- Migrating to CreateCategories (20161016174225)
321
-  (0.2ms) BEGIN
322
-  (3.9ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
323
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
324
-  (0.3ms) COMMIT
325
- Migrating to CreateSlugs (20161124162802)
326
-  (6.2ms) CREATE INDEX "index_slugs_on_sluggable_id" ON "slugs" ("sluggable_id")
327
-  (0.2ms) CREATE INDEX "index_slugs_on_sluggable_id" ON "slugs" ("sluggable_id")
328
-  (24.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
329
-  (18.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
330
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
331
- Migrating to CreateUsers (20161016174020)
332
-  (0.2ms) BEGIN
333
-  (13.9ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
334
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
335
-  (5.9ms) COMMIT
336
- Migrating to CreateShops (20161016174126)
337
-  (5.9ms) BEGIN
338
-  (12.3ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
339
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
340
-  (0.3ms) COMMIT
341
- Migrating to CreateProducts (20161016174202)
342
-  (0.2ms) BEGIN
343
-  (1.8ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
344
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
345
-  (0.3ms) COMMIT
346
- Migrating to CreateCategories (20161016174225)
347
-  (0.2ms) BEGIN
348
-  (1.8ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
349
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
350
-  (0.3ms) COMMIT
351
- Migrating to CreateSlugs (20161124162802)
352
-  (0.2ms) BEGIN
353
-  (1.8ms) CREATE TABLE "slugs" ("id" serial primary key, "sluggable_id" integer, "sluggable_type" character varying, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
354
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161124162802"]]
355
-  (0.3ms) COMMIT
356
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
357
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
358
- FROM pg_constraint c
359
- JOIN pg_class t1 ON c.conrelid = t1.oid
360
- JOIN pg_class t2 ON c.confrelid = t2.oid
361
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
362
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
363
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
364
- WHERE c.contype = 'f'
365
- AND t1.relname = 'categories'
366
- AND t3.nspname = ANY (current_schemas(false))
367
- ORDER BY c.conname
368
- 
369
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
370
- FROM pg_constraint c
371
- JOIN pg_class t1 ON c.conrelid = t1.oid
372
- JOIN pg_class t2 ON c.confrelid = t2.oid
373
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
374
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
375
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
376
- WHERE c.contype = 'f'
377
- AND t1.relname = 'products'
378
- AND t3.nspname = ANY (current_schemas(false))
379
- ORDER BY c.conname
380
-
381
-  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
382
- FROM pg_constraint c
383
- JOIN pg_class t1 ON c.conrelid = t1.oid
384
- JOIN pg_class t2 ON c.confrelid = t2.oid
385
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
386
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
387
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
388
- WHERE c.contype = 'f'
389
- AND t1.relname = 'shops'
390
- AND t3.nspname = ANY (current_schemas(false))
391
- ORDER BY c.conname
392
- 
393
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
394
- FROM pg_constraint c
395
- JOIN pg_class t1 ON c.conrelid = t1.oid
396
- JOIN pg_class t2 ON c.confrelid = t2.oid
397
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
398
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
399
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
400
- WHERE c.contype = 'f'
401
- AND t1.relname = 'slugs'
402
- AND t3.nspname = ANY (current_schemas(false))
403
- ORDER BY c.conname
404
-
405
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
406
- FROM pg_constraint c
407
- JOIN pg_class t1 ON c.conrelid = t1.oid
408
- JOIN pg_class t2 ON c.confrelid = t2.oid
409
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
410
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
411
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
412
- WHERE c.contype = 'f'
413
- AND t1.relname = 'users'
414
- AND t3.nspname = ANY (current_schemas(false))
415
- ORDER BY c.conname
416
- 
417
-  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
418
-  (17.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
419
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
420
- Migrating to CreateUsers (20161016174020)
421
-  (0.2ms) BEGIN
422
-  (12.7ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
423
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
424
-  (5.9ms) COMMIT
425
- Migrating to CreateShops (20161016174126)
426
-  (5.9ms) BEGIN
427
-  (12.6ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
428
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
429
-  (0.3ms) COMMIT
430
- Migrating to CreateProducts (20161016174202)
431
-  (0.2ms) BEGIN
432
-  (10.6ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
433
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
434
-  (5.9ms) COMMIT
435
- Migrating to CreateCategories (20161016174225)
436
-  (5.9ms) BEGIN
437
-  (6.6ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
438
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
439
-  (0.3ms) COMMIT
440
- Migrating to CreateSlugs (20161124162802)
441
-  (5.5ms) BEGIN
442
-  (13.5ms) CREATE TABLE "slugs" ("id" serial primary key, "sluggable_id" integer, "sluggable_type" character varying, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
443
-  (5.1ms) CREATE INDEX "index_slugs_on_sluggable_id" ON "slugs" ("sluggable_id")
444
-  (0.5ms) CREATE INDEX "index_slugs_on_sluggable_type" ON "slugs" ("sluggable_type")
445
-  (1.2ms) CREATE INDEX "index_slugs_on_value" ON "slugs" ("value")
446
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161124162802"]]
447
-  (0.4ms) COMMIT
448
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
449
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
450
- FROM pg_constraint c
451
- JOIN pg_class t1 ON c.conrelid = t1.oid
452
- JOIN pg_class t2 ON c.confrelid = t2.oid
453
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
454
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
455
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
456
- WHERE c.contype = 'f'
457
- AND t1.relname = 'categories'
458
- AND t3.nspname = ANY (current_schemas(false))
459
- ORDER BY c.conname
460
-
461
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
462
- FROM pg_constraint c
463
- JOIN pg_class t1 ON c.conrelid = t1.oid
464
- JOIN pg_class t2 ON c.confrelid = t2.oid
465
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
466
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
467
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
468
- WHERE c.contype = 'f'
469
- AND t1.relname = 'products'
470
- AND t3.nspname = ANY (current_schemas(false))
471
- ORDER BY c.conname
472
- 
473
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
474
- FROM pg_constraint c
475
- JOIN pg_class t1 ON c.conrelid = t1.oid
476
- JOIN pg_class t2 ON c.confrelid = t2.oid
477
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
478
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
479
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
480
- WHERE c.contype = 'f'
481
- AND t1.relname = 'shops'
482
- AND t3.nspname = ANY (current_schemas(false))
483
- ORDER BY c.conname
484
-
485
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
486
- FROM pg_constraint c
487
- JOIN pg_class t1 ON c.conrelid = t1.oid
488
- JOIN pg_class t2 ON c.confrelid = t2.oid
489
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
490
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
491
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
492
- WHERE c.contype = 'f'
493
- AND t1.relname = 'slugs'
494
- AND t3.nspname = ANY (current_schemas(false))
495
- ORDER BY c.conname
496
- 
497
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
498
- FROM pg_constraint c
499
- JOIN pg_class t1 ON c.conrelid = t1.oid
500
- JOIN pg_class t2 ON c.confrelid = t2.oid
501
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
502
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
503
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
504
- WHERE c.contype = 'f'
505
- AND t1.relname = 'users'
506
- AND t3.nspname = ANY (current_schemas(false))
507
- ORDER BY c.conname
508
-
509
-  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
510
-  (23.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
511
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
512
- Migrating to CreateUsers (20161016174020)
513
-  (0.2ms) BEGIN
514
-  (19.4ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
515
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
516
-  (6.4ms) COMMIT
517
- Migrating to CreateShops (20161016174126)
518
-  (12.1ms) BEGIN
519
-  (12.6ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
520
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
521
-  (0.6ms) COMMIT
522
- Migrating to CreateProducts (20161016174202)
523
-  (11.6ms) BEGIN
524
-  (13.0ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
525
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
526
-  (0.4ms) COMMIT
527
- Migrating to CreateCategories (20161016174225)
528
-  (12.2ms) BEGIN
529
-  (12.7ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
530
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
531
-  (0.5ms) COMMIT
532
- Migrating to CreateSlugs (20161124162802)
533
-  (11.7ms) BEGIN
534
-  (13.4ms) CREATE TABLE "slugs" ("id" serial primary key, "sluggable_id" integer, "sluggable_type" character varying, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
535
-  (0.7ms) CREATE INDEX "index_slugs_on_sluggable_id" ON "slugs" ("sluggable_id")
536
-  (0.6ms) CREATE INDEX "index_slugs_on_sluggable_type" ON "slugs" ("sluggable_type")
537
-  (0.6ms) CREATE INDEX "index_slugs_on_value" ON "slugs" ("value")
538
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161124162802"]]
539
-  (0.3ms) COMMIT
540
- Migrating to CreateDomains (20161208062832)
541
-  (6.1ms) BEGIN
542
-  (7.5ms) CREATE TABLE "domains" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
543
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161208062832"]]
544
-  (6.3ms) COMMIT
545
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
546
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
547
- FROM pg_constraint c
548
- JOIN pg_class t1 ON c.conrelid = t1.oid
549
- JOIN pg_class t2 ON c.confrelid = t2.oid
550
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
551
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
552
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
553
- WHERE c.contype = 'f'
554
- AND t1.relname = 'categories'
555
- AND t3.nspname = ANY (current_schemas(false))
556
- ORDER BY c.conname
557
-
558
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
559
- FROM pg_constraint c
560
- JOIN pg_class t1 ON c.conrelid = t1.oid
561
- JOIN pg_class t2 ON c.confrelid = t2.oid
562
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
563
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
564
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
565
- WHERE c.contype = 'f'
566
- AND t1.relname = 'domains'
567
- AND t3.nspname = ANY (current_schemas(false))
568
- ORDER BY c.conname
569
- 
570
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
571
- FROM pg_constraint c
572
- JOIN pg_class t1 ON c.conrelid = t1.oid
573
- JOIN pg_class t2 ON c.confrelid = t2.oid
574
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
575
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
576
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
577
- WHERE c.contype = 'f'
578
- AND t1.relname = 'products'
579
- AND t3.nspname = ANY (current_schemas(false))
580
- ORDER BY c.conname
581
-
582
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
583
- FROM pg_constraint c
584
- JOIN pg_class t1 ON c.conrelid = t1.oid
585
- JOIN pg_class t2 ON c.confrelid = t2.oid
586
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
587
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
588
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
589
- WHERE c.contype = 'f'
590
- AND t1.relname = 'shops'
591
- AND t3.nspname = ANY (current_schemas(false))
592
- ORDER BY c.conname
593
- 
594
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
595
- FROM pg_constraint c
596
- JOIN pg_class t1 ON c.conrelid = t1.oid
597
- JOIN pg_class t2 ON c.confrelid = t2.oid
598
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
599
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
600
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
601
- WHERE c.contype = 'f'
602
- AND t1.relname = 'slugs'
603
- AND t3.nspname = ANY (current_schemas(false))
604
- ORDER BY c.conname
605
-
606
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
607
- FROM pg_constraint c
608
- JOIN pg_class t1 ON c.conrelid = t1.oid
609
- JOIN pg_class t2 ON c.confrelid = t2.oid
610
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
611
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
612
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
613
- WHERE c.contype = 'f'
614
- AND t1.relname = 'users'
615
- AND t3.nspname = ANY (current_schemas(false))
616
- ORDER BY c.conname
617
- 
618
-  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
619
-  (22.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
620
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
621
- Migrating to CreateUsers (20161016174020)
622
-  (0.1ms) BEGIN
623
-  (19.5ms) CREATE TABLE "users" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
624
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174020"]]
625
-  (0.6ms) COMMIT
626
- Migrating to CreateShops (20161016174126)
627
-  (5.8ms) BEGIN
628
-  (18.8ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
629
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174126"]]
630
-  (0.6ms) COMMIT
631
- Migrating to CreateProducts (20161016174202)
632
-  (6.1ms) BEGIN
633
-  (18.7ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "shop_id" integer, "category_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
634
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174202"]]
635
-  (0.4ms) COMMIT
636
- Migrating to CreateCategories (20161016174225)
637
-  (6.0ms) BEGIN
638
-  (18.6ms) CREATE TABLE "categories" ("id" serial primary key, "name" character varying, "shop_id" integer, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
639
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161016174225"]]
640
-  (0.5ms) COMMIT
641
- Migrating to CreateSlugs (20161124162802)
642
-  (5.5ms) BEGIN
643
-  (19.1ms) CREATE TABLE "slugs" ("id" serial primary key, "sluggable_id" integer, "sluggable_type" character varying, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
644
-  (0.7ms) CREATE INDEX "index_slugs_on_sluggable_id" ON "slugs" ("sluggable_id")
645
-  (0.7ms) CREATE INDEX "index_slugs_on_sluggable_type" ON "slugs" ("sluggable_type")
646
-  (0.6ms) CREATE INDEX "index_slugs_on_value" ON "slugs" ("value")
647
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161124162802"]]
648
-  (0.3ms) COMMIT
649
- Migrating to CreateDomains (20161208062832)
650
-  (11.7ms) BEGIN
651
-  (7.4ms) CREATE TABLE "domains" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
652
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161208062832"]]
653
-  (4.5ms) COMMIT
654
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
655
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
656
- FROM pg_constraint c
657
- JOIN pg_class t1 ON c.conrelid = t1.oid
658
- JOIN pg_class t2 ON c.confrelid = t2.oid
659
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
660
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
661
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
662
- WHERE c.contype = 'f'
663
- AND t1.relname = 'categories'
664
- AND t3.nspname = ANY (current_schemas(false))
665
- ORDER BY c.conname
666
-
667
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
668
- FROM pg_constraint c
669
- JOIN pg_class t1 ON c.conrelid = t1.oid
670
- JOIN pg_class t2 ON c.confrelid = t2.oid
671
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
672
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
673
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
674
- WHERE c.contype = 'f'
675
- AND t1.relname = 'domains'
676
- AND t3.nspname = ANY (current_schemas(false))
677
- ORDER BY c.conname
678
- 
679
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
680
- FROM pg_constraint c
681
- JOIN pg_class t1 ON c.conrelid = t1.oid
682
- JOIN pg_class t2 ON c.confrelid = t2.oid
683
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
684
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
685
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
686
- WHERE c.contype = 'f'
687
- AND t1.relname = 'products'
688
- AND t3.nspname = ANY (current_schemas(false))
689
- ORDER BY c.conname
690
-
691
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
692
- FROM pg_constraint c
693
- JOIN pg_class t1 ON c.conrelid = t1.oid
694
- JOIN pg_class t2 ON c.confrelid = t2.oid
695
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
696
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
697
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
698
- WHERE c.contype = 'f'
699
- AND t1.relname = 'shops'
700
- AND t3.nspname = ANY (current_schemas(false))
701
- ORDER BY c.conname
702
- 
703
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
704
- FROM pg_constraint c
705
- JOIN pg_class t1 ON c.conrelid = t1.oid
706
- JOIN pg_class t2 ON c.confrelid = t2.oid
707
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
708
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
709
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
710
- WHERE c.contype = 'f'
711
- AND t1.relname = 'slugs'
712
- AND t3.nspname = ANY (current_schemas(false))
713
- ORDER BY c.conname
714
-
715
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
716
- FROM pg_constraint c
717
- JOIN pg_class t1 ON c.conrelid = t1.oid
718
- JOIN pg_class t2 ON c.confrelid = t2.oid
719
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
720
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
721
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
722
- WHERE c.contype = 'f'
723
- AND t1.relname = 'users'
724
- AND t3.nspname = ANY (current_schemas(false))
725
- ORDER BY c.conname
726
-