2026-03-13 08:47:13 -04:00
|
|
|
class CreateIdCardFieldExceptionItems < ActiveRecord::Migration[7.2]
|
2026-03-05 11:30:24 -05:00
|
|
|
def change
|
2026-03-13 08:47:13 -04:00
|
|
|
create_table :id_card_field_exception_items do |t|
|
2026-03-05 11:30:24 -05:00
|
|
|
t.string :field_name
|
|
|
|
|
t.string :field_value
|
2026-03-13 08:47:13 -04:00
|
|
|
t.belongs_to :field_exception, null: false, foreign_key: { to_table: :id_card_field_exceptions }
|
2026-03-06 10:56:20 -05:00
|
|
|
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 }
|
2026-03-05 11:30:24 -05:00
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|