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.9.19.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.19 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.18.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.18.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.18 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.17 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.16 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.15 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.14 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.13 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.12 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.11.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.11.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.11 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.10.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.10 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.9.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.9.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.9 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.8 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb