Sha256: b9903568080166037cd93e22fb60a635bff0a47d8d70570ae9e885d752d061b9

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

# RequestsMigration generator
class CreateTochkaCyclopsRequests < ActiveRecord::Migration[6.0]
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tochka_cyclops_api-0.4.0 lib/tochka_cyclops_api/generators/templates/tochka_cyclops_requests_migration_template.rb
tochka_cyclops_api-0.3.0 lib/tochka_cyclops_api/generators/templates/tochka_cyclops_requests_migration_template.rb
tochka_cyclops_api-0.2.0 lib/tochka_cyclops_api/generators/templates/tochka_cyclops_requests_migration_template.rb