mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
18 lines
493 B
Ruby
18 lines
493 B
Ruby
class CreateMailingAddresses < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :mailing_addresses do |t|
|
|
t.references :user, null: false, foreign_key: true
|
|
t.string :first_name, null: false
|
|
t.string :last_name, null: false
|
|
t.string :zip_code, null: false
|
|
t.string :line_1, null: false
|
|
t.string :line_2
|
|
t.string :city, null: false
|
|
t.string :state, null: false
|
|
t.string :country, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|