Sha256: 7e8c3184e4158760b4ab57dc51188cda14d8e1defea89a2ee672b6700c889874

Contents?: true

Size: 419 Bytes

Versions: 22

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

class CreateGoodJobLabels < ActiveRecord::Migration<%= migration_version %>
  def change
    reversible do |dir|
      dir.up do
        # Ensure this incremental update migration is idempotent
        # with monolithic install migration.
        return if connection.column_exists?(:good_jobs, :labels)
      end
    end

    add_column :good_jobs, :labels, :text, array: true
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
good_job-3.23.0 lib/generators/good_job/templates/update/migrations/08_create_good_job_labels.rb.erb
good_job-3.22.0 lib/generators/good_job/templates/update/migrations/08_create_good_job_labels.rb.erb