In the model file, add for example:

after_initialize do
  self.date ||= DateTime.current
end