postgresql-check 0.1.1 → 0.1.2
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c08745ac927cd044ce700402e6d60792bb826225
|
|
4
|
+
data.tar.gz: 98b1de633ab7187f667497ccbc40e310df26570e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f949a7d61e580412fd924b45de7c314a57547ab7e8b4a9d07c525e5f09f4230e20741e1f4cfeeaeb3c5bc2a98a72d5e4a90df61239bb714af24a078f55da55e
|
|
7
|
+
data.tar.gz: 3ad44ef6fc826b2cdf6ff3a92fb4804a2361f7778ec396ee6a7a45edca0c357cb2b30be9234e08315141d4778d620a8b58490b07ea9f491d9e8a5608e48e9194
|
|
@@ -4,7 +4,8 @@ module Postgresql
|
|
|
4
4
|
extend ActiveSupport::Concern
|
|
5
5
|
|
|
6
6
|
included do
|
|
7
|
-
|
|
7
|
+
alias_method :create_table_without_checks, :create_table
|
|
8
|
+
alias_method :create_table, :create_table_with_checks
|
|
8
9
|
end
|
|
9
10
|
|
|
10
11
|
# Add a new Check constraint to table with given +table_name+
|
|
@@ -85,4 +86,4 @@ module Postgresql
|
|
|
85
86
|
end
|
|
86
87
|
end
|
|
87
88
|
end
|
|
88
|
-
end
|
|
89
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postgresql-check
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexei Mikhailov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
version: '0'
|
|
95
95
|
requirements: []
|
|
96
96
|
rubyforge_project:
|
|
97
|
-
rubygems_version: 2.4.
|
|
97
|
+
rubygems_version: 2.4.8
|
|
98
98
|
signing_key:
|
|
99
99
|
specification_version: 4
|
|
100
100
|
summary: Adds helpers to migrations and dumps check constraints to schema.rb
|