Class: TestData::RecordsDumpMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/test_data/records_dump_metadata.rb

Instance Method Summary collapse

Instance Method Details

#callObject



3
4
5
6
7
# File 'lib/test_data/records_dump_metadata.rb', line 3

def call
  ActiveRecord::InternalMetadata
    .find_or_initialize_by(key: "test_data:last_dumped_at")
    .update!(value: Time.now.utc.inspect)
end