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-1.0.0.pre28 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre27 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre26 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre25 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre24 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre23 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre22 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre21 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre20 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre19 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre18 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre17 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre16 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre15 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre14 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre13 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre12 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre11 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre10 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb
acidic_job-1.0.0.pre9 lib/generators/acidic_job/templates/drop_acidic_job_keys_migration.rb.erb