activerecord-mysql-pkdump 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord/mysql/pkdump.rb +1 -3
- data/lib/activerecord/mysql/pkdump/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f0d9a53befd0202111beb23c6a99b38ce59613a
|
4
|
+
data.tar.gz: c230aaf3f6d41e5e16db28bb718b322dbd5e59f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa48a2e5b9aad96131faf78a1d75f229cec0d1b9c34ece4f88418cb99660606a6006791cb3450df0d93589db435efb0f881de6d2bfe13048fd348a8a6dcfabd7
|
7
|
+
data.tar.gz: 764c1b0b51da875d85edbc20bf79cfb949fb1138328c39042364e64c0b03c375a8386fa8f597b4a23f3873dd4dcbb9a5774ad40b4267b155b6c248295d8edc26
|
@@ -26,12 +26,10 @@ module ActiveRecord
|
|
26
26
|
tbl.print %Q(, primary_key: "#{pk}")
|
27
27
|
end
|
28
28
|
|
29
|
-
pk_type = @types[:primary_key]
|
30
29
|
int_type = @types[:integer][:name]
|
31
30
|
|
32
31
|
unless pkcol.sql_type =~ /\A#{int_type}/
|
33
|
-
|
34
|
-
sql_type = "#{pkcol.sql_type} #{pk_extra}"
|
32
|
+
sql_type = [pkcol.sql_type, 'PRIMARY KEY', pkcol.extra].join(' ').strip
|
35
33
|
tbl.print ", id: #{sql_type.inspect}"
|
36
34
|
end
|
37
35
|
else
|