Before adding workers

This commit is contained in:
Jason Jordan
2026-03-20 10:46:53 -04:00
parent 3300819ed5
commit a43c8bf6b5
70 changed files with 533 additions and 457 deletions
@@ -0,0 +1,21 @@
class CreateIdCardSetups < ActiveRecord::Migration[7.2]
def change
create_table :id_card_setups do |t|
t.string :print_name
t.string :network_provider
t.string :card_template
t.string :card_color
t.string :rx_group_number
t.string :pl_plan_key
t.boolean :active, default: false
t.boolean :has_divisions, default: false
t.belongs_to :employer, 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
end
end