- [x] Create a new table named **job_executions** with the below database schema | Column Name | Data Type | |---|---| | id | uuid| |requestor_id | integer| |job_id | uuid| |requestor_comments | varchar| |arguments | json| |status | integer| |reason_for_failure | varchar| |auto_execute_on_approval | boolean| |run_at | timestamp| |execution_started_at | timestamp| |created_at | timestamp| |updated_at | timestamp| - [x] Create a new model for the JobExecution and add required validations on the model - [x] The `status` has to be declared as Enum and below can be the status - Requested - Approved - Rejected - Executed - Cancelled - Succeeded - Failed - [x] `requestor_comments` is a mandatory field - [x] Once the job execution is created the status to be marked as `requested` automatically - [x] Implement the `index`, `edit` and`show` actions for `job_executions`
statushas to be declared as Enum and below can be the status- Requested
- Approved
- Rejected
- Executed
- Cancelled
- Succeeded
- Failed
requestor_commentsis a mandatory fieldrequestedautomaticallyindex,editandshowactions forjob_executions