Browse Source
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..master

2 changed files with 4 additions and 4 deletions
@ -1,9 +1,9 @@
|
||||
class DhlShippingDetails < ActiveRecord::Migration |
||||
def self.up |
||||
add_column :shipping_methods, :method_details, :string |
||||
add_column :spree_shipping_methods, :method_details, :string |
||||
end |
||||
|
||||
def self.down |
||||
remove_column :shipping_methods, :method_details |
||||
remove_column :spree_shipping_methods, :method_details |
||||
end |
||||
end |
||||
|
@ -1,9 +1,9 @@
|
||||
class DhlShippingMigration < ActiveRecord::Migration |
||||
def self.up |
||||
change_column :shipping_methods, :method_details, :text |
||||
change_column :spree_shipping_methods, :method_details, :text |
||||
end |
||||
|
||||
def self.down |
||||
change_column :shipping_methods, :method_details, :string |
||||
change_column :spree_shipping_methods, :method_details, :string |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue