listable_collections 4.0.0.1 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +5 -5
- data/Rakefile +1 -3
- data/lib/listable_collections/builder.rb +1 -1
- data/lib/listable_collections/version.rb +1 -1
- metadata +17 -111
- data/test/association_test.rb +0 -28
- data/test/attribute_test.rb +0 -24
- data/test/dummy/Rakefile +0 -5
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/product.rb +0 -15
- data/test/dummy/app/models/shop.rb +0 -13
- data/test/dummy/app/views/layouts/application.html.erb +0 -12
- data/test/dummy/bin/bundle +0 -4
- data/test/dummy/bin/rails +0 -5
- data/test/dummy/bin/rake +0 -5
- data/test/dummy/bin/setup +0 -30
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -25
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -10
- data/test/dummy/config/database.yml.travis +0 -3
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -56
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/migrate/20160916011427_create_shops.rb +0 -9
- data/test/dummy/db/migrate/20160916011451_create_products.rb +0 -11
- data/test/dummy/db/schema.rb +0 -33
- data/test/dummy/log/development.log +0 -76
- data/test/dummy/log/test.log +0 -124
- data/test/dummy/public/404.html +0 -61
- data/test/dummy/public/422.html +0 -61
- data/test/dummy/public/500.html +0 -60
- data/test/dummy/public/favicon.ico +0 -0
- data/test/test_helper.rb +0 -14
data/test/dummy/db/schema.rb
DELETED
@@ -1,33 +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: 20160916011451) do
|
15
|
-
|
16
|
-
# These are extensions that must be enabled in order to support this database
|
17
|
-
enable_extension "plpgsql"
|
18
|
-
|
19
|
-
create_table "products", force: :cascade do |t|
|
20
|
-
t.integer "shop_id"
|
21
|
-
t.string "name"
|
22
|
-
t.text "sizes"
|
23
|
-
t.datetime "created_at", null: false
|
24
|
-
t.datetime "updated_at", null: false
|
25
|
-
end
|
26
|
-
|
27
|
-
create_table "shops", force: :cascade do |t|
|
28
|
-
t.string "name"
|
29
|
-
t.datetime "created_at", null: false
|
30
|
-
t.datetime "updated_at", null: false
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
@@ -1,76 +0,0 @@
|
|
1
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
-
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
-
Migrating to CreateShops (20160916011427)
|
5
|
-
[1m[35m (0.1ms)[0m BEGIN
|
6
|
-
[1m[36m (19.4ms)[0m [1mCREATE TABLE "shops" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
7
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011427"]]
|
8
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
9
|
-
Migrating to CreateProducts (20160916011451)
|
10
|
-
[1m[35m (5.6ms)[0m BEGIN
|
11
|
-
[1m[36m (19.6ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "sizes" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
12
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011451"]]
|
13
|
-
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
14
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15
|
-
[1m[36m (1.8ms)[0m [1mSELECT 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
|
16
|
-
FROM pg_constraint c
|
17
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
18
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
19
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
20
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
21
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
22
|
-
WHERE c.contype = 'f'
|
23
|
-
AND t1.relname = 'products'
|
24
|
-
AND t3.nspname = ANY (current_schemas(false))
|
25
|
-
ORDER BY c.conname
|
26
|
-
[0m
|
27
|
-
[1m[35m (1.4ms)[0m 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
|
28
|
-
FROM pg_constraint c
|
29
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
31
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
32
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
33
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34
|
-
WHERE c.contype = 'f'
|
35
|
-
AND t1.relname = 'shops'
|
36
|
-
AND t3.nspname = ANY (current_schemas(false))
|
37
|
-
ORDER BY c.conname
|
38
|
-
|
39
|
-
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
40
|
-
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
41
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
42
|
-
Migrating to CreateShops (20160916011427)
|
43
|
-
[1m[35m (0.2ms)[0m BEGIN
|
44
|
-
[1m[36m (2.5ms)[0m [1mCREATE TABLE "shops" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
45
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011427"]]
|
46
|
-
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
47
|
-
Migrating to CreateProducts (20160916011451)
|
48
|
-
[1m[35m (0.2ms)[0m BEGIN
|
49
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "sizes" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
50
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011451"]]
|
51
|
-
[1m[36m (2.2ms)[0m [1mCOMMIT[0m
|
52
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
53
|
-
[1m[36m (1.7ms)[0m [1mSELECT 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
|
54
|
-
FROM pg_constraint c
|
55
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
56
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
57
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
58
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
59
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
60
|
-
WHERE c.contype = 'f'
|
61
|
-
AND t1.relname = 'products'
|
62
|
-
AND t3.nspname = ANY (current_schemas(false))
|
63
|
-
ORDER BY c.conname
|
64
|
-
[0m
|
65
|
-
[1m[35m (1.3ms)[0m 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
|
66
|
-
FROM pg_constraint c
|
67
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
68
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
69
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
70
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
71
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
72
|
-
WHERE c.contype = 'f'
|
73
|
-
AND t1.relname = 'shops'
|
74
|
-
AND t3.nspname = ANY (current_schemas(false))
|
75
|
-
ORDER BY c.conname
|
76
|
-
|
data/test/dummy/log/test.log
DELETED
@@ -1,124 +0,0 @@
|
|
1
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
-
[1m[35m (0.3ms)[0m BEGIN
|
3
|
-
---------------------------
|
4
|
-
AttributeTest: test_methods
|
5
|
-
---------------------------
|
6
|
-
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
7
|
-
[1m[35m (0.1ms)[0m BEGIN
|
8
|
-
-----------------------------
|
9
|
-
AssociationTest: test_methods
|
10
|
-
-----------------------------
|
11
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
12
|
-
[1m[35mSQL (18.4ms)[0m INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-21 06:16:21.465844"], ["updated_at", "2016-11-21 06:16:21.465844"]]
|
13
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15
|
-
[1m[36mSQL (23.8ms)[0m [1mINSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "iPhone"], ["shop_id", 14], ["created_at", "2016-11-21 06:16:21.498203"], ["updated_at", "2016-11-21 06:16:21.498203"]]
|
16
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
18
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 14], ["created_at", "2016-11-21 06:16:21.523814"], ["updated_at", "2016-11-21 06:16:21.523814"]]
|
19
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20
|
-
[1m[35mProduct Load (0.3ms)[0m SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 14]]
|
21
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
22
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 14], ["created_at", "2016-11-21 06:16:21.528027"], ["updated_at", "2016-11-21 06:16:21.528027"]]
|
23
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
24
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
25
|
-
[1m[36mActiveRecord::SchemaMigration Load (27.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
26
|
-
[1m[35m (0.2ms)[0m BEGIN
|
27
|
-
---------------------------
|
28
|
-
AttributeTest: test_methods
|
29
|
-
---------------------------
|
30
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
31
|
-
[1m[35m (0.1ms)[0m BEGIN
|
32
|
-
-----------------------------
|
33
|
-
AssociationTest: test_methods
|
34
|
-
-----------------------------
|
35
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36
|
-
[1m[35mSQL (20.0ms)[0m INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 19:57:11.619475"], ["updated_at", "2016-12-13 19:57:11.619475"]]
|
37
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
38
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
39
|
-
[1m[36mSQL (19.3ms)[0m [1mINSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "iPhone"], ["shop_id", 15], ["created_at", "2016-12-13 19:57:11.655713"], ["updated_at", "2016-12-13 19:57:11.655713"]]
|
40
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
41
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
42
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 15], ["created_at", "2016-12-13 19:57:11.677200"], ["updated_at", "2016-12-13 19:57:11.677200"]]
|
43
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44
|
-
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 15]]
|
45
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
46
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 15], ["created_at", "2016-12-13 19:57:11.682005"], ["updated_at", "2016-12-13 19:57:11.682005"]]
|
47
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
48
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
49
|
-
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
50
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
51
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
52
|
-
Migrating to CreateShops (20160916011427)
|
53
|
-
[1m[35m (0.1ms)[0m BEGIN
|
54
|
-
[1m[36m (2.9ms)[0m [1mCREATE TABLE "shops" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
55
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011427"]]
|
56
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
57
|
-
Migrating to CreateProducts (20160916011451)
|
58
|
-
[1m[35m (0.2ms)[0m BEGIN
|
59
|
-
[1m[36m (2.1ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "sizes" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
60
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011451"]]
|
61
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
62
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
63
|
-
[1m[36m (1.7ms)[0m [1mSELECT 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
|
64
|
-
FROM pg_constraint c
|
65
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
66
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
67
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
68
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
69
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
70
|
-
WHERE c.contype = 'f'
|
71
|
-
AND t1.relname = 'products'
|
72
|
-
AND t3.nspname = ANY (current_schemas(false))
|
73
|
-
ORDER BY c.conname
|
74
|
-
[0m
|
75
|
-
[1m[35m (1.4ms)[0m 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
|
76
|
-
FROM pg_constraint c
|
77
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
78
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
79
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
80
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
81
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
82
|
-
WHERE c.contype = 'f'
|
83
|
-
AND t1.relname = 'shops'
|
84
|
-
AND t3.nspname = ANY (current_schemas(false))
|
85
|
-
ORDER BY c.conname
|
86
|
-
|
87
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
88
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
89
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
90
|
-
Migrating to CreateShops (20160916011427)
|
91
|
-
[1m[35m (0.1ms)[0m BEGIN
|
92
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "shops" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
93
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011427"]]
|
94
|
-
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
95
|
-
Migrating to CreateProducts (20160916011451)
|
96
|
-
[1m[35m (0.3ms)[0m BEGIN
|
97
|
-
[1m[36m (2.3ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "sizes" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
98
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160916011451"]]
|
99
|
-
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
100
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
101
|
-
[1m[36m (1.7ms)[0m [1mSELECT 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
|
102
|
-
FROM pg_constraint c
|
103
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
104
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
105
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
106
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
107
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
108
|
-
WHERE c.contype = 'f'
|
109
|
-
AND t1.relname = 'products'
|
110
|
-
AND t3.nspname = ANY (current_schemas(false))
|
111
|
-
ORDER BY c.conname
|
112
|
-
[0m
|
113
|
-
[1m[35m (1.4ms)[0m 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
|
114
|
-
FROM pg_constraint c
|
115
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
116
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
117
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
118
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
119
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
120
|
-
WHERE c.contype = 'f'
|
121
|
-
AND t1.relname = 'shops'
|
122
|
-
AND t3.nspname = ANY (current_schemas(false))
|
123
|
-
ORDER BY c.conname
|
124
|
-
|
data/test/dummy/public/404.html
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
div.dialog {
|
15
|
-
width: 95%;
|
16
|
-
max-width: 33em;
|
17
|
-
margin: 4em auto 0;
|
18
|
-
}
|
19
|
-
div.dialog > div {
|
20
|
-
border: 1px solid #CCC;
|
21
|
-
border-right-color: #999;
|
22
|
-
border-left-color: #999;
|
23
|
-
border-bottom-color: #BBB;
|
24
|
-
border-top: #B00100 solid 4px;
|
25
|
-
border-top-left-radius: 9px;
|
26
|
-
border-top-right-radius: 9px;
|
27
|
-
background-color: white;
|
28
|
-
padding: 7px 12% 0;
|
29
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
30
|
-
}
|
31
|
-
h1 {
|
32
|
-
font-size: 100%;
|
33
|
-
color: #730E15;
|
34
|
-
line-height: 1.5em;
|
35
|
-
}
|
36
|
-
div.dialog > p {
|
37
|
-
margin: 0 0 1em;
|
38
|
-
padding: 1em;
|
39
|
-
background-color: #F7F7F7;
|
40
|
-
border: 1px solid #CCC;
|
41
|
-
border-right-color: #999;
|
42
|
-
border-left-color: #999;
|
43
|
-
border-bottom-color: #999;
|
44
|
-
border-bottom-left-radius: 4px;
|
45
|
-
border-bottom-right-radius: 4px;
|
46
|
-
border-top-color: #DADADA;
|
47
|
-
color: #666;
|
48
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
49
|
-
}
|
50
|
-
</style>
|
51
|
-
</head>
|
52
|
-
<body>
|
53
|
-
<div class="dialog">
|
54
|
-
<div>
|
55
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
56
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
57
|
-
</div>
|
58
|
-
<p>If you are the application owner check the logs for more information.</p>
|
59
|
-
</div>
|
60
|
-
</body>
|
61
|
-
</html>
|
data/test/dummy/public/422.html
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
div.dialog {
|
15
|
-
width: 95%;
|
16
|
-
max-width: 33em;
|
17
|
-
margin: 4em auto 0;
|
18
|
-
}
|
19
|
-
div.dialog > div {
|
20
|
-
border: 1px solid #CCC;
|
21
|
-
border-right-color: #999;
|
22
|
-
border-left-color: #999;
|
23
|
-
border-bottom-color: #BBB;
|
24
|
-
border-top: #B00100 solid 4px;
|
25
|
-
border-top-left-radius: 9px;
|
26
|
-
border-top-right-radius: 9px;
|
27
|
-
background-color: white;
|
28
|
-
padding: 7px 12% 0;
|
29
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
30
|
-
}
|
31
|
-
h1 {
|
32
|
-
font-size: 100%;
|
33
|
-
color: #730E15;
|
34
|
-
line-height: 1.5em;
|
35
|
-
}
|
36
|
-
div.dialog > p {
|
37
|
-
margin: 0 0 1em;
|
38
|
-
padding: 1em;
|
39
|
-
background-color: #F7F7F7;
|
40
|
-
border: 1px solid #CCC;
|
41
|
-
border-right-color: #999;
|
42
|
-
border-left-color: #999;
|
43
|
-
border-bottom-color: #999;
|
44
|
-
border-bottom-left-radius: 4px;
|
45
|
-
border-bottom-right-radius: 4px;
|
46
|
-
border-top-color: #DADADA;
|
47
|
-
color: #666;
|
48
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
49
|
-
}
|
50
|
-
</style>
|
51
|
-
</head>
|
52
|
-
<body>
|
53
|
-
<div class="dialog">
|
54
|
-
<div>
|
55
|
-
<h1>The change you wanted was rejected.</h1>
|
56
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
57
|
-
</div>
|
58
|
-
<p>If you are the application owner check the logs for more information.</p>
|
59
|
-
</div>
|
60
|
-
</body>
|
61
|
-
</html>
|
data/test/dummy/public/500.html
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
div.dialog {
|
15
|
-
width: 95%;
|
16
|
-
max-width: 33em;
|
17
|
-
margin: 4em auto 0;
|
18
|
-
}
|
19
|
-
div.dialog > div {
|
20
|
-
border: 1px solid #CCC;
|
21
|
-
border-right-color: #999;
|
22
|
-
border-left-color: #999;
|
23
|
-
border-bottom-color: #BBB;
|
24
|
-
border-top: #B00100 solid 4px;
|
25
|
-
border-top-left-radius: 9px;
|
26
|
-
border-top-right-radius: 9px;
|
27
|
-
background-color: white;
|
28
|
-
padding: 7px 12% 0;
|
29
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
30
|
-
}
|
31
|
-
h1 {
|
32
|
-
font-size: 100%;
|
33
|
-
color: #730E15;
|
34
|
-
line-height: 1.5em;
|
35
|
-
}
|
36
|
-
div.dialog > p {
|
37
|
-
margin: 0 0 1em;
|
38
|
-
padding: 1em;
|
39
|
-
background-color: #F7F7F7;
|
40
|
-
border: 1px solid #CCC;
|
41
|
-
border-right-color: #999;
|
42
|
-
border-left-color: #999;
|
43
|
-
border-bottom-color: #999;
|
44
|
-
border-bottom-left-radius: 4px;
|
45
|
-
border-bottom-right-radius: 4px;
|
46
|
-
border-top-color: #DADADA;
|
47
|
-
color: #666;
|
48
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
49
|
-
}
|
50
|
-
</style>
|
51
|
-
</head>
|
52
|
-
<body>
|
53
|
-
<div class="dialog">
|
54
|
-
<div>
|
55
|
-
<h1>We're sorry, but something went wrong.</h1>
|
56
|
-
</div>
|
57
|
-
<p>If you are the application owner check the logs for more information.</p>
|
58
|
-
</div>
|
59
|
-
</body>
|
60
|
-
</html>
|