Sha256: 342ed9aff35a282531c8c6dfe5815c09658a95941138543c472e7ec1cc2ba222
Contents?: true
Size: 770 Bytes
Versions: 3
Compression:
Stored size: 770 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %> def change create_table :kafka_messages, force: true do |t| t.string :topic, null: false t.binary :message, limit: 10.megabytes t.binary :key t.string :partition_key t.timestamps end add_index :kafka_messages, [:topic, :id] create_table :kafka_topic_info, force: true do |t| t.string :topic, null: false t.string :locked_by t.datetime :locked_at t.boolean :error, null: false, default: false t.integer :retries, null: false, default: 0 end add_index :kafka_topic_info, :topic, unique: true add_index :kafka_topic_info, [:locked_by, :error] add_index :kafka_topic_info, :locked_at end end
Version data entries
3 entries across 3 versions & 1 rubygems