Skip to content

Commit

Permalink
Improved test
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 7, 2024
1 parent 7d7eb96 commit 2af0977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/migrations/add_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ def change

class AddIndexColumns < TestMigration
def change
add_index :users, [:name, :city, :state, :zip_code]
add_index :users, [:name, :city, :country, :deleted_at]
end
end

class AddIndexColumnsUnique < TestMigration
disable_ddl_transaction!

def change
add_index :users, :name, unique: true, algorithm: :concurrently
add_index :users, [:name, :city, :country, :deleted_at], unique: true, algorithm: :concurrently
end
end

Expand Down

0 comments on commit 2af0977

Please sign in to comment.