Sha256: d45905b7e556b1e382d9ca4c9c701bc8e8967d56d9f9a2d857bd83ab26216c01
Contents?: true
Size: 436 Bytes
Versions: 7
Compression:
Stored size: 436 Bytes
Contents
# This migration comes from spree (originally 20091209202200) class MakeStateEventsPolymorphic < ActiveRecord::Migration def up rename_column :state_events, :order_id, :stateful_id add_column :state_events, :stateful_type, :string execute "UPDATE state_events SET stateful_type = 'Order'" end def down rename_column :state_events, :stateful_id, :order_id remove_column :state_events, :stateful_type end end
Version data entries
7 entries across 7 versions & 2 rubygems