schema_plus_pg_indexes 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +3 -1
- data/gemfiles/activerecord-5.1/Gemfile.base +3 -0
- data/gemfiles/activerecord-5.1/Gemfile.postgresql +10 -0
- data/lib/schema_plus_pg_indexes/version.rb +1 -1
- data/schema_dev.yml +1 -0
- data/spec/schema_dumper_spec.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90cf88d2c3f18bd96b37a1e8f3992d3aab05279e
|
4
|
+
data.tar.gz: 49d6ff69c0bde3a80ec17e74c7a8404b46eb3e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 752811cfa4644870286808f4662ac4e1178d81f2de43745a7d1b438f35a782a5a5f54a9059f4e55896a90ec1be3077cfd9065489f341c112d22042f34b66435f
|
7
|
+
data.tar.gz: f865110fc609f48e0965765b4c8220d8e5494389ae27522deebfbca6141b29afa88daeab02dd8bd9e6ebc3dc45e26dfa4e6370801f5e9488de57e753673819e2
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -56,11 +56,13 @@ schema_plus_pg_indexes is tested on
|
|
56
56
|
<!-- SCHEMA_DEV: MATRIX - begin -->
|
57
57
|
<!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
|
58
58
|
* ruby **2.3.1** with activerecord **5.0**, using **postgresql**
|
59
|
+
* ruby **2.3.1** with activerecord **5.1**, using **postgresql**
|
59
60
|
|
60
61
|
<!-- SCHEMA_DEV: MATRIX - end -->
|
61
62
|
|
62
|
-
##
|
63
|
+
## Release Notes
|
63
64
|
|
65
|
+
* v0.3.0 - Added Rails 5.1.0 support
|
64
66
|
* v0.2.1 - Added Rails 5.0.1 support (Removed Rails 5.0.0 support)
|
65
67
|
* v0.2.0 - Added Rails 5 support (Removed Rails 4.2 support)
|
66
68
|
* v0.1.12 - Missing require
|
data/schema_dev.yml
CHANGED
data/spec/schema_dumper_spec.rb
CHANGED
@@ -82,13 +82,13 @@ describe "Schema dump" do
|
|
82
82
|
|
83
83
|
it "should define expression" do
|
84
84
|
with_index Post, :name => "posts_freaky_index", :expression => "USING hash (least(id, user_id))" do
|
85
|
-
expect(dump_posts).to
|
85
|
+
expect(dump_posts).to match(/t.index \[\], :name=>"posts_freaky_index", :using=>:hash, :expression=>"LEAST\(id, (user_id|\(user_id\)::bigint)\)"/) # after AR 5.1 ::bigint is appended
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
89
|
it "should define multi-column with expression" do
|
90
90
|
with_index Post, :body, :expression => "(least(id, user_id))" do
|
91
|
-
expect(dump_posts).to match(/body.*index.*:expression=>"LEAST\(id, user_id\)"/)
|
91
|
+
expect(dump_posts).to match(/body.*index.*:expression=>"LEAST\(id, (user_id|\(user_id\)::bigint)\)"/) # after AR 5.1 ::bigint is appended
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_plus_pg_indexes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -178,6 +178,8 @@ files:
|
|
178
178
|
- gemfiles/Gemfile.base
|
179
179
|
- gemfiles/activerecord-5.0/Gemfile.base
|
180
180
|
- gemfiles/activerecord-5.0/Gemfile.postgresql
|
181
|
+
- gemfiles/activerecord-5.1/Gemfile.base
|
182
|
+
- gemfiles/activerecord-5.1/Gemfile.postgresql
|
181
183
|
- lib/schema_plus_pg_indexes.rb
|
182
184
|
- lib/schema_plus_pg_indexes/active_record/connection_adapters/index_definition.rb
|
183
185
|
- lib/schema_plus_pg_indexes/active_record/connection_adapters/postgresql_adapter.rb
|