Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Dec 13, 2023
1 parent 620db8f commit 75666b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db/migrate/20231213113946_add_devise_passwords_to_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AddDevisePasswordsToUsers < ActiveRecord::Migration[7.1]
def change
add_column :users, :reset_password_token, :string
add_column :users, :reset_password_sent_at, :datetime
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddIndexToUsersResetPasswordToken < ActiveRecord::Migration[7.1]
disable_ddl_transaction!

def change
add_index :users, :reset_password_token, :unique => true, :algorithm => :concurrently
end
end

0 comments on commit 75666b3

Please sign in to comment.