Class: CreateTochkaCyclopsRequests

Inherits:
Object
  • Object
show all
Defined in:
lib/tochka_cyclops_api/generators/templates/tochka_cyclops_requests_migration_template.rb

Overview

RequestsMigration generator

Instance Method Summary collapse

Instance Method Details

#changeObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/tochka_cyclops_api/generators/templates/tochka_cyclops_requests_migration_template.rb', line 5

def change
  create_table :tochka_cyclops_requests do |t|
    t.string :method
    t.jsonb :body
    t.integer :status
    t.string :request_identifier
    t.references :result, polymorphic: true, index: false, null: true
    t.string :idempotency_key, null: true
    t.timestamps
  end
end