Skip to content

Commit

Permalink
Fix removal of polymorphic associations
Browse files Browse the repository at this point in the history
  • Loading branch information
josv authored and BDQ committed Mar 31, 2013
1 parent 933002f commit 5e21f75
Showing 1 changed file with 4 additions and 2 deletions.
@@ -1,7 +1,9 @@
class DropSourceAndDestinationFromStockMovement < ActiveRecord::Migration
def up
remove_column :spree_stock_movements, :source, polymorphic: true
remove_column :spree_stock_movements, :destination, polymorphic: true
change_table :spree_stock_movements do |t|
t.remove_references :source, :polymorphic => true
t.remove_references :destination, :polymorphic => true
end
end

def down
Expand Down

0 comments on commit 5e21f75

Please sign in to comment.