Class: CreateAsyncRequest
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAsyncRequest
- Defined in:
- lib/generators/templates/create_async_request.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. null: false end add_index :async_endpoint_async_requests, :jid, unique: true end |