Skip to content

Commit

Permalink
feat: add index to the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Dec 30, 2024
1 parent 09b7fa4 commit d20a4bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def up
SQL
end

safety_assured do
add_index :payments, :payment_type, algorithm: :concurrently
end
add_index :payments, :payment_type, algorithm: :concurrently
end

def down
Expand Down
1 change: 1 addition & 0 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d20a4bd

Please sign in to comment.