Skip to content

Commit

Permalink
chore(schema): add unconfirmed_email index to users
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Nov 12, 2024
1 parent 72d8e43 commit 92f2d29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class AddUnconfirmedEmailIndexToUsers < ActiveRecord::Migration[7.0]
disable_ddl_transaction!

def change
add_index :users, :unconfirmed_email, algorithm: :concurrently
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_10_14_084333) do
ActiveRecord::Schema[7.0].define(version: 2024_11_12_090128) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_buffercache"
enable_extension "pg_stat_statements"
Expand Down Expand Up @@ -1236,6 +1236,7 @@
t.index ["last_sign_in_at"], name: "index_users_on_last_sign_in_at"
t.index ["requested_merge_into_id"], name: "index_users_on_requested_merge_into_id"
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
t.index ["unconfirmed_email"], name: "index_users_on_unconfirmed_email"
t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
end

Expand Down

0 comments on commit 92f2d29

Please sign in to comment.