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
|
||||
|
||||
@@ -4,7 +4,8 @@ class CreateIdCardPlans < ActiveRecord::Migration[7.2]
|
||||
t.string :title
|
||||
t.integer :pb_product_key
|
||||
t.string :pl_plan_key
|
||||
t.belongs_to :id_card_setup, null: true, foreign_key: true
|
||||
t.boolean :template
|
||||
t.belongs_to :setup, null: true, foreign_key: { to_table: :id_card_setups }
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
@@ -4,7 +4,7 @@ class CreateIdCardPlanBenefits < ActiveRecord::Migration[7.2]
|
||||
t.string :benefit_desc
|
||||
t.string :benefit
|
||||
t.integer :sequence
|
||||
t.belongs_to :id_card_plan, null: false, foreign_key: true
|
||||
t.belongs_to :plan, null: false, foreign_key: { to_table: :id_card_plans }
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ class CreateIdCardExceptions < ActiveRecord::Migration[7.2]
|
||||
create_table :id_card_exceptions do |t|
|
||||
t.string :type
|
||||
t.string :value
|
||||
t.belongs_to :id_card_setup, null: false, foreign_key: true
|
||||
t.belongs_to :setup, null: false, foreign_key: { to_table: :id_card_setups }
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
@@ -3,9 +3,9 @@ class CreateIdCardExceptionItems < ActiveRecord::Migration[7.2]
|
||||
create_table :id_card_exception_items do |t|
|
||||
t.string :field_name
|
||||
t.string :field_value
|
||||
t.belongs_to :id_card_exception, null: false, foreign_key: true
|
||||
t.belongs_to :id_card_network_logo, null: true, foreign_key: true
|
||||
t.belongs_to :id_card_provider_section, null: true, foreign_key: true
|
||||
t.belongs_to :exception, null: false, foreign_key: { to_table: :id_card_exceptions }
|
||||
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.timestamps
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user