Class: CreateExternalServicesApiActions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/migrations/create_external_services_api_actions.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
18
19
# File 'lib/generators/templates/migrations/create_external_services_api_actions.rb', line 2

def change
  create_table :external_services_api_actions do |t|
    t.references :initiator, null: false, polymorphic: true, index: { name: 'esaa_on_initiator_type_and_initiator_id' }
    t.string     :type,      null: false

    t.string     :name
    t.string     :method,    null: false
    t.string     :path,      null: false
    t.text       :data
    t.string     :signature
    t.string     :queue, null: false

    t.text       :options

    t.timestamp  :created_at
    t.timestamp  :processed_at
  end
end