mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-11 01:44:23 +01:00
#2448: Add created_at and updated_at fields to the user model and display the creation date in user list
This commit is contained in:
parent
15f7510cba
commit
8369bf9e96
2 changed files with 8 additions and 0 deletions
6
db/migrate/20200807175610_add_dates_to_user.rb
Normal file
6
db/migrate/20200807175610_add_dates_to_user.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddDatesToUser < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :users, :created_at, :datetime
|
||||
add_column :users, :updated_at, :datetime
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue