activerecord-rdb-adapter 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 746bb06a8424521bea46c6214bc759c5930ef6f52c2719bf3cd456e97d4bbd0b
4
- data.tar.gz: 3b6781a2390935f32755fdf2d571941256e7147cd2908132c6f4c8c024119d81
3
+ metadata.gz: 48636dd9bab0e2e287db6e532999c05999915ef45aaef4fb831e3c81d9c97332
4
+ data.tar.gz: bd68fc2651f1c4f6638c4033c9a4f9843e0d75f5912b8d473861174ab38049c5
5
5
  SHA512:
6
- metadata.gz: 3a63ca5729092be9e55ebfd9062b71a9089f56aafa90af9da2739eac1f0c2717637a311afa60d4f508f95f717e87b1b5be270168eba92de36d8daf5041b97152
7
- data.tar.gz: dfb8b363e0f23cbc7368993cf2d64525634fd564c95693cafbc19841252cef00e59ba5cd9ef92307aed1f4a72f251ea3df4a882739fec354f3821b84be020389
6
+ metadata.gz: efd4b453b5cbe2ff7695176a8379c02fb1af26f63f40ebd145a1d27af6f1cc18614fe6f9dfa8a202553e4b8baa996d852ee473ac4f849b2bd5ff7d522fe5149f
7
+ data.tar.gz: 8371f68485f637e34e63d6393b2de366d046efd938c1fa91fb13af8f7240ae322fbd60df03deb98a1b0929788df28b7a4a4038e8af51119b24a7c6cb8728b61e
@@ -15,7 +15,7 @@ module ActiveRecord
15
15
  def add_column_options!(sql, options)
16
16
  sql << " DEFAULT #{quote_default_expression(options[:default], options[:column])}" if options_include_default?(options)
17
17
  # must explicitly check for :null to allow change_column to work on migrations
18
- if !options[:null]
18
+ if options[:null].present? && !options[:null]
19
19
  sql << " NOT NULL"
20
20
  end
21
21
  if options[:auto_increment]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-rdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Lobanov (RedSoft)