Before adding workers
This commit is contained in:
+4
-2
@@ -1,12 +1,14 @@
|
||||
class CreateIdCardConfigurations < ActiveRecord::Migration[7.2]
|
||||
class CreateIdCardSetups < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :id_card_configurations do |t|
|
||||
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 }
|
||||
@@ -5,7 +5,7 @@ class CreateIdCardPlans < ActiveRecord::Migration[7.2]
|
||||
t.integer :pb_product_key
|
||||
t.string :pl_plan_key
|
||||
t.boolean :template
|
||||
t.belongs_to :configuration, null: true, foreign_key: { to_table: :id_card_configurations }
|
||||
t.belongs_to :setup, null: true, foreign_key: { to_table: :id_card_setups }
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ class CreateIdCardFieldExceptions < ActiveRecord::Migration[7.2]
|
||||
create_table :id_card_field_exceptions do |t|
|
||||
t.string :exception_type
|
||||
t.string :exception_value
|
||||
t.belongs_to :configuration, null: false, foreign_key: { to_table: :id_card_configurations }
|
||||
t.belongs_to :setup, null: false, foreign_key: { to_table: :id_card_setups }
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user