Sha256: ce925f4fb7f544f4803411ac00656895a5b34474f1c59b9d4f7cdfab001b0bfc

Contents?: true

Size: 418 Bytes

Versions: 7

Compression:

Stored size: 418 Bytes

Contents

class AddArgumentsToJobsSchedules < ActiveRecord::Migration[5.1]
  def change
    add_column :marty_background_job_schedules, :arguments, :jsonb, default: [], null: false

    remove_index :marty_background_job_schedules, :job_class
    add_index :marty_background_job_schedules, [:job_class, :arguments], unique: true

    add_column :marty_background_job_logs, :arguments, :jsonb, default: [], null: false
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
marty-14.3.0 db/migrate/525_add_arguments_to_jobs_schedules.rb
marty-14.0.0 db/migrate/525_add_arguments_to_jobs_schedules.rb
marty-13.0.2 db/migrate/525_add_arguments_to_jobs_schedules.rb
marty-11.0.0 db/migrate/525_add_arguments_to_jobs_schedules.rb
marty-10.0.3 db/migrate/525_add_arguments_to_jobs_schedules.rb
marty-10.0.2 db/migrate/525_add_arguments_to_jobs_schedules.rb
marty-10.0.0 db/migrate/525_add_arguments_to_jobs_schedules.rb