Employer table broken up and new idcard module setup

This commit is contained in:
Jason Jordan
2026-03-06 10:56:20 -05:00
parent 8ecabf60ff
commit 6a068243f4
31 changed files with 628 additions and 571 deletions
@@ -7,10 +7,10 @@ class CreateIdCardSetups < ActiveRecord::Migration[7.2]
t.string :rx_group_number
t.boolean :active, default: false
t.belongs_to :employer, null: false, foreign_key: true
t.belongs_to :id_card_employer_logo, null: true, foreign_key: true
t.belongs_to :id_card_network_logo, null: true, foreign_key: true
t.belongs_to :id_card_provider_section, null: false, foreign_key: true
t.belongs_to :id_card_rx_section, null: false, foreign_key: true
t.belongs_to :employer_logo, null: true, foreign_key: { to_table: :id_card_employer_logos }
t.belongs_to :network_logo, null: true, foreign_key: { to_table: :id_card_network_logos }
t.belongs_to :provider_section, null: true, foreign_key: { to_table: :id_card_provider_sections }
t.belongs_to :rx_section, null: true, foreign_key: { to_table: :id_card_rx_sections }
t.timestamps
end