Sha256: 97d98ec090f41610072ca613912b57dc214a0a96288c9feedfcfec3ec7e0eb21
Contents?: true
Size: 461 Bytes
Versions: 7
Compression:
Stored size: 461 Bytes
Contents
class RemovePaymentMethods < ActiveRecord::Migration def self.up drop_table :shop_payment_methods remove_index :shop_payments, :shop_payment_method_id remove_column :shop_payments, :shop_payment_method_id end def self.down add_column :shop_payments, :shop_pamyent_method_id, :integer add_index :shop_payments, :shop_payment_method_id create_table :shop_payment_methods do |t| t.string :name end end end
Version data entries
7 entries across 7 versions & 1 rubygems