diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20171123110204_update_objectid_format_value_to_referentials.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20171123110204_update_objectid_format_value_to_referentials.rb b/db/migrate/20171123110204_update_objectid_format_value_to_referentials.rb index bd498a0ff..c85a63b6e 100644 --- a/db/migrate/20171123110204_update_objectid_format_value_to_referentials.rb +++ b/db/migrate/20171123110204_update_objectid_format_value_to_referentials.rb @@ -1,8 +1,14 @@ class UpdateObjectidFormatValueToReferentials < ActiveRecord::Migration - def change + # Migration in the context of the STIF + # Not a definitive choice since it cannot be used for Chouette + def up Workbench.update_all(objectid_format: 'stif_netex') Referential.update_all(objectid_format: 'stif_netex') LineReferential.update_all(objectid_format: 'stif_codifligne') StopAreaReferential.update_all(objectid_format: 'stif_reflex') end + + def down + raise ActiveRecord::IrreversibleMigration + end end |
