Sha256: fe2c6b0def6f7fdf4e1c69957c1a0021ef46dfd8e4608e514342ec50733521be
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
class CreateAcidicJobRuns < <%= migration_class %> def change create_table :acidic_job_runs do |t| t.boolean :staged, null: false, default: -> { false } t.string :idempotency_key, null: false 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.timestamps t.index :idempotency_key, unique: true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acidic_job-1.0.0.pre3 | lib/generators/templates/create_acidic_job_runs_migration.rb.erb |
acidic_job-1.0.0.pre2 | lib/generators/templates/create_acidic_job_runs_migration.rb.erb |