Skip to content

Commit

Permalink
change to drop_index for mysql 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kathap committed Aug 30, 2024
1 parent 9c055c9 commit 14c2f79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
up do
if self.class.name.match?(/mysql/i)
alter_table :quota_definitions do
drop_constraint :name, if_exists: true
drop_index :name, if_exists: true
end
elsif self.class.name.match?(/postgres/i)
alter_table :quota_definitions do
Expand Down

0 comments on commit 14c2f79

Please sign in to comment.