activerecord-rdb-adapter 0.6.3 → 0.7.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffe14068735fae66446cb662b8136113122d645355d53285a4f9f153480112ad
|
4
|
+
data.tar.gz: 7ee896f2e1d86148d4bfbe1237386cf8bf296df13bba15d10a423e4e2264109e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0341559693842b454345bec14812245f65dc966ecdc2692fc9d8a4e3f2c5427d33c1333b240a9f2812fbd6f4d35e4a9a96d8cd0881d4df1f924e36a6977fd7e
|
7
|
+
data.tar.gz: 01b98ccd57d9797e41ba667af3b8ddd9c2df5f234ce60d49117fa1bc1dc117b94250f2796db7b78bba10c27e11e02f2f5f7f82073cefbf55d6fbaacf3c28da61
|
@@ -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].nil? && !options[:null]
|
19
19
|
sql << " NOT NULL"
|
20
20
|
end
|
21
21
|
if options[:auto_increment]
|