Sha256: d32eb22024f8eca3c75d8dd8bc4ac5b092294683464356c77be7ea43d4630bdf

Contents?: true

Size: 598 Bytes

Versions: 22

Compression:

Stored size: 598 Bytes

Contents

class AddMoreAddressFieldsToAgent < ActiveRecord::Migration[7.1]
  def change
    remove_column :comee_core_agents, :address, :string
    add_column :comee_core_agents, :address_line1, :string
    add_column :comee_core_agents, :street, :string
    add_column :comee_core_agents, :city, :string
    add_column :comee_core_agents, :state, :string
    add_reference :comee_core_agents,
                  :country,
                  index: {name: "country_on_cca_indx"},
                  foreign_key: {to_table: :comee_core_lookups}
    add_column :comee_core_agents, :postal_code, :string
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
comee_core-0.3.6 db/migrate/20240629160357_add_more_address_fields_to_agent.rb
comee_core-0.3.5 db/migrate/20240629160357_add_more_address_fields_to_agent.rb