Class: CreateAeActiveJobStateTables
- Inherits:
-
Object
- Object
- CreateAeActiveJobStateTables
- Defined in:
- lib/generators/ae_active_job_state/templates/create_ae_active_job_state_tables.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/ae_active_job_state/templates/create_ae_active_job_state_tables.rb', line 4 def change create_table :ae_active_job_state_job_states do |t| t. null: false t.string :status, null: false t.json :args t.json :result t.json :progress t.datetime :started_at t.datetime :finished_at t.datetime :failed_at t.string :active_job_id, null: false, index: { unique: true } end end |