Class: CreateOutboundRequests

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :outbound_requests do |t|
    t.string :service
    t.string :action
    t.string :identifier
    t.text :params
    t.string :response_code
    t.text :response_body
    t.text :error
    t.timestamps
  end

  add_index :outbound_requests, :service
  add_index :outbound_requests, [:service, :action]
  add_index :outbound_requests, [:service, :identifier]
end