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.9.27.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.27 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.26 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.25.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.25 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.24.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.24 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.23.2 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.23.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.23 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.22 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.21.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.21 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.20.1 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.20 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.19.8 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.19.7 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.19.6 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.19.5 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
tramway-event-1.9.19.4 lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb