class RebuildAssociationBetweenParticipantAndPartakingsToPolymorphic
NOTE must be removed until tramway-event 2.0
Public Instance Methods
change()
click to toggle source
# File lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb, line 6 def change rename_column :tramway_event_partakings, :section_id, :part_id add_column :tramway_event_partakings, :part_type, :text, default: 'Tramway::Event::Section' end