pg_party 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -6
- data/lib/pg_party/model_injector.rb +2 -1
- data/lib/pg_party/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2af92399978e7be5df6434c2f0dccf5896c5aa7
|
4
|
+
data.tar.gz: 97721d501e40754098725a291c8fbdc2fcf6b14f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398c6ea0766a1e7c312f519b79906acbcc89a20ed83cc266940084a454ee50fe70fbe6bca096e0183291d6d1ad8bafd3345b37fd37a456e51a60c6532038145b
|
7
|
+
data.tar.gz: 5254fd2f6b3b574eb76a9fc144d12a80e246718171ee38d5b240d214ae1d5dbdaeaec0436a5b5ddffbdd1388da312aea9dc0ce68abe8da5e2aee0ab091008d3c
|
data/README.md
CHANGED
@@ -3,10 +3,14 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/pg_party.svg)][rubygems]
|
4
4
|
[![Build Status](https://circleci.com/gh/rkrage/pg_party.svg?&style=shield)][circle]
|
5
5
|
[![Code Climate](https://codeclimate.com/github/rkrage/pg_party/badges/gpa.svg)][climate]
|
6
|
+
[![Code Coverage](https://codeclimate.com/github/rkrage/pg_party/badges/coverage.svg)][coverage]
|
7
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/rkrage/pg_party.svg)][gemnasium]
|
6
8
|
|
7
|
-
[rubygems]:
|
8
|
-
[circle]:
|
9
|
-
[climate]:
|
9
|
+
[rubygems]: https://rubygems.org/gems/pg_party
|
10
|
+
[circle]: https://circleci.com/gh/rkrage/pg_party
|
11
|
+
[climate]: https://codeclimate.com/github/rkrage/pg_party
|
12
|
+
[coverage]: https://codeclimate.com/github/rkrage/pg_party/coverage
|
13
|
+
[gemnasium]: https://gemnasium.com/github.com/rkrage/pg_party
|
10
14
|
|
11
15
|
[ActiveRecord](http://guides.rubyonrails.org/active_record_basics.html) migrations and model helpers for creating and managing [PostgreSQL 10 partitions](https://www.postgresql.org/docs/10/static/ddl-partitioning.html)!
|
12
16
|
|
@@ -100,7 +104,7 @@ Attach an existing table to a range partition:
|
|
100
104
|
```ruby
|
101
105
|
class AttachRangePartition < ActiveRecord::Migration[5.1]
|
102
106
|
def up
|
103
|
-
attach_range_partition
|
107
|
+
attach_range_partition :parent_table, :child_table
|
104
108
|
end
|
105
109
|
end
|
106
110
|
```
|
@@ -110,7 +114,7 @@ Attach an existing table to a list partition:
|
|
110
114
|
```ruby
|
111
115
|
class AttachListPartition < ActiveRecord::Migration[5.1]
|
112
116
|
def up
|
113
|
-
attach_list_partition
|
117
|
+
attach_list_partition :parent_table, :child_table
|
114
118
|
end
|
115
119
|
end
|
116
120
|
```
|
@@ -120,7 +124,7 @@ Detach a child table from any partition:
|
|
120
124
|
```ruby
|
121
125
|
class DetachPartition < ActiveRecord::Migration[5.1]
|
122
126
|
def up
|
123
|
-
detach_partition
|
127
|
+
detach_partition :parent_table, :child_table
|
124
128
|
end
|
125
129
|
end
|
126
130
|
```
|
data/lib/pg_party/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Krage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '12.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '12.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec-rails
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,6 +184,20 @@ dependencies:
|
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0.9'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: simplecov
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0.15'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0.15'
|
187
201
|
description: Migrations and model helpers for creating and managing PostgreSQL 10
|
188
202
|
partitions
|
189
203
|
email:
|