Sha256: ecd1087f14538146711d41f35374314d48a27a0a1b91fef63d9c348c5e6a0817
Contents?: true
Size: 417 Bytes
Versions: 35
Compression:
Stored size: 417 Bytes
Contents
class PaymentsStateAndAssignedToOrderOnly < ActiveRecord::Migration def up # TODO: migrate existing payments rename_column :payments, :payable_id, :order_id remove_column :payments, :payable_type add_column :payments, :state, :string end def down remove_column :payments, :state add_column :payments, :payable_type, :string rename_column :payments, :order_id, :payable_id end end
Version data entries
35 entries across 35 versions & 3 rubygems