summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-22 17:41:44 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-22 17:41:44 -0600
commit2a4ebeefe505caed3082f1b8017f71841c4242f5 (patch)
tree717b2803142e0247084aa40f38fae31a9efb574d
parentdbb97dbec33ee078f1ba4cc0595f40a951c49648 (diff)
Añade modelo Address
-rw-r--r--app/models/address.rb2
-rw-r--r--db/migrate/20230322234003_create_addresses.rb13
2 files changed, 15 insertions, 0 deletions
diff --git a/app/models/address.rb b/app/models/address.rb
new file mode 100644
index 0000000..a19addc
--- /dev/null
+++ b/app/models/address.rb
@@ -0,0 +1,2 @@
+class Address < ApplicationRecord
+end
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