Skip to content

Commit

Permalink
bugfix: workaround invalid future date in UTC in seed
Browse files Browse the repository at this point in the history
  • Loading branch information
trombik committed May 6, 2022
1 parent 75ee42b commit 012c001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
admin = User.new(username: 'admin', email: ENV['ADMIN_EMAIL'], password: ENV['ADMIN_PASSWORD'],
password_confirmation: Rails.application.secrets.admin_password, group_id: Group.find_by(slug: 'admins').id,
profile_attributes: { first_name: 'admin', last_name: 'admin', phone: '0123456789' },
statistic_profile_attributes: { gender: true, birthday: DateTime.current })
statistic_profile_attributes: { gender: true, birthday: DateTime.current - 1 })
admin.add_role 'admin'
admin.save!
end
Expand Down

0 comments on commit 012c001

Please sign in to comment.