Sha256: c6fe38e67803ca26a397697d0fff3890cd529bfc7a59a42783aa7f22f7d98114

Contents?: true

Size: 403 Bytes

Versions: 25

Compression:

Stored size: 403 Bytes

Contents

class ChangeSipityEntitySpecificResponsibility < ActiveRecord::Migration<%= migration_version %>
  def change
    if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
      change_column :sipity_entity_specific_responsibilities, :entity_id, 'integer USING CAST(entity_id AS integer)'
    else
      change_column :sipity_entity_specific_responsibilities, :entity_id, :integer
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-5.0.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-5.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.6.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-4.0.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-4.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-4.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-4.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.5.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-4.0.0.beta2 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.4.2 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-4.0.0.beta1 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.4.1 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.4.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.3.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.2.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.1.0 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb
hyrax-3.0.2 lib/generators/hyrax/templates/db/migrate/20200617002029_change_sipity_entity_specific_responsibility.rb.erb