squint 0.0.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,4 +11,6 @@ class Post < ActiveRecord::Base
11
11
  store_attribute :storext_hstore_attributes, :hstore_friend_count, Integer, default: 0
12
12
  store_attribute :storext_hstore_attributes, :hstore_is_awesome, Integer, default: false
13
13
  store_attribute :storext_hstore_attributes, :hstore_is_present, Integer, default: nil
14
+
15
+ store_attribute :settings, :zip_code, String, default: '90210'
14
16
  end
@@ -0,0 +1,6 @@
1
+ class User < ActiveRecord::Base
2
+ include Storext.model
3
+ include Squint
4
+
5
+ store_attribute :settings, :zip_code, String, default: '90210'
6
+ end
@@ -20,6 +20,8 @@ module Dummy
20
20
  # config.i18n.default_locale = :de
21
21
 
22
22
  # Do not swallow errors in after_commit/after_rollback callbacks.
23
- config.active_record.raise_in_transactional_callbacks = true
23
+ if ActiveRecord::VERSION::STRING < '5'
24
+ config.active_record.raise_in_transactional_callbacks = true
25
+ end
24
26
  end
25
27
  end
@@ -13,8 +13,13 @@ Rails.application.configure do
13
13
  config.eager_load = false
14
14
 
15
15
  # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
16
+ if ActiveRecord::VERSION::STRING < '5'
17
+ config.serve_static_files = true
18
+ config.static_cache_control = 'public, max-age=3600'
19
+ elsif ActiveRecord::VERSION::STRING > '5'
20
+ config.public_file_server.enabled = true
21
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
22
+ end
18
23
 
19
24
  # Show full error reports and disable caching.
20
25
  config.consider_all_requests_local = true
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.hstore :settings
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ class AddSettingsToPosts < ActiveRecord::Migration
2
+ def change
3
+ change_table :posts do |t|
4
+ t.jsonb :settings
5
+ end
6
+ end
7
+ end
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -11,7 +10,7 @@
11
10
  #
12
11
  # It's strongly recommended that you check this file into your version control system.
13
12
 
14
- ActiveRecord::Schema.define(version: 20170512185941) do
13
+ ActiveRecord::Schema.define(version: 20200318185943) do
15
14
 
16
15
  # These are extensions that must be enabled in order to support this database
17
16
  enable_extension "plpgsql"
@@ -26,11 +25,17 @@ ActiveRecord::Schema.define(version: 20170512185941) do
26
25
  t.hstore "storext_hstore_attributes"
27
26
  t.datetime "created_at", null: false
28
27
  t.datetime "updated_at", null: false
28
+ t.jsonb "settings"
29
+ t.index ["properties"], name: "index_posts_on_properties", using: :gin
30
+ t.index ["request_info"], name: "index_posts_on_request_info", using: :gin
31
+ t.index ["storext_hstore_attributes"], name: "index_posts_on_storext_hstore_attributes", using: :gin
32
+ t.index ["storext_jsonb_attributes"], name: "index_posts_on_storext_jsonb_attributes", using: :gin
29
33
  end
30
34
 
31
- add_index "posts", ["properties"], name: "index_posts_on_properties", using: :gin
32
- add_index "posts", ["request_info"], name: "index_posts_on_request_info", using: :gin
33
- add_index "posts", ["storext_hstore_attributes"], name: "index_posts_on_storext_hstore_attributes", using: :gin
34
- add_index "posts", ["storext_jsonb_attributes"], name: "index_posts_on_storext_jsonb_attributes", using: :gin
35
+ create_table "users", force: :cascade do |t|
36
+ t.hstore "settings"
37
+ t.datetime "created_at", null: false
38
+ t.datetime "updated_at", null: false
39
+ end
35
40
 
36
41
  end
@@ -0,0 +1,6 @@
1
+ class User < ActiveRecord::Base
2
+ include Storext.model
3
+ include Squint
4
+
5
+ store_attribute :settings, :zip_code, String, default: '90210'
6
+ end
@@ -1,7 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class SquintTest < ActiveSupport::TestCase
4
- self.use_transactional_fixtures = true
5
4
 
6
5
  # Tests that should pass for both jsonb and hstore properties
7
6
  %i[request_info properties].each do |prop_name|
@@ -45,19 +44,21 @@ class SquintTest < ActiveSupport::TestCase
45
44
  end
46
45
  end
47
46
 
48
- [[:storext_jsonb_attributes, 'jsonb'],
49
- [:storext_hstore_attributes, 'hstore']].each do |prop_name, prefix|
47
+ [
48
+ [:storext_jsonb_attributes, 'jsonb'],
49
+ # [:storext_hstore_attributes, 'hstore']
50
+ ].each do |prop_name, prefix|
50
51
  test "detects present #{prop_name}" do
51
- reln = Post.where(prop_name => { "#{prefix}_zip_code": '35124' })
52
+ reln = Post.where(prop_name => { "#{prefix}_zip_code" => '35124' })
52
53
  # puts reln.to_sql
53
54
  assert_equal 1, reln.count, reln.to_sql
54
55
  end
55
56
 
56
57
  test "#{prop_name} is composeable in one where" do
57
58
  # get the first matching post
58
- posts = Post.where(prop_name => { "#{prefix}_zip_code": '90210' })
59
+ posts = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' })
59
60
  # compose with previous query with the id of first post
60
- reln = Post.where(prop_name => { "#{prefix}_zip_code": '90210' }, id: posts.first.id)
61
+ reln = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' }, id: posts.first.id)
61
62
  # puts reln.to_sql
62
63
  assert_operator posts.count, :>, 1
63
64
  assert_equal 1, reln.count, reln.to_sql
@@ -65,9 +66,9 @@ class SquintTest < ActiveSupport::TestCase
65
66
 
66
67
  test "#{prop_name} is composeable in multiple wheres" do
67
68
  # get the first matching post
68
- posts = Post.where(prop_name => { "#{prefix}_zip_code": '90210' })
69
+ posts = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' })
69
70
  # compose with previous query with the id of first post
70
- reln = Post.where(prop_name => { "#{prefix}_zip_code": '90210' }).where(id: posts.first.id)
71
+ reln = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' }).where(id: posts.first.id)
71
72
  # puts reln.to_sql
72
73
  assert posts.count > 1
73
74
  assert_equal 1, reln.count, reln.to_sql
@@ -76,35 +77,64 @@ class SquintTest < ActiveSupport::TestCase
76
77
 
77
78
  [[:storext_jsonb_attributes, 'jsonb'],
78
79
  [:storext_hstore_attributes, 'hstore']].each do |prop_name, prefix|
80
+
79
81
  test "detects default #{prop_name}" do
80
- reln = Post.where(prop_name => { "#{prefix}_zip_code": '90210' })
82
+ reln = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' })
81
83
  # puts reln.to_sql
82
84
  assert_equal Post.all.count - 6, reln.count, reln.to_sql
83
85
  end
84
86
 
85
87
  test "detects present integer #{prop_name}" do
86
- reln = Post.where(prop_name => { "#{prefix}_friend_count": 10 })
88
+ reln = Post.where(prop_name => { "#{prefix}_friend_count" => 10 })
87
89
  # puts reln.to_sql
88
90
  assert_equal 1, reln.count, reln.to_sql
89
91
  end
90
92
 
91
93
  test "detects default integer #{prop_name}" do
92
- reln = Post.where(prop_name => { "#{prefix}_friend_count": 0 })
94
+ reln = Post.where(prop_name => { "#{prefix}_friend_count" => 0 })
93
95
  # puts reln.to_sql
94
96
  assert_equal Post.all.count - 5, reln.count, reln.to_sql
95
97
  end
96
98
 
97
99
  test "detects default Falseclass #{prop_name}" do
98
- reln = Post.where(prop_name => { "#{prefix}_is_awesome": false })
100
+ reln = Post.where(prop_name => { "#{prefix}_is_awesome" => false })
99
101
  # puts reln.to_sql
100
102
  assert_equal Post.all.count - 1, reln.count, reln.to_sql
101
103
  end
102
104
  end
105
+
103
106
  test "handles string parameters" do
104
- reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count": 11 }).
107
+ reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count" => 11 }).
105
108
  where("posts.title = ?", 'With Storext is aweesome not default title')
106
109
  assert_nothing_raised do
107
110
  assert_equal 1, reln.count
108
111
  end
109
112
  end
113
+
114
+ test "handles multiple non-hash parameters" do
115
+ reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count" => 11 }).
116
+ where("posts.id between ? and ?",
117
+ posts(:with_storext_is_awesome_not_default).id,
118
+ posts(:with_storext_is_awesome_not_default).id + 1)
119
+ assert_nothing_raised do
120
+ assert_equal 1, reln.count
121
+ end
122
+ end
123
+
124
+ #
125
+ # Make sure that build_where isn't passed more than 2 parameters
126
+ # There was a bug...
127
+ #
128
+ test 'with find by lotsa things' do
129
+ assert_nothing_raised do
130
+ Post.find_by(id: 1, title: 'sumpthin',
131
+ body: 'sumpthin else',
132
+ created_at: '2015-01-01')
133
+ end
134
+ end
135
+
136
+ test 'HASH_DATA_COLUMNS is not shared between models' do
137
+ assert_equal('hstore', User::HASH_DATA_COLUMNS[:settings])
138
+ assert_equal('jsonb' , Post::HASH_DATA_COLUMNS[:settings])
139
+ end
110
140
  end
@@ -25,5 +25,9 @@ class ActiveSupport::TestCase
25
25
  fixtures :all
26
26
  # 'cuz I want to be able to login to the db and see things
27
27
  # and there aren't many tests here anyway, so speed isn't a problem
28
- self.use_transactional_fixtures = false
28
+ if ActiveRecord::VERSION::STRING < '5'
29
+ self.use_transactional_fixtures = false
30
+ elsif ActiveRecord::VERSION::STRING > '5'
31
+ self.use_transactional_tests = false
32
+ end
29
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David H. Wilkins
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-30 00:00:00.000000000 Z
12
+ date: 2020-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 4.2.8
20
+ version: 5.1.6.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 4.2.8
27
+ version: 5.1.6.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pg
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: appraisal
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  description: Use rails semantics to search keys and values inside PostgreSQL jsonb,
43
57
  json and hstore columns. Compatible with StoreXT attributes.
44
58
  email:
@@ -48,32 +62,30 @@ executables: []
48
62
  extensions: []
49
63
  extra_rdoc_files: []
50
64
  files:
65
+ - ".all-contributorsrc"
51
66
  - MIT-LICENSE
52
67
  - Rakefile
53
68
  - lib/squint.rb
54
69
  - lib/squint/version.rb
70
+ - readme.md
55
71
  - test/dummy/Rakefile
72
+ - test/dummy/app/assets/config/manifest.js
56
73
  - test/dummy/app/models/post.rb
57
- - test/dummy/app/models/post.rb~
74
+ - test/dummy/app/models/user.rb
58
75
  - test/dummy/config.ru
59
76
  - test/dummy/config/application.rb
60
77
  - test/dummy/config/boot.rb
61
78
  - test/dummy/config/database.yml
62
- - test/dummy/config/database.yml~
63
79
  - test/dummy/config/environment.rb
64
80
  - test/dummy/config/environments/test.rb
65
81
  - test/dummy/db/migrate/20170512185941_create_posts.rb
66
- - test/dummy/db/migrate/20170512185941_create_posts.rb~
82
+ - test/dummy/db/migrate/20200318185942_create_users.rb
83
+ - test/dummy/db/migrate/20200318185943_add_settings_to_posts.rb
67
84
  - test/dummy/db/schema.rb
68
- - test/dummy/log/development.log
69
- - test/dummy/log/test.log
70
85
  - test/dummy/test/fixtures/posts.yml
71
- - test/dummy/test/fixtures/posts.yml~
72
- - test/dummy/test/models/post_test.rb
73
- - test/dummy/test/models/post_test.rb~
86
+ - test/dummy/user.rb
74
87
  - test/squint_test.rb
75
88
  - test/test_helper.rb
76
- - test/test_helper.rb~
77
89
  homepage: https://github.com/ProctorU/squint
78
90
  licenses:
79
91
  - MIT
@@ -93,31 +105,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
105
  - !ruby/object:Gem::Version
94
106
  version: '0'
95
107
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.6.11
108
+ rubygems_version: 3.0.8
98
109
  signing_key:
99
110
  specification_version: 4
100
111
  summary: Search PostgreSQL jsonb and hstore columns
101
112
  test_files:
102
113
  - test/test_helper.rb
103
114
  - test/dummy/Rakefile
104
- - test/dummy/app/models/post.rb~
115
+ - test/dummy/app/models/user.rb
105
116
  - test/dummy/app/models/post.rb
106
- - test/dummy/test/models/post_test.rb
107
- - test/dummy/test/models/post_test.rb~
108
- - test/dummy/test/fixtures/posts.yml~
117
+ - test/dummy/app/assets/config/manifest.js
118
+ - test/dummy/user.rb
109
119
  - test/dummy/test/fixtures/posts.yml
110
- - test/dummy/config/database.yml~
111
120
  - test/dummy/config/environments/test.rb
112
121
  - test/dummy/config/application.rb
113
122
  - test/dummy/config/boot.rb
114
123
  - test/dummy/config/environment.rb
115
124
  - test/dummy/config/database.yml
116
125
  - test/dummy/config.ru
117
- - test/dummy/log/development.log
118
- - test/dummy/log/test.log
119
126
  - test/dummy/db/schema.rb
120
- - test/dummy/db/migrate/20170512185941_create_posts.rb~
127
+ - test/dummy/db/migrate/20200318185943_add_settings_to_posts.rb
121
128
  - test/dummy/db/migrate/20170512185941_create_posts.rb
122
- - test/test_helper.rb~
129
+ - test/dummy/db/migrate/20200318185942_create_users.rb
123
130
  - test/squint_test.rb
@@ -1,2 +0,0 @@
1
- class Post < ActiveRecord::Base
2
- end
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- development:
13
- <<: *default
14
- database: db/development.sqlite3
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- <<: *default
21
- database: db/test.sqlite3
22
-
23
- production:
24
- <<: *default
25
- database: db/production.sqlite3
@@ -1,12 +0,0 @@
1
- class CreatePosts < ActiveRecord::Migration
2
- def change
3
- create_table :posts do |t|
4
- t.string :title
5
- t.string :body
6
- t.jsonb :request_info
7
- t.hstore :properties
8
-
9
- t.timestamps null: false
10
- end
11
- end
12
- end
@@ -1,351 +0,0 @@
1
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.5ms) 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 CreatePosts (20170512185941)
5
-  (0.1ms) BEGIN
6
-  (0.3ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
7
-  (0.1ms) ROLLBACK
8
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
- Migrating to CreatePosts (20170512185941)
10
-  (0.2ms) BEGIN
11
- SQL (15.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
12
-  (1.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
13
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512185941"]]
14
-  (0.2ms) COMMIT
15
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
-  (2.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
17
- FROM pg_constraint c
18
- JOIN pg_class t1 ON c.conrelid = t1.oid
19
- JOIN pg_class t2 ON c.confrelid = t2.oid
20
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
21
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
22
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
23
- WHERE c.contype = 'f'
24
- AND t1.relname = 'posts'
25
- AND t3.nspname = ANY (current_schemas(false))
26
- ORDER BY c.conname
27
-
28
-  (108.2ms) DROP DATABASE IF EXISTS "search_semi_structured_data_development"
29
-  (3275.6ms) DROP DATABASE IF EXISTS "search_semi_structured_data_test"
30
-  (223.1ms) CREATE DATABASE "search_semi_structured_data_development" ENCODING = 'unicode'
31
-  (0.7ms) CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
32
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
33
- SQL (12.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
34
-  (2.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
35
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
36
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37
-  (0.3ms) SELECT version FROM "schema_migrations"
38
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
39
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
40
- SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
41
-  (4.8ms) DROP TABLE "posts" CASCADE
42
-  (6.4ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
43
-  (0.4ms) SELECT version FROM "schema_migrations"
44
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
-  (5008.8ms) DROP DATABASE IF EXISTS "search_semi_structured_data_test"
46
-  (108.9ms) DROP DATABASE IF EXISTS "search_semi_structured_data_test"
47
-  (222.2ms) CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
48
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
49
- SQL (13.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
50
-  (2.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
51
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
52
-  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
53
-  (0.2ms) SELECT version FROM "schema_migrations"
54
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
55
-  (110.9ms) DROP DATABASE IF EXISTS "search_semi_structured_data_development"
56
-  (221.8ms) CREATE DATABASE "search_semi_structured_data_development" ENCODING = 'unicode'
57
- SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
58
- SQL (17.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
59
-  (2.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
60
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
61
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
62
-  (0.3ms) SELECT version FROM "schema_migrations"
63
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
64
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
-  (1.9ms) 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
68
- FROM pg_constraint c
69
- JOIN pg_class t1 ON c.conrelid = t1.oid
70
- JOIN pg_class t2 ON c.confrelid = t2.oid
71
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
72
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
73
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
74
- WHERE c.contype = 'f'
75
- AND t1.relname = 'posts'
76
- AND t3.nspname = ANY (current_schemas(false))
77
- ORDER BY c.conname
78
- 
79
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
81
- Migrating to CreatePosts (20170512185941)
82
-  (0.2ms) BEGIN
83
-  (3.2ms) DROP TABLE "posts"
84
- SQL (7.4ms) DROP EXTENSION IF EXISTS "hstore" CASCADE
85
- SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20170512185941"]]
86
-  (0.9ms) COMMIT
87
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
88
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
89
- Migrating to CreatePosts (20170512185941)
90
-  (0.2ms) BEGIN
91
- SQL (19.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
92
-  (3.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
93
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512185941"]]
94
-  (0.2ms) COMMIT
95
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
96
-  (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
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 = 'posts'
105
- AND t3.nspname = ANY (current_schemas(false))
106
- ORDER BY c.conname
107
-
108
-  (109.9ms) DROP DATABASE IF EXISTS "search_semi_structured_data_test"
109
-  (245.4ms) CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
110
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
111
- SQL (15.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
112
-  (2.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
113
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
114
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
115
-  (0.4ms) SELECT version FROM "schema_migrations"
116
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
117
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
118
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
119
- Migrating to CreatePosts (20170512185941)
120
-  (0.2ms) BEGIN
121
-  (0.8ms) DROP TABLE "posts"
122
- SQL (2.6ms) DROP EXTENSION IF EXISTS "hstore" CASCADE
123
- SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20170512185941"]]
124
-  (1.1ms) COMMIT
125
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
127
- Migrating to CreatePosts (20170512185941)
128
-  (0.2ms) BEGIN
129
- SQL (14.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
130
-  (2.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
131
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512185941"]]
132
-  (0.2ms) COMMIT
133
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
134
-  (1.6ms) 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
135
- FROM pg_constraint c
136
- JOIN pg_class t1 ON c.conrelid = t1.oid
137
- JOIN pg_class t2 ON c.confrelid = t2.oid
138
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
139
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
140
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
141
- WHERE c.contype = 'f'
142
- AND t1.relname = 'posts'
143
- AND t3.nspname = ANY (current_schemas(false))
144
- ORDER BY c.conname
145
-
146
-  (110.8ms) DROP DATABASE IF EXISTS "search_semi_structured_data_test"
147
-  (224.8ms) CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
148
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
149
- SQL (15.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
150
-  (2.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
151
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
152
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
153
-  (0.3ms) SELECT version FROM "schema_migrations"
154
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
155
-  (0.1ms) DROP DATABASE IF EXISTS "squint_test"
156
-  (231.6ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
157
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
158
- SQL (16.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
159
-  (2.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
160
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
161
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
162
-  (0.4ms) SELECT version FROM "schema_migrations"
163
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
164
-  (5013.0ms) DROP DATABASE IF EXISTS "squint_test"
165
-  (110.7ms) DROP DATABASE IF EXISTS "squint_test"
166
-  (212.9ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
167
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
168
- SQL (15.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
169
-  (2.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
170
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
171
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
172
-  (0.3ms) SELECT version FROM "schema_migrations"
173
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
174
-  (105.9ms) DROP DATABASE IF EXISTS "squint_development"
175
-  (112.3ms) DROP DATABASE IF EXISTS "squint_test"
176
-  (225.8ms) CREATE DATABASE "squint_development" ENCODING = 'unicode'
177
-  (224.7ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
178
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
179
- SQL (12.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
180
-  (1.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
181
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
182
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
183
-  (0.3ms) SELECT version FROM "schema_migrations"
184
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
185
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
186
- SQL (11.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
187
-  (1.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
188
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
189
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
190
-  (0.3ms) SELECT version FROM "schema_migrations"
191
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
192
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
193
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
194
- SQL (10.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
195
-  (1.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
196
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
197
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
198
-  (0.3ms) SELECT version FROM "schema_migrations"
199
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
200
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
201
- SQL (9.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
202
-  (1.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
203
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
204
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
205
-  (0.3ms) SELECT version FROM "schema_migrations"
206
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
207
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
-  (106.8ms) DROP DATABASE IF EXISTS "squint_development"
209
-  (5011.5ms) DROP DATABASE IF EXISTS "squint_test"
210
-  (223.1ms) CREATE DATABASE "squint_development" ENCODING = 'unicode'
211
-  (0.7ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
212
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
213
- SQL (15.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
214
-  (2.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
215
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
216
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
217
-  (0.3ms) SELECT version FROM "schema_migrations"
218
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
219
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
220
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
221
-  (2.1ms) DROP TABLE "posts" CASCADE
222
-  (2.3ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
223
-  (0.3ms) SELECT version FROM "schema_migrations"
224
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
225
-  (106.9ms) DROP DATABASE IF EXISTS "squint_development"
226
-  (108.0ms) DROP DATABASE IF EXISTS "squint_test"
227
-  (211.6ms) CREATE DATABASE "squint_development" ENCODING = 'unicode'
228
-  (223.0ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
229
- SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
230
- SQL (27.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
231
-  (2.1ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
232
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
233
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
234
-  (0.2ms) SELECT version FROM "schema_migrations"
235
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
236
- SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
237
- SQL (9.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
238
-  (1.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
239
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
240
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
241
-  (0.3ms) SELECT version FROM "schema_migrations"
242
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
243
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
244
-  (106.9ms) DROP DATABASE IF EXISTS "squint_development"
245
-  (3520.2ms) DROP DATABASE IF EXISTS "squint_test"
246
-  (224.6ms) CREATE DATABASE "squint_development" ENCODING = 'unicode'
247
-  (224.0ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
248
- SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
249
- SQL (26.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
250
-  (2.3ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
251
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
252
-  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
253
-  (0.2ms) SELECT version FROM "schema_migrations"
254
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
255
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
256
- SQL (9.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
257
-  (1.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
258
-  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
259
-  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
260
-  (0.2ms) SELECT version FROM "schema_migrations"
261
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
262
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
263
-  (107.1ms) DROP DATABASE IF EXISTS "squint_development"
264
-  (107.2ms) DROP DATABASE IF EXISTS "squint_test"
265
-  (222.1ms) CREATE DATABASE "squint_development" ENCODING = 'unicode'
266
-  (223.4ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
267
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
268
- SQL (11.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
269
-  (2.1ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
270
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
271
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
272
-  (0.3ms) SELECT version FROM "schema_migrations"
273
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
274
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
275
- SQL (11.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
276
-  (2.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
277
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
278
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
279
-  (0.3ms) SELECT version FROM "schema_migrations"
280
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
281
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
282
-  (109.8ms) DROP DATABASE IF EXISTS "squint_development"
283
-  (109.4ms) DROP DATABASE IF EXISTS "squint_test"
284
-  (222.5ms) CREATE DATABASE "squint_development" ENCODING = 'unicode'
285
-  (212.2ms) CREATE DATABASE "squint_test" ENCODING = 'unicode'
286
- SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
287
- SQL (27.8ms) CREATE EXTENSION IF NOT EXISTS "hstore"
288
-  (2.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
289
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
290
-  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
291
-  (0.3ms) SELECT version FROM "schema_migrations"
292
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
293
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
294
- SQL (9.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
295
-  (1.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
296
-  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
297
-  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
298
-  (0.2ms) SELECT version FROM "schema_migrations"
299
-  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
300
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
301
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
302
-  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
303
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
304
- Migrating to CreatePosts (20170512185941)
305
-  (0.1ms) BEGIN
306
- SQL (11.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
307
-  (1.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
308
-  (0.5ms) CREATE INDEX "index_posts_on_request_info" ON "posts" USING GIN ("request_info")
309
-  (0.5ms) CREATE INDEX "index_posts_on_properties" ON "posts" USING GIN ("properties")
310
-  (0.4ms) CREATE INDEX "index_posts_on_storext_jsonb_attributes" ON "posts" USING GIN ("storext_jsonb_attributes")
311
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512185941"]]
312
-  (0.2ms) COMMIT
313
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
314
-  (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
315
- FROM pg_constraint c
316
- JOIN pg_class t1 ON c.conrelid = t1.oid
317
- JOIN pg_class t2 ON c.confrelid = t2.oid
318
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
319
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
320
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
321
- WHERE c.contype = 'f'
322
- AND t1.relname = 'posts'
323
- AND t3.nspname = ANY (current_schemas(false))
324
- ORDER BY c.conname
325
- 
326
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
327
-  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
328
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
329
- Migrating to CreatePosts (20170512185941)
330
-  (0.2ms) BEGIN
331
- SQL (9.9ms) CREATE EXTENSION IF NOT EXISTS "hstore"
332
-  (1.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
333
-  (0.5ms) CREATE INDEX "index_posts_on_request_info" ON "posts" USING GIN ("request_info")
334
-  (0.4ms) CREATE INDEX "index_posts_on_properties" ON "posts" USING GIN ("properties")
335
-  (0.2ms) CREATE INDEX "index_posts_on_storext_jsonb_attributes" ON "posts" USING GIN ("storext_jsonb_attributes")
336
-  (0.3ms) CREATE INDEX "index_posts_on_storext_hstore_attributes" ON "posts" USING GIN ("storext_hstore_attributes")
337
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512185941"]]
338
-  (0.2ms) COMMIT
339
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
340
-  (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
341
- FROM pg_constraint c
342
- JOIN pg_class t1 ON c.conrelid = t1.oid
343
- JOIN pg_class t2 ON c.confrelid = t2.oid
344
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
345
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
346
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
347
- WHERE c.contype = 'f'
348
- AND t1.relname = 'posts'
349
- AND t3.nspname = ANY (current_schemas(false))
350
- ORDER BY c.conname
351
-