mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
11 lines
300 B
Ruby
11 lines
300 B
Ruby
# frozen_string_literal: true
|
|
|
|
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: { unique: true }
|
|
end
|
|
end
|
|
end
|