Employer table broken up and new idcard module setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user