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: 3f3dc30a6f85cf5072a81f21125ec4bba9a527b9
4
- data.tar.gz: 819358b14d23000061fff2a17e4531bd74efe768
3
+ metadata.gz: c08745ac927cd044ce700402e6d60792bb826225
4
+ data.tar.gz: 98b1de633ab7187f667497ccbc40e310df26570e
5
5
  SHA512:
6
- metadata.gz: 845c9557db6a072a53c2046f2f08dd0b9c1bedfc46468aa386395a9d4d58753ba662efaba39a8742697d11e9f62ae218a02e91cf9d26818379a57e807f7370ca
7
- data.tar.gz: e44349720d60291552b1e96ad39b6a545690746133178c7ab3cb7dec170ed1a7c8bec847936c85c094f17445b78f42b4043d1a452b546f14df6ecf5675cedd9c
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
- alias_method_chain :table, :checks
7
+ alias_method :table_without_checks, :table
8
+ alias_method :table, :table_with_checks
8
9
  end
9
10
 
10
11
  def table_with_checks(table, stream)
@@ -4,7 +4,8 @@ module Postgresql
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- alias_method_chain :create_table, :checks
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
@@ -1,5 +1,5 @@
1
1
  module Postgresql
2
2
  module Check
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  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.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: 2015-03-20 00:00:00.000000000 Z
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.3
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