Class: CreateAsyncRequestJobs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAsyncRequestJobs
- Defined in:
- lib/templates/create_async_request_jobs.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/templates/create_async_request_jobs.rb', line 2 def change create_table :async_request_jobs do |t| t.string :worker t.integer :status t.integer :status_code t.text :response t.string :uid t.text :params t. null: false end add_index :async_request_jobs, :status add_index :async_request_jobs, :uid, unique: true end |