Sha256: 5538ab03fe7112c97e1bbd73202ee887ec5f710b859055a8ca8e10c02e4f9561

Contents?: true

Size: 365 Bytes

Versions: 82

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

# 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

82 entries across 82 versions & 1 rubygems

Version Path
tramway-event-1.10.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.10.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.10.0.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.10.0.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.10 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.31.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.31.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.31 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.30 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.29 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.28.4 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.28.3 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.28.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.28.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.28 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.27.6 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.27.5 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.27.4 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.27.3 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.27.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb