Sha256: 7c0d416720eb71907a3d994c28a80b435f9b4eb2592852c64a9da8830c1f708a

Contents?: true

Size: 334 Bytes

Versions: 43

Compression:

Stored size: 334 Bytes

Contents

# NOTE must be removed until tramway-event 2.0

class RebuildAssociationBetweenParticipantAndPartakingsToPolymorphic < ActiveRecord::Migration[5.1]
  def change
    rename_column :tramway_event_partakings, :section_id, :part_id
    add_column :tramway_event_partakings, :part_type, :text, default: 'Tramway::Event::Section'
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
tramway-event-1.7.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.7.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.7 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb