summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-13 18:13:54 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-13 18:13:54 -0600
commitad948f0507e9ca41580592d9638eae7a244d030f (patch)
tree993cbdf4be44d0439b563e0630a34bfde3fb9b19 /db/migrate
parent26f5e92260a9b341376c494413f2b100b32c5a6a (diff)
Borra el foreign key payment en Order
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20230414000904_drop_foreign_key_payment_in_order.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20230414000904_drop_foreign_key_payment_in_order.rb b/db/migrate/20230414000904_drop_foreign_key_payment_in_order.rb
new file mode 100644
index 0000000..bf95bed
--- /dev/null
+++ b/db/migrate/20230414000904_drop_foreign_key_payment_in_order.rb
@@ -0,0 +1,6 @@
+class DropForeignKeyPaymentInOrder < ActiveRecord::Migration[7.0]
+ def change
+ remove_foreign_key(:orders, column: :payment_id)
+ change_column_null(:orders, :payment_id, true)
+ end
+end