Class: CreateTochkaCyclopsRequests
- Inherits:
-
Object
- Object
- CreateTochkaCyclopsRequests
- Defined in:
- lib/tochka_cyclops_api/generators/templates/tochka_cyclops_requests_migration_template.rb
Overview
RequestsMigration generator
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. end end |