-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add trackable module to devise * disable IP adress logging in trackable module of devise * extend comment to explain better what happens * remove redundant lines in comment
- Loading branch information
1 parent
ca8e298
commit 76cb7c0
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
db/migrate/20231101100015_add_devise_trackable_columns_to_users.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddDeviseTrackableColumnsToUsers < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :users, :sign_in_count, :integer, default: 0, null: false | ||
add_column :users, :current_sign_in_at, :datetime | ||
add_column :users, :last_sign_in_at, :datetime | ||
add_column :users, :current_sign_in_ip, :string | ||
add_column :users, :last_sign_in_ip, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters