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-2.0.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-2.0.0.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-2.0 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.9.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.9 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.8.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.8.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.8 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.7 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.6.4 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.6.3 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.6.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.6 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.5 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.4 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.3.10 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.3.9 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.3.8 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.3.7 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.12.3.6 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb