summaryrefslogtreecommitdiff
path: root/db/migrate/20230322234003_create_addresses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20230322234003_create_addresses.rb')
-rw-r--r--db/migrate/20230322234003_create_addresses.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230322234003_create_addresses.rb b/db/migrate/20230322234003_create_addresses.rb
new file mode 100644
index 0000000..ff36085
--- /dev/null
+++ b/db/migrate/20230322234003_create_addresses.rb
@@ -0,0 +1,13 @@
+class CreateAddresses < ActiveRecord::Migration[7.0]
+ def change
+ create_table :addresses do |t|
+ t.string :number
+ t.string :street
+ t.string :zip_code
+ t.string :country
+ t.string :city
+
+ t.timestamps
+ end
+ end
+end