Sha256: 065d65d20346f10c38dfebad1e85e8203a4886fb68ecb9e227e1d5ae62428cf7

Contents?: true

Size: 855 Bytes

Versions: 26

Compression:

Stored size: 855 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :acidic_job_runs do |t|
      t.boolean     :staged, 					null: false,  default: -> { false }
      t.string      :idempotency_key, null: false,  index: { unique: true }
      t.text        :serialized_job, 	null: false
      t.string      :job_class, 			null: false
      t.datetime    :last_run_at, 		null: true,   default: -> { "CURRENT_TIMESTAMP" }
      t.datetime    :locked_at, 			null: true
      t.string      :recovery_point, 	null: true
      t.text        :error_object, 		null: true
      t.text        :attr_accessors, 	null: true
      t.text        :workflow, 				null: true
      t.references  :awaited_by,      null: true,   index: true
      t.text        :returning_to,    null: true
      t.timestamps
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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