diff --git a/db/migrate/20240117023719_add_institutions_saml_sp_entity_id_column.rb b/db/migrate/20240117023719_add_institutions_saml_sp_entity_id_column.rb index 0cc590d4..ef5214eb 100644 --- a/db/migrate/20240117023719_add_institutions_saml_sp_entity_id_column.rb +++ b/db/migrate/20240117023719_add_institutions_saml_sp_entity_id_column.rb @@ -1,5 +1,7 @@ class AddInstitutionsSamlSpEntityIdColumn < ActiveRecord::Migration[7.1] def change - add_column :institutions, :saml_sp_entity_id, :string + unless column_exists?(:institutions, :saml_sp_entity_id) + add_column :institutions, :saml_sp_entity_id, :string + end end end