2026-03-20 10:46:53 -04:00
|
|
|
class CreateIdCardSetups < ActiveRecord::Migration[7.2]
|
2026-03-05 11:30:24 -05:00
|
|
|
def change
|
2026-03-20 10:46:53 -04:00
|
|
|
create_table :id_card_setups do |t|
|
2026-03-05 11:30:24 -05:00
|
|
|
t.string :print_name
|
|
|
|
|
t.string :network_provider
|
|
|
|
|
t.string :card_template
|
2026-03-20 10:46:53 -04:00
|
|
|
t.string :card_color
|
2026-03-05 11:30:24 -05:00
|
|
|
t.string :rx_group_number
|
2026-03-13 08:47:13 -04:00
|
|
|
t.string :pl_plan_key
|
2026-03-05 11:30:24 -05:00
|
|
|
t.boolean :active, default: false
|
2026-03-20 10:46:53 -04:00
|
|
|
t.boolean :has_divisions, default: false
|
2026-04-15 08:12:47 -04:00
|
|
|
t.boolean :has_dental, default: false
|
2026-03-05 11:30:24 -05:00
|
|
|
t.belongs_to :employer, null: false, foreign_key: true
|
2026-03-06 10:56:20 -05:00
|
|
|
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 }
|
2026-03-05 11:30:24 -05:00
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|