DateTime.now => Time.zone.now
This commit is contained in:
parent
4f1cc8a2f0
commit
13ffa61435
26 changed files with 39 additions and 39 deletions
|
@ -7,7 +7,7 @@ class AddConfirmableToUserDevise < ActiveRecord::Migration[5.2]
|
|||
# User.reset_column_information # Need for some types of updates, but not for update_all.
|
||||
# To avoid a short time window between running the migration and updating all existing
|
||||
# users as confirmed, do the following
|
||||
User.all.update_all confirmed_at: DateTime.now
|
||||
User.all.update_all confirmed_at: Time.zone.now
|
||||
# All existing user accounts should be able to log in after this.
|
||||
end
|
||||
|
||||
|
|
|
@ -12,4 +12,4 @@ puts "Create test user '#{default_user}'"
|
|||
Administration.create!(email: default_user, password: default_password)
|
||||
Administrateur.create!(email: default_user, password: default_password)
|
||||
Gestionnaire.create!(email: default_user, password: default_password)
|
||||
User.create!(email: default_user, password: default_password, confirmed_at: DateTime.now)
|
||||
User.create!(email: default_user, password: default_password, confirmed_at: Time.zone.now)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue