Sha256: 064601017f0f529088a5922025753c7aa0dbe308e6f22bdc1c245aadbf36a193
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
class DropOldAcidicJobTables < <%= migration_class %> def change drop_table :acidic_job_keys do |t| t.string :idempotency_key, null: false t.string :job_name, null: false t.text :job_args, null: true t.datetime :last_run_at, null: false, default: -> { "CURRENT_TIMESTAMP" } t.datetime :locked_at, null: true t.string :recovery_point, null: false t.text :error_object t.text :attr_accessors t.text :workflow t.timestamps t.index %i[idempotency_key job_name job_args], unique: true, name: "idx_acidic_job_keys_on_idempotency_key_n_job_name_n_job_args" end drop_table :staged_acidic_jobs do |t| t.string :adapter, null: false t.string :job_name, null: false t.text :job_args, null: true t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acidic_job-1.0.0.pre3 | lib/generators/templates/drop_acidic_job_keys_migration.rb.erb |