Module: DataMigrations::InProgressFormStatusDefault

Defined in:
lib/in_progress_form_status_default.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



7
8
9
# File 'lib/in_progress_form_status_default.rb', line 7

def run
  InProgressForm.where(status: nil).update_all(status: 'pending') # rubocop:disable Rails/SkipsModelValidations
end

Instance Method Details

#runObject (private)



7
8
9
# File 'lib/in_progress_form_status_default.rb', line 7

def run
  InProgressForm.where(status: nil).update_all(status: 'pending') # rubocop:disable Rails/SkipsModelValidations
end