File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1759,7 +1759,7 @@ defmodule AshPostgres.MigrationGenerator do
1759
1759
1760
1760
reference_indexes_to_add =
1761
1761
Enum . filter ( snapshot . attributes , fn attribute ->
1762
- if attribute . references , do: attribute . references . index?
1762
+ if attribute . references , do: attribute . references [ : index?]
1763
1763
end )
1764
1764
|> Enum . map ( fn attribute ->
1765
1765
% Operation.AddReferenceIndex {
@@ -1777,10 +1777,10 @@ defmodule AshPostgres.MigrationGenerator do
1777
1777
attribute . source == old_attribute . source
1778
1778
end )
1779
1779
1780
- has_removed_index? = attribute && not attribute . index? && old_attribute . index?
1781
- attribute_doesnt_exist? = ! attribute && old_attribute . index?
1780
+ has_removed_index? = attribute && ! attribute [ : index?] && old_attribute [ : index?]
1781
+ attribute_doesnt_exist? = ! attribute && old_attribute [ : index?]
1782
1782
1783
- has_removed_index? or attribute_doesnt_exist?
1783
+ has_removed_index? || attribute_doesnt_exist?
1784
1784
end )
1785
1785
|> Enum . map ( fn attribute ->
1786
1786
% Operation.RemoveReferenceIndex {
You can’t perform that action at this time.
0 commit comments