scinote-web/db/migrate/20200714082503_add_lockable_to_user.rb
2020-07-17 16:35:03 +02:00

12 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