declare_schema 1.2.3.pre.ga.0 → 1.2.3.pre.ga.2
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 +3 -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: 1b2501407fb1875c42fda5d9c77ab78ca1f966c780e0888716e6e71769ea53b1
|
4
|
+
data.tar.gz: 535e054f1ad938d271334fdc6054108778dde1f72e59335d778f11ab73d08c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f5c2dea9bd05f536f05f058ce193a4003384f754649d5b922bbce6532bfe25f60e8c987e2b1136b603899cc0cb9217f0dcc8b59e6bbf974f9dc57aa600abf36
|
7
|
+
data.tar.gz: 17fe43628304597208f5063fc907ae3bd85586732a26985c0d709004d4411af1ff89dfab79b41334073c7860231b0c560ae5d6eff605a72335748335696da5d8
|
data/Gemfile.lock
CHANGED
@@ -497,10 +497,9 @@ 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.
|
503
|
-
fk_to_add.foreign_key == to_rename[fks_to_drop.foreign_key]
|
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.foreign_key == to_rename[fk_to_drop.foreign_key]
|
504
503
|
|
505
504
|
renamed_fks_to_drop.append(fk_to_drop)
|
506
505
|
renamed_fks_to_add.append(fk_to_add)
|