Sha256: 7efba1eacdbb38c9f9127a9d5f4bfd380c06ad6ee29431b7225e997bbe8e2d7b

Contents?: true

Size: 875 Bytes

Versions: 45

Compression:

Stored size: 875 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  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

45 entries across 45 versions & 1 rubygems

Version Path
acidic_job-0.9.0 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.8 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.7 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.5 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.4 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.3 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.2 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.1 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-0.8.0 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.10 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.9 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.8 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.7 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.6 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.5 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.4 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.3 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.2 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.beta.1 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre29 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb