Sha256: d7a1671e15b6939fee0f8b91b18414090cdce8a7740eb2402570ed95efa21d88

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

# This migration comes from spree (originally 20120530012000)
class RenameCreditcardsToCreditCards < ActiveRecord::Migration
  def change
    rename_table :spree_creditcards, :spree_credit_cards
    execute("UPDATE spree_payments SET source_type = 'Spree::CreditCard' WHERE source_type = 'Spree::Creditcard'")
  end

  def down
    execute("UPDATE spree_payments SET source_type = 'Spree::Creditcard' WHERE source_type = 'Spree::CreditCard'")
    rename_table :spree_credit_cards, :spree_creditcards
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_mercado_pago_payment_method-0.0.2 spec/dummy/db/migrate/20121121030238_rename_creditcards_to_credit_cards.spree.rb
spree_mercado_pago_payment_method-0.1.1 spec/dummy/db/migrate/20121121030238_rename_creditcards_to_credit_cards.spree.rb
spree_mercado_pago_payment_method-0.1.0 spec/dummy/db/migrate/20121121030238_rename_creditcards_to_credit_cards.spree.rb