mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Change migration
This commit is contained in:
parent
b087a8cbce
commit
d8794972d5
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddLockableToDevise < ActiveRecord::Migration[6.0]
|
||||
class AddLockableToUser < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
change_table :users, bulk: true do |t|
|
||||
t.integer :failed_attempts, default: 0, null: false
|
||||
t.datetime :locked_at
|
||||
t.string :unlock_token, index: true, foreign_key: { to_table: :users }, unique: true
|
||||
t.string :unlock_token, index: { unique: true }
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue