json_column 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/lib/json_column.rb +42 -0
- data/lib/json_column/acts_as_json_column.rb +71 -0
- data/lib/json_column/json_column_array.rb +9 -0
- data/lib/json_column/json_column_object.rb +9 -0
- data/lib/json_column/json_validator.rb +12 -0
- data/lib/json_column/version.rb +3 -0
- data/lib/tasks/json_column_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/b_model.rb +3 -0
- data/test/dummy/app/models/c_model.rb +4 -0
- data/test/dummy/app/models/d_model.rb +8 -0
- data/test/dummy/app/models/schemas/arr.yml +18 -0
- data/test/dummy/app/models/schemas/jbson.json +8 -0
- data/test/dummy/app/models/schemas/json.yml +6 -0
- data/test/dummy/app/models/test_model.rb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +24 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/migrate/20150317124232_create_test_models.rb +8 -0
- data/test/dummy/db/migrate/20150317190350_add_json_extension.rb +5 -0
- data/test/dummy/db/migrate/20150327143322_create_b_models.rb +9 -0
- data/test/dummy/db/migrate/20150402125831_create_c_models.rb +10 -0
- data/test/dummy/db/migrate/20150402162627_create_d_models.rb +9 -0
- data/test/dummy/db/schema.rb +44 -0
- data/test/dummy/log/development.log +680 -0
- data/test/dummy/log/test.log +7810 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/b_models.yml +7 -0
- data/test/dummy/test/fixtures/c_models.yml +9 -0
- data/test/dummy/test/fixtures/customers.yml +9 -0
- data/test/dummy/test/fixtures/d_models.yml +7 -0
- data/test/dummy/test/fixtures/test_models.yml +11 -0
- data/test/dummy/test/models/b_model_test.rb +7 -0
- data/test/dummy/test/models/c_model_test.rb +7 -0
- data/test/dummy/test/models/customer_test.rb +7 -0
- data/test/dummy/test/models/d_model_test.rb +7 -0
- data/test/dummy/test/models/test_model_test.rb +7 -0
- data/test/json_column_test.rb +61 -0
- data/test/test_helper.rb +18 -0
- metadata +233 -0
@@ -0,0 +1,44 @@
|
|
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: 20150402162627) do
|
15
|
+
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
17
|
+
enable_extension "plpgsql"
|
18
|
+
|
19
|
+
create_table "b_models", force: :cascade do |t|
|
20
|
+
t.jsonb "json"
|
21
|
+
t.datetime "created_at", null: false
|
22
|
+
t.datetime "updated_at", null: false
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "c_models", force: :cascade do |t|
|
26
|
+
t.jsonb "json"
|
27
|
+
t.jsonb "jbson"
|
28
|
+
t.datetime "created_at", null: false
|
29
|
+
t.datetime "updated_at", null: false
|
30
|
+
end
|
31
|
+
|
32
|
+
create_table "d_models", force: :cascade do |t|
|
33
|
+
t.jsonb "arr"
|
34
|
+
t.datetime "created_at", null: false
|
35
|
+
t.datetime "updated_at", null: false
|
36
|
+
end
|
37
|
+
|
38
|
+
create_table "test_models", force: :cascade do |t|
|
39
|
+
t.datetime "created_at", null: false
|
40
|
+
t.datetime "updated_at", null: false
|
41
|
+
t.jsonb "json"
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,680 @@
|
|
1
|
+
[1m[36m (27.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (27.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateTestModels (20150317124232)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
8
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150317124232"]]
|
9
|
+
[1m[35m (33.9ms)[0m commit transaction
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[36m (18.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
12
|
+
[1m[35m (14.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
13
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14
|
+
Migrating to CreateTestModels (20150317124232)
|
15
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16
|
+
[1m[36m (12.6ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
17
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
18
|
+
[1m[36m (4.7ms)[0m [1mCOMMIT[0m
|
19
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
20
|
+
[1m[36m (2.5ms)[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
|
21
|
+
FROM pg_constraint c
|
22
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
23
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
24
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
25
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
26
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
27
|
+
WHERE c.contype = 'f'
|
28
|
+
AND t1.relname = 'test_models'
|
29
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30
|
+
ORDER BY c.conname
|
31
|
+
[0m
|
32
|
+
[1m[36m (16.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
33
|
+
[1m[35m (14.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35
|
+
Migrating to CreateTestModels (20150317124232)
|
36
|
+
[1m[35m (0.1ms)[0m BEGIN
|
37
|
+
[1m[36m (12.3ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
38
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
39
|
+
[1m[36m (5.4ms)[0m [1mCOMMIT[0m
|
40
|
+
Migrating to AddJsonExtension (20150317190350)
|
41
|
+
[1m[35m (0.2ms)[0m BEGIN
|
42
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150317190350"]]
|
43
|
+
[1m[35m (4.6ms)[0m COMMIT
|
44
|
+
Migrating to AddJsonbColumnTest (20150317191251)
|
45
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
46
|
+
[1m[35m (10.5ms)[0m ALTER TABLE "test_models" ADD "json" jsonb
|
47
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150317191251"]]
|
48
|
+
[1m[35m (4.9ms)[0m COMMIT
|
49
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50
|
+
[1m[35m (2.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
|
51
|
+
FROM pg_constraint c
|
52
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
53
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
54
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
55
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
56
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
57
|
+
WHERE c.contype = 'f'
|
58
|
+
AND t1.relname = 'test_models'
|
59
|
+
AND t3.nspname = ANY (current_schemas(false))
|
60
|
+
ORDER BY c.conname
|
61
|
+
|
62
|
+
[1m[36mTestModel Load (0.9ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
63
|
+
[1m[35m (0.2ms)[0m BEGIN
|
64
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "test_models" ("json", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["json", "{\"name\":\"yeee\",\"cv\":{\"location\":\"north\",\"age\":23}}"], ["created_at", "2015-03-17 19:26:48.683616"], ["updated_at", "2015-03-17 19:26:48.683616"]]
|
65
|
+
[1m[35m (3.6ms)[0m COMMIT
|
66
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
67
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
68
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
69
|
+
[1m[36mTestModel Load (0.7ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
70
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
71
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
72
|
+
[1m[36mTestModel Load (1.1ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
73
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
74
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
75
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
76
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
77
|
+
[1m[36mTestModel Load (0.7ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
78
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
79
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
80
|
+
[1m[36mTestModel Load (0.9ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
81
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
82
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
83
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
84
|
+
[1m[36mTestModel Load (0.7ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
85
|
+
[1m[35mTestModel Load (0.4ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
86
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
87
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
88
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
89
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
90
|
+
Migrating to CreateCustomers (20150318112546)
|
91
|
+
[1m[35m (0.2ms)[0m BEGIN
|
92
|
+
[1m[36m (35.4ms)[0m [1mCREATE TABLE "customers" ("id" serial primary key, "address_street" character varying, "address_city" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
93
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150318112546"]]
|
94
|
+
[1m[36m (5.3ms)[0m [1mCOMMIT[0m
|
95
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
96
|
+
[1m[36m (2.5ms)[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
|
97
|
+
FROM pg_constraint c
|
98
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
99
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
100
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
101
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
102
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
103
|
+
WHERE c.contype = 'f'
|
104
|
+
AND t1.relname = 'customers'
|
105
|
+
AND t3.nspname = ANY (current_schemas(false))
|
106
|
+
ORDER BY c.conname
|
107
|
+
[0m
|
108
|
+
[1m[35m (2.0ms)[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
|
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 = 'test_models'
|
117
|
+
AND t3.nspname = ANY (current_schemas(false))
|
118
|
+
ORDER BY c.conname
|
119
|
+
|
120
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
121
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "customers" ("address_street", "address_city", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["address_street", "quebec"], ["address_city", "evergreen"], ["created_at", "2015-03-18 11:29:55.268048"], ["updated_at", "2015-03-18 11:29:55.268048"]]
|
122
|
+
[1m[36m (4.5ms)[0m [1mCOMMIT[0m
|
123
|
+
[1m[35mCustomer Load (0.8ms)[0m SELECT "customers".* FROM "customers" ORDER BY "customers"."id" ASC LIMIT 1
|
124
|
+
[1m[36mCustomer Load (0.5ms)[0m [1mSELECT "customers".* FROM "customers" ORDER BY "customers"."id" ASC LIMIT 1[0m
|
125
|
+
[1m[35mCustomer Load (0.5ms)[0m SELECT "customers".* FROM "customers" ORDER BY "customers"."id" ASC LIMIT 1
|
126
|
+
[1m[36mCustomer Load (0.5ms)[0m [1mSELECT "customers".* FROM "customers" ORDER BY "customers"."id" ASC LIMIT 1[0m
|
127
|
+
[1m[35mTestModel Load (0.9ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
128
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
129
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
130
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
131
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
132
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
133
|
+
[1m[36m (2.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
|
134
|
+
FROM pg_constraint c
|
135
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
136
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
137
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
138
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
139
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
140
|
+
WHERE c.contype = 'f'
|
141
|
+
AND t1.relname = 'customers'
|
142
|
+
AND t3.nspname = ANY (current_schemas(false))
|
143
|
+
ORDER BY c.conname
|
144
|
+
[0m
|
145
|
+
[1m[35m (2.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
|
146
|
+
FROM pg_constraint c
|
147
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
148
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
149
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
150
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
151
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
152
|
+
WHERE c.contype = 'f'
|
153
|
+
AND t1.relname = 'test_models'
|
154
|
+
AND t3.nspname = ANY (current_schemas(false))
|
155
|
+
ORDER BY c.conname
|
156
|
+
|
157
|
+
[1m[36m (16.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
158
|
+
[1m[35m (14.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
160
|
+
Migrating to CreateTestModels (20150317124232)
|
161
|
+
[1m[35m (0.1ms)[0m BEGIN
|
162
|
+
[1m[36m (12.4ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
163
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
164
|
+
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
|
165
|
+
Migrating to AddJsonExtension (20150317190350)
|
166
|
+
[1m[35m (0.1ms)[0m BEGIN
|
167
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150317190350"]]
|
168
|
+
[1m[35m (4.4ms)[0m COMMIT
|
169
|
+
Migrating to AddJsonbColumnTest (20150317191251)
|
170
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
171
|
+
[1m[35m (10.4ms)[0m ALTER TABLE "test_models" ADD "json" jsonb
|
172
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150317191251"]]
|
173
|
+
[1m[35m (5.0ms)[0m COMMIT
|
174
|
+
Migrating to CreateCustomers (20150318112546)
|
175
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
176
|
+
[1m[35m (22.5ms)[0m CREATE TABLE "customers" ("id" serial primary key, "address_street" character varying, "address_city" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
177
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150318112546"]]
|
178
|
+
[1m[35m (4.6ms)[0m COMMIT
|
179
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
180
|
+
[1m[35m (2.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
|
181
|
+
FROM pg_constraint c
|
182
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
183
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
184
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
185
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
186
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
187
|
+
WHERE c.contype = 'f'
|
188
|
+
AND t1.relname = 'customers'
|
189
|
+
AND t3.nspname = ANY (current_schemas(false))
|
190
|
+
ORDER BY c.conname
|
191
|
+
|
192
|
+
[1m[36m (1.9ms)[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
|
193
|
+
FROM pg_constraint c
|
194
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
195
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
196
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
197
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
198
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
199
|
+
WHERE c.contype = 'f'
|
200
|
+
AND t1.relname = 'test_models'
|
201
|
+
AND t3.nspname = ANY (current_schemas(false))
|
202
|
+
ORDER BY c.conname
|
203
|
+
[0m
|
204
|
+
[1m[36m (16.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
205
|
+
[1m[35m (14.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
206
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
207
|
+
Migrating to CreateTestModels (20150317124232)
|
208
|
+
[1m[35m (0.1ms)[0m BEGIN
|
209
|
+
[1m[36m (13.5ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
210
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
211
|
+
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
|
212
|
+
Migrating to AddJsonExtension (20150317190350)
|
213
|
+
[1m[35m (0.1ms)[0m BEGIN
|
214
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150317190350"]]
|
215
|
+
[1m[35m (4.5ms)[0m COMMIT
|
216
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
217
|
+
[1m[35m (3.0ms)[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
|
218
|
+
FROM pg_constraint c
|
219
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
220
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
221
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
222
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
223
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
224
|
+
WHERE c.contype = 'f'
|
225
|
+
AND t1.relname = 'test_models'
|
226
|
+
AND t3.nspname = ANY (current_schemas(false))
|
227
|
+
ORDER BY c.conname
|
228
|
+
|
229
|
+
[1m[36m (15.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
230
|
+
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
231
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
232
|
+
Migrating to CreateTestModels (20150317124232)
|
233
|
+
[1m[35m (0.2ms)[0m BEGIN
|
234
|
+
[1m[36m (12.3ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
235
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
236
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
237
|
+
Migrating to AddJsonExtension (20150317190350)
|
238
|
+
[1m[35m (0.1ms)[0m BEGIN
|
239
|
+
[1m[36m (10.5ms)[0m [1mALTER TABLE "test_models" ADD "json" jsonb[0m
|
240
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317190350"]]
|
241
|
+
[1m[36m (3.6ms)[0m [1mCOMMIT[0m
|
242
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
243
|
+
[1m[36m (3.1ms)[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
|
244
|
+
FROM pg_constraint c
|
245
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
246
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
247
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
248
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
249
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
250
|
+
WHERE c.contype = 'f'
|
251
|
+
AND t1.relname = 'test_models'
|
252
|
+
AND t3.nspname = ANY (current_schemas(false))
|
253
|
+
ORDER BY c.conname
|
254
|
+
[0m
|
255
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
256
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
257
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "test_models" ("json", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["json", "{\"a\":23}"], ["created_at", "2015-03-18 16:12:49.879871"], ["updated_at", "2015-03-18 16:12:49.879871"]]
|
258
|
+
[1m[36m (9.7ms)[0m [1mCOMMIT[0m
|
259
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 1]]
|
260
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
261
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
262
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
263
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
264
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
265
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
266
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
267
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
268
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
269
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
270
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "test_models" SET "json" = $1, "updated_at" = $2 WHERE "test_models"."id" = $3 [["json", "{\"b\":\"lkjklj\"}"], ["updated_at", "2015-03-18 16:20:09.840574"], ["id", 1]]
|
271
|
+
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
|
272
|
+
[1m[35mTestModel Load (0.2ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 1]]
|
273
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
274
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "test_models" SET "json" = $1, "updated_at" = $2 WHERE "test_models"."id" = $3 [["json", "{\"b\":\"lkjklj\"}"], ["updated_at", "2015-03-18 16:21:48.634721"], ["id", 1]]
|
275
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
|
276
|
+
[1m[35mTestModel Load (0.4ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 1]]
|
277
|
+
[1m[36mTestModel Load (0.6ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
278
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
279
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
280
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
281
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
282
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
283
|
+
[1m[36mTestModel Load (0.9ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
284
|
+
invalid json schema for Hash
|
285
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
286
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "test_models" ("json", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["json", "{\"s\":34}"], ["created_at", "2015-03-18 16:28:08.880635"], ["updated_at", "2015-03-18 16:28:08.880635"]]
|
287
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
288
|
+
[1m[35mTestModel Load (0.4ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 2]]
|
289
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 2]]
|
290
|
+
[1m[35mTestModel Load (0.4ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 2]]
|
291
|
+
[1m[36mTestModel Load (0.9ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
292
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
293
|
+
creating a JsonColumn
|
294
|
+
invalid json schema for Hash
|
295
|
+
[1m[36mTestModel Load (0.6ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
296
|
+
[1m[36mTestModel Load (0.9ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
297
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
298
|
+
creating a JsonColumn
|
299
|
+
invalid json schema for Hash
|
300
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
301
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "test_models" SET "json" = $1, "updated_at" = $2 WHERE "test_models"."id" = $3 [["json", "{\"c\":\"lk\"}"], ["updated_at", "2015-03-18 16:36:04.628669"], ["id", 1]]
|
302
|
+
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
|
303
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 1]]
|
304
|
+
creating a JsonColumn
|
305
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
306
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("json", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["json", "{\"a\":42}"], ["created_at", "2015-03-18 16:38:08.665168"], ["updated_at", "2015-03-18 16:38:08.665168"]]
|
307
|
+
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
|
308
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 3]]
|
309
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 3]]
|
310
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 3]]
|
311
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 3]]
|
312
|
+
[1m[36mTestModel Load (1.6ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
313
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
314
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
315
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
316
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
317
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "test_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-03-27 14:10:58.001924"], ["updated_at", "2015-03-27 14:10:58.001924"]]
|
318
|
+
[1m[36m (7.2ms)[0m [1mCOMMIT[0m
|
319
|
+
[1m[35m (2.1ms)[0m SELECT COUNT(*) FROM "test_models"
|
320
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 1[0m
|
321
|
+
[1m[35mTestModel Load (0.6ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2
|
322
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
323
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2
|
324
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
325
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2
|
326
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
327
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2
|
328
|
+
[1m[36mTestModel Load (0.6ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
329
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
330
|
+
[1m[35mTestModel Load (0.7ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2
|
331
|
+
[1m[36mTestModel Load (0.6ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
332
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2
|
333
|
+
[1m[36mTestModel Load (0.6ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
334
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
335
|
+
Migrating to CreateBModels (20150327143322)
|
336
|
+
[1m[35m (0.1ms)[0m BEGIN
|
337
|
+
[1m[36m (32.6ms)[0m [1mCREATE TABLE "b_models" ("id" serial primary key, "json" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
338
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327143322"]]
|
339
|
+
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
|
340
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
341
|
+
[1m[36m (4.2ms)[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
|
342
|
+
FROM pg_constraint c
|
343
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
344
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
345
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
346
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
347
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
348
|
+
WHERE c.contype = 'f'
|
349
|
+
AND t1.relname = 'b_models'
|
350
|
+
AND t3.nspname = ANY (current_schemas(false))
|
351
|
+
ORDER BY c.conname
|
352
|
+
[0m
|
353
|
+
[1m[35m (3.6ms)[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
|
354
|
+
FROM pg_constraint c
|
355
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
356
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
357
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
358
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
359
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
360
|
+
WHERE c.contype = 'f'
|
361
|
+
AND t1.relname = 'test_models'
|
362
|
+
AND t3.nspname = ANY (current_schemas(false))
|
363
|
+
ORDER BY c.conname
|
364
|
+
|
365
|
+
[1m[36mTestModel Load (0.7ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
366
|
+
[1m[35m (0.2ms)[0m BEGIN
|
367
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
368
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 3]]
|
369
|
+
[1m[36mTestModel Load (0.5ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 3]]
|
370
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 3]]
|
371
|
+
[1m[36mTestModel Load (0.4ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 3]]
|
372
|
+
[1m[35mTestModel Load (0.5ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 3]]
|
373
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1 OFFSET 2[0m
|
374
|
+
[1m[35m (0.2ms)[0m BEGIN
|
375
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
376
|
+
[1m[35mTestModel Load (0.3ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 3]]
|
377
|
+
[1m[36m (17.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
378
|
+
[1m[35m (15.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
379
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
380
|
+
Migrating to CreateTestModels (20150317124232)
|
381
|
+
[1m[35m (0.1ms)[0m BEGIN
|
382
|
+
[1m[36m (13.3ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
383
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
384
|
+
[1m[36m (3.6ms)[0m [1mCOMMIT[0m
|
385
|
+
Migrating to AddJsonExtension (20150317190350)
|
386
|
+
[1m[35m (0.1ms)[0m BEGIN
|
387
|
+
[1m[36m (11.0ms)[0m [1mALTER TABLE "test_models" ADD "json" jsonb[0m
|
388
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317190350"]]
|
389
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
390
|
+
Migrating to CreateBModels (20150327143322)
|
391
|
+
[1m[35m (0.1ms)[0m BEGIN
|
392
|
+
[1m[36m (20.6ms)[0m [1mCREATE TABLE "b_models" ("id" serial primary key, "json" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
393
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327143322"]]
|
394
|
+
[1m[36m (3.7ms)[0m [1mCOMMIT[0m
|
395
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
396
|
+
[1m[36m (3.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
|
397
|
+
FROM pg_constraint c
|
398
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
399
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
400
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
401
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
402
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
403
|
+
WHERE c.contype = 'f'
|
404
|
+
AND t1.relname = 'b_models'
|
405
|
+
AND t3.nspname = ANY (current_schemas(false))
|
406
|
+
ORDER BY c.conname
|
407
|
+
[0m
|
408
|
+
[1m[35m (2.8ms)[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
|
409
|
+
FROM pg_constraint c
|
410
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
411
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
412
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
413
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
414
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
415
|
+
WHERE c.contype = 'f'
|
416
|
+
AND t1.relname = 'test_models'
|
417
|
+
AND t3.nspname = ANY (current_schemas(false))
|
418
|
+
ORDER BY c.conname
|
419
|
+
|
420
|
+
[1m[36mTestModel Load (1.1ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
421
|
+
[1m[35m (0.2ms)[0m BEGIN
|
422
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "test_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-03-30 19:41:20.226870"], ["updated_at", "2015-03-30 19:41:20.226870"]]
|
423
|
+
[1m[35m (3.6ms)[0m COMMIT
|
424
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
425
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
426
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
427
|
+
[1m[36mTestModel Load (0.8ms)[0m [1mSELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1[0m
|
428
|
+
[1m[35m (0.2ms)[0m BEGIN
|
429
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
430
|
+
[1m[35mTestModel Load (0.4ms)[0m SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT 1
|
431
|
+
[1m[36mTestModel Load (0.2ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 1]]
|
432
|
+
[1m[35mTestModel Load (0.4ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 1]]
|
433
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
434
|
+
Migrating to CreateCModels (20150330203604)
|
435
|
+
[1m[35m (0.2ms)[0m BEGIN
|
436
|
+
[1m[36m (22.3ms)[0m [1mCREATE TABLE "c_models" ("id" serial primary key, "json" jsonb, "jbson" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
437
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150330203604"]]
|
438
|
+
[1m[36m (7.4ms)[0m [1mCOMMIT[0m
|
439
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
440
|
+
[1m[36m (3.2ms)[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
|
441
|
+
FROM pg_constraint c
|
442
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
443
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
444
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
445
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
446
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
447
|
+
WHERE c.contype = 'f'
|
448
|
+
AND t1.relname = 'b_models'
|
449
|
+
AND t3.nspname = ANY (current_schemas(false))
|
450
|
+
ORDER BY c.conname
|
451
|
+
[0m
|
452
|
+
[1m[35m (2.7ms)[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
|
453
|
+
FROM pg_constraint c
|
454
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
455
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
456
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
457
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
458
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
459
|
+
WHERE c.contype = 'f'
|
460
|
+
AND t1.relname = 'c_models'
|
461
|
+
AND t3.nspname = ANY (current_schemas(false))
|
462
|
+
ORDER BY c.conname
|
463
|
+
|
464
|
+
[1m[36m (2.9ms)[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
|
465
|
+
FROM pg_constraint c
|
466
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
467
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
468
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
469
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
470
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
471
|
+
WHERE c.contype = 'f'
|
472
|
+
AND t1.relname = 'test_models'
|
473
|
+
AND t3.nspname = ANY (current_schemas(false))
|
474
|
+
ORDER BY c.conname
|
475
|
+
[0m
|
476
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
477
|
+
Migrating to CreateCModels (20150402125831)
|
478
|
+
[1m[35m (0.1ms)[0m BEGIN
|
479
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
480
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
481
|
+
Migrating to CreateCModels (20150402125831)
|
482
|
+
[1m[35m (0.1ms)[0m BEGIN
|
483
|
+
[1m[36m (11.1ms)[0m [1mCREATE TABLE "c_models" ("id" serial primary key, "json" jsonb, "jbson" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
484
|
+
PG::DuplicateTable: ERROR: relation "c_models" already exists
|
485
|
+
: CREATE TABLE "c_models" ("id" serial primary key, "json" jsonb, "jbson" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
486
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
487
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
488
|
+
Migrating to CreateCModels (20150402125831)
|
489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
490
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "c_models" ("id" serial primary key, "json" jsonb, "jbson" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
491
|
+
PG::DuplicateTable: ERROR: relation "c_models" already exists
|
492
|
+
: CREATE TABLE "c_models" ("id" serial primary key, "json" jsonb, "jbson" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
493
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
494
|
+
[1m[36m (0.1ms)[0m [1mDROP DATABASE IF EXISTS "json_column_app_development"[0m
|
495
|
+
[1m[35m (0.1ms)[0m DROP DATABASE IF EXISTS "app_test"
|
496
|
+
[1m[36m (855.0ms)[0m [1mCREATE DATABASE "json_column_app_development" ENCODING = 'unicode'[0m
|
497
|
+
[1m[35m (851.6ms)[0m CREATE DATABASE "app_test" ENCODING = 'unicode'
|
498
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
499
|
+
[1m[35m (27.2ms)[0m CREATE TABLE "b_models" ("id" serial primary key, "json" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
500
|
+
[1m[36m (25.6ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "json" jsonb) [0m
|
501
|
+
[1m[35m (14.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
502
|
+
[1m[36m (14.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
503
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
504
|
+
[1m[36m (4.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150327143322')[0m
|
505
|
+
[1m[35m (5.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150317190350')
|
506
|
+
[1m[36m (5.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150317124232')[0m
|
507
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
508
|
+
[1m[36m (39.1ms)[0m [1mCREATE TABLE "b_models" ("id" serial primary key, "json" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
509
|
+
[1m[35m (25.4ms)[0m CREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "json" jsonb)
|
510
|
+
[1m[36m (14.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
511
|
+
[1m[35m (14.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
512
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
513
|
+
[1m[35m (3.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150327143322')
|
514
|
+
[1m[36m (3.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150317190350')[0m
|
515
|
+
[1m[35m (3.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150317124232')
|
516
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
517
|
+
[1m[36m (18.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
518
|
+
[1m[35m (18.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
519
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
520
|
+
Migrating to CreateTestModels (20150317124232)
|
521
|
+
[1m[35m (0.1ms)[0m BEGIN
|
522
|
+
[1m[36m (12.1ms)[0m [1mCREATE TABLE "test_models" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
523
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317124232"]]
|
524
|
+
[1m[36m (3.6ms)[0m [1mCOMMIT[0m
|
525
|
+
Migrating to AddJsonExtension (20150317190350)
|
526
|
+
[1m[35m (0.1ms)[0m BEGIN
|
527
|
+
[1m[36m (12.0ms)[0m [1mALTER TABLE "test_models" ADD "json" jsonb[0m
|
528
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317190350"]]
|
529
|
+
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
|
530
|
+
Migrating to CreateBModels (20150327143322)
|
531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
532
|
+
[1m[36m (20.6ms)[0m [1mCREATE TABLE "b_models" ("id" serial primary key, "json" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
533
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327143322"]]
|
534
|
+
[1m[36m (3.7ms)[0m [1mCOMMIT[0m
|
535
|
+
Migrating to CreateCModels (20150402125831)
|
536
|
+
[1m[35m (0.1ms)[0m BEGIN
|
537
|
+
[1m[36m (21.6ms)[0m [1mCREATE TABLE "c_models" ("id" serial primary key, "json" jsonb, "jbson" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
538
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150402125831"]]
|
539
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
|
540
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
541
|
+
[1m[36m (2.5ms)[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
|
542
|
+
FROM pg_constraint c
|
543
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
544
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
545
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
546
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
547
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
548
|
+
WHERE c.contype = 'f'
|
549
|
+
AND t1.relname = 'b_models'
|
550
|
+
AND t3.nspname = ANY (current_schemas(false))
|
551
|
+
ORDER BY c.conname
|
552
|
+
[0m
|
553
|
+
[1m[35m (2.0ms)[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
|
554
|
+
FROM pg_constraint c
|
555
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
556
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
557
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
558
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
559
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
560
|
+
WHERE c.contype = 'f'
|
561
|
+
AND t1.relname = 'c_models'
|
562
|
+
AND t3.nspname = ANY (current_schemas(false))
|
563
|
+
ORDER BY c.conname
|
564
|
+
|
565
|
+
[1m[36m (2.4ms)[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
|
566
|
+
FROM pg_constraint c
|
567
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
568
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
569
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
570
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
571
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
572
|
+
WHERE c.contype = 'f'
|
573
|
+
AND t1.relname = 'test_models'
|
574
|
+
AND t3.nspname = ANY (current_schemas(false))
|
575
|
+
ORDER BY c.conname
|
576
|
+
[0m
|
577
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
578
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "test_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 14:19:09.985240"], ["updated_at", "2015-04-02 14:19:09.985240"]]
|
579
|
+
[1m[36m (6.7ms)[0m [1mCOMMIT[0m
|
580
|
+
[1m[35mTestModel Load (0.2ms)[0m SELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1 [["id", 1]]
|
581
|
+
[1m[36mTestModel Load (0.3ms)[0m [1mSELECT "test_models".* FROM "test_models" WHERE "test_models"."id" = $1 LIMIT 1[0m [["id", 1]]
|
582
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
583
|
+
Migrating to CreateDModels (20150402162627)
|
584
|
+
[1m[35m (0.1ms)[0m BEGIN
|
585
|
+
[1m[36m (28.5ms)[0m [1mCREATE TABLE "d_models" ("id" serial primary key, "arr" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
586
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150402162627"]]
|
587
|
+
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
|
588
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
589
|
+
[1m[36m (3.5ms)[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
|
590
|
+
FROM pg_constraint c
|
591
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
592
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
593
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
594
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
595
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
596
|
+
WHERE c.contype = 'f'
|
597
|
+
AND t1.relname = 'b_models'
|
598
|
+
AND t3.nspname = ANY (current_schemas(false))
|
599
|
+
ORDER BY c.conname
|
600
|
+
[0m
|
601
|
+
[1m[35m (2.7ms)[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
|
602
|
+
FROM pg_constraint c
|
603
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
604
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
605
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
606
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
607
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
608
|
+
WHERE c.contype = 'f'
|
609
|
+
AND t1.relname = 'c_models'
|
610
|
+
AND t3.nspname = ANY (current_schemas(false))
|
611
|
+
ORDER BY c.conname
|
612
|
+
|
613
|
+
[1m[36m (2.5ms)[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
|
614
|
+
FROM pg_constraint c
|
615
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
616
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
617
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
618
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
619
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
620
|
+
WHERE c.contype = 'f'
|
621
|
+
AND t1.relname = 'd_models'
|
622
|
+
AND t3.nspname = ANY (current_schemas(false))
|
623
|
+
ORDER BY c.conname
|
624
|
+
[0m
|
625
|
+
[1m[35m (2.1ms)[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
|
626
|
+
FROM pg_constraint c
|
627
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
628
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
629
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
630
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
631
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
632
|
+
WHERE c.contype = 'f'
|
633
|
+
AND t1.relname = 'test_models'
|
634
|
+
AND t3.nspname = ANY (current_schemas(false))
|
635
|
+
ORDER BY c.conname
|
636
|
+
|
637
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
638
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "d_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 16:29:08.133448"], ["updated_at", "2015-04-02 16:29:08.133448"]]
|
639
|
+
[1m[36m (3.9ms)[0m [1mCOMMIT[0m
|
640
|
+
[1m[35mDModel Load (0.8ms)[0m SELECT "d_models".* FROM "d_models" ORDER BY "d_models"."id" ASC LIMIT 1
|
641
|
+
[1m[36mDModel Load (0.4ms)[0m [1mSELECT "d_models".* FROM "d_models" ORDER BY "d_models"."id" ASC LIMIT 1[0m
|
642
|
+
[1m[35mDModel Load (0.4ms)[0m SELECT "d_models".* FROM "d_models" ORDER BY "d_models"."id" ASC LIMIT 1
|
643
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
644
|
+
[1m[35m (0.1ms)[0m COMMIT
|
645
|
+
[1m[36mDModel Load (0.3ms)[0m [1mSELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1[0m [["id", 1]]
|
646
|
+
[1m[35mDModel Load (0.4ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 1]]
|
647
|
+
[1m[36mDModel Load (0.4ms)[0m [1mSELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1[0m [["id", 1]]
|
648
|
+
[1m[35mDModel Load (0.4ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 1]]
|
649
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
650
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "d_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 16:51:08.212360"], ["updated_at", "2015-04-02 16:51:08.212360"]]
|
651
|
+
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
|
652
|
+
[1m[35mDModel Load (0.3ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 2]]
|
653
|
+
[1m[36mDModel Load (0.3ms)[0m [1mSELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1[0m [["id", 2]]
|
654
|
+
[1m[35mDModel Load (0.3ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 2]]
|
655
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
656
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
657
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
658
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
659
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
660
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
661
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
662
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
663
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
664
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
665
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
666
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 17:41:14.973837"], ["updated_at", "2015-04-02 17:41:14.973837"]]
|
667
|
+
[1m[36m (3.6ms)[0m [1mCOMMIT[0m
|
668
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
669
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "d_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 17:43:58.019194"], ["updated_at", "2015-04-02 17:43:58.019194"]]
|
670
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
671
|
+
[1m[35mDModel Load (0.3ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 3]]
|
672
|
+
[1m[36mDModel Load (0.4ms)[0m [1mSELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1[0m [["id", 3]]
|
673
|
+
[1m[35mDModel Load (0.4ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 3]]
|
674
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
675
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "d_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 20:12:11.533128"], ["updated_at", "2015-04-02 20:12:11.533128"]]
|
676
|
+
[1m[36m (4.7ms)[0m [1mCOMMIT[0m
|
677
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
678
|
+
[1m[35mSQL (4.6ms)[0m INSERT INTO "d_models" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-04-02 21:28:26.265823"], ["updated_at", "2015-04-02 21:28:26.265823"]]
|
679
|
+
[1m[36m (4.0ms)[0m [1mCOMMIT[0m
|
680
|
+
[1m[35mDModel Load (0.4ms)[0m SELECT "d_models".* FROM "d_models" WHERE "d_models"."id" = $1 LIMIT 1 [["id", 5]]
|