Class: CreateAsyncRequest

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/create_async_request.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/templates/create_async_request.rb', line 2

def change
  create_table :async_endpoint_async_requests do |t|
    t.string :jid
    t.integer :status, default: 0, null: false
    t.text :response
    t.text :params
    t.string :type
    
    t.timestamps null: false
  end

  add_index :async_endpoint_async_requests, :jid, unique: true
end