summaryrefslogtreecommitdiff
path: root/db/migrate/20230322234849_create_user_account_addresses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20230322234849_create_user_account_addresses.rb')
-rw-r--r--db/migrate/20230322234849_create_user_account_addresses.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20230322234849_create_user_account_addresses.rb b/db/migrate/20230322234849_create_user_account_addresses.rb
new file mode 100644
index 0000000..a2e0e9b
--- /dev/null
+++ b/db/migrate/20230322234849_create_user_account_addresses.rb
@@ -0,0 +1,10 @@
+class CreateUserAccountAddresses < ActiveRecord::Migration[7.0]
+ def change
+ create_table :user_account_addresses do |t|
+ t.references :user_account, null: false, foreign_key: true
+ t.references :address, null: false, foreign_key: true
+
+ t.timestamps
+ end
+ end
+end