mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +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
|