migration: Cheat and rename the tables in the migration...

This needs to be done to work with newer spree that do not have
the upgrade path from 0.6 to 1.3... in the production environment
this was not noticed as the rename_table was doing this migration
for us..
This commit is contained in:
Holger Hans Peter Freyther 2013-04-12 16:36:05 +02:00
parent 6630527824
commit fd646a090c
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
class DhlShippingDetails < ActiveRecord::Migration class DhlShippingDetails < ActiveRecord::Migration
def self.up def self.up
add_column :shipping_methods, :method_details, :string add_column :spree_shipping_methods, :method_details, :string
end end
def self.down def self.down
remove_column :shipping_methods, :method_details remove_column :spree_shipping_methods, :method_details
end end
end end

View File

@ -1,9 +1,9 @@
class DhlShippingMigration < ActiveRecord::Migration class DhlShippingMigration < ActiveRecord::Migration
def self.up def self.up
change_column :shipping_methods, :method_details, :text change_column :spree_shipping_methods, :method_details, :text
end end
def self.down def self.down
change_column :shipping_methods, :method_details, :string change_column :spree_shipping_methods, :method_details, :string
end end
end end