Module: DataMigrations::InProgressFormStatusDefault
- Defined in:
- lib/in_progress_form_status_default.rb
Class Method Summary collapse
Instance Method Summary collapse
- #run ⇒ Object private
Class Method Details
.run ⇒ Object
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
#run ⇒ Object (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 |