obdev/db/migrate/20240130051346_update_addre...

11 lines
349 B
Ruby

class UpdateAddressInVendors < ActiveRecord::Migration[7.1]
def change
add_column :vendors, :address_line_1, :string
add_column :vendors, :address_line_2, :string
add_column :vendors, :city, :string
add_column :vendors, :state, :string
add_column :vendors, :zip, :string
remove_column :vendors, :address, :string
end
end