Class: RebuildAssociationBetweenParticipantAndPartakingsToPolymorphic
- Inherits:
-
Object
- Object
- RebuildAssociationBetweenParticipantAndPartakingsToPolymorphic
- Defined in:
- lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
Overview
NOTE must be removed until tramway-event 2.0
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
6 7 8 9 |
# 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 |