declare_schema 1.2.3.pre.ga.0 → 1.2.3.pre.ga.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/declare_schema/version.rb +1 -1
- data/lib/generators/declare_schema/migration/migrator.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9557ec596238900fa3a3149ab9c38dfc420af5e0410f8f2fbaa3fb41a009104
|
4
|
+
data.tar.gz: 292bc6f481dff79424a50e6a405ab8ff7f64f205a46f1aef83748139ba3ed8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9ab8ca57e5782d3658dea77d8623a41d3b5d4fa89782822deca899b0ee39c98b68cf2e07317ad6bcd7f75b027a3491f64dadbb259f6f7c3b64511de7bb65938
|
7
|
+
data.tar.gz: 1f3b7a0ce7ad48027f9a59c47f2125dcd25f5f1d6ae2ea92ca3ccee4e48a1bf1f06ebfb628ab0c05d67bdea3630fb4a65c0dca5fcf4999dfa49ceddacb2d8aaf
|
data/Gemfile.lock
CHANGED
@@ -497,10 +497,10 @@ module Generators
|
|
497
497
|
|
498
498
|
fks_to_drop.each { |fk_to_drop|
|
499
499
|
fks_to_add.each { |fk_to_add|
|
500
|
-
if fk_to_add.child_table_name ==
|
501
|
-
fk_to_add.parent_table_name ==
|
502
|
-
fk_to_add.constraint_name ==
|
503
|
-
fk_to_add.foreign_key == to_rename[
|
500
|
+
if fk_to_add.child_table_name == fk_to_drop.child_table_name &&
|
501
|
+
fk_to_add.parent_table_name == fk_to_drop.parent_table_name &&
|
502
|
+
fk_to_add.constraint_name == fk_to_drop.constraint_name &&
|
503
|
+
fk_to_add.foreign_key == to_rename[fk_to_drop.foreign_key]
|
504
504
|
|
505
505
|
renamed_fks_to_drop.append(fk_to_drop)
|
506
506
|
renamed_fks_to_add.append(fk_to_add)
|