Sha256: 1b9030afd469de353adbf2459299e2975160ff1938ffd391372162849124d635
Contents?: true
Size: 915 Bytes
Versions: 32
Compression:
Stored size: 915 Bytes
Contents
# # Migrate received HearActions to the new SayAction # Remove parenthesis from subtypes # class MassageActionSubtypes < ActiveRecord::Migration def change execute "update actions set type='SayAction', subtype='Email' where type='HearAction' and subtype='Email (received)'" execute "update actions set type='SayAction', subtype='Phone' where type='HearAction' and subtype='Phone (received)'" execute "update actions set type='SayAction', subtype='Postal' where type='HearAction' and subtype='Postal (received)'" execute "update actions set subtype='Email' where type='HearAction' and subtype='Email (sent)'" execute "update actions set subtype='Phone' where type='HearAction' and subtype='Phone (initiated)'" execute "update actions set subtype='Postal' where type='HearAction' and subtype='Postal (sent)'" end end
Version data entries
32 entries across 32 versions & 1 rubygems