4 changed files with 32 additions and 6 deletions
@ -0,0 +1,12 @@
|
||||
class AddUserLastLoggedIn < ActiveRecord::Migration[6.1] |
||||
def change |
||||
change_table :users, bulk: true do |t| |
||||
## Trackable |
||||
t.integer :sign_in_count, default: 0, null: false |
||||
t.datetime :current_sign_in_at |
||||
t.datetime :last_sign_in_at |
||||
t.string :current_sign_in_ip |
||||
t.string :last_sign_in_ip |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue