Class: Devformance::Run
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Devformance::Run
- Defined in:
- app/models/devformance/run.rb
Class Method Summary collapse
Class Method Details
.create_for_files(file_paths) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/models/devformance/run.rb', line 10 def self.create_for_files(file_paths) create!( run_id: SecureRandom.hex(8), status: :running, started_at: Time.current, total_files: file_paths.size ) end |