#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:
Jyri-Petteri Paloposki 2020-08-07 21:03:51 +03:00
parent 15f7510cba
commit 8369bf9e96
2 changed files with 8 additions and 0 deletions

View 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