diff --git a/db/migrate/20210726132054_add_business_address_id_to_enterprises.rb b/db/migrate/20210726132054_add_business_address_id_to_enterprises.rb new file mode 100644 index 0000000000..2fc63c138f --- /dev/null +++ b/db/migrate/20210726132054_add_business_address_id_to_enterprises.rb @@ -0,0 +1,5 @@ +class AddBusinessAddressIdToEnterprises < ActiveRecord::Migration[6.1] + def change + add_column :enterprises, :business_address_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 97dd60cf72..8f91507988 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -209,6 +209,7 @@ ActiveRecord::Schema.define(version: 2021_09_27_091723) do t.string "terms_and_conditions_content_type", limit: 255 t.integer "terms_and_conditions_file_size" t.datetime "terms_and_conditions_updated_at" + t.integer "business_address_id" t.index ["address_id"], name: "index_enterprises_on_address_id" t.index ["is_primary_producer", "sells"], name: "index_enterprises_on_is_primary_producer_and_sells" t.index ["name"], name: "index_enterprises_on_name", unique: true