Sha256: c438591190ad775d6ed55ab0604daf44a32f3d6b7923d0fa8bd738f861a707aa

Contents?: true

Size: 230 Bytes

Versions: 42

Compression:

Stored size: 230 Bytes

Contents

class ChangeFeaturedWorkGenericFileIdToWorkId < ActiveRecord::Migration[5.2]
  def change
    return unless column_exists?(:featured_works, :generic_file_id)
    rename_column :featured_works, :generic_file_id, :work_id
  end
end

Version data entries

42 entries across 28 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.1.0.pre.beta1 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.4 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.4 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.3 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.3 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.2 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.2 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.1 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.1 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0.rc3 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0.rc3 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0.rc2 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0.rc2 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0.rc1 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-5.0.0.rc1 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-3.6.0 .dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb
hyrax-4.0.0 .koppie/db/migrate/20210911143559_change_featured_work_generic_file_id_to_work_id.hyrax.rb