Sha256: 5db8111327269685af20b9a85abd9fa90d368cac02000d662762ab3923811a60

Contents?: true

Size: 900 Bytes

Versions: 10

Compression:

Stored size: 900 Bytes

Contents

class UpgradePiggybakTables < ActiveRecord::Migration
  def change
    rename_table :orders, :piggybak_orders
    rename_table :addresses, :piggybak_addresses
    rename_table :line_items, :piggybak_line_items
    rename_table :shipping_methods, :piggybak_shipping_methods
    rename_table :payment_methods, :piggybak_payment_methods
    rename_table :payments, :piggybak_payments
    rename_table :shipments, :piggybak_shipments
    rename_table :shipping_method_values, :piggybak_shipping_method_values
    rename_table :payment_method_values, :piggybak_payment_method_values
    rename_table :tax_methods, :piggybak_tax_methods
    rename_table :countries, :piggybak_countries
    rename_table :states, :piggybak_states
    rename_table :tax_method_values, :piggybak_tax_method_values
    rename_table :order_notes, :piggybak_order_notes
    rename_table :sellables, :piggybak_sellables
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
piggybak-0.7.7 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.6 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.5 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak_free_shipping_by_product-0.0.2 test/dummy/db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak_free_shipping_by_product-0.0.1 test/dummy/db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.4 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.3 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.2 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.1 db/migrate/20140325133841_upgrade_piggybak_tables.rb
piggybak-0.7.0 db/migrate/20140325133841_upgrade_piggybak_tables.rb