diff options
| author | cedricnjanga | 2017-11-24 12:32:09 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-24 12:32:09 +0100 |
| commit | 4ee768d80cc5374c84ed0b06a43eb4f4bda0f825 (patch) | |
| tree | deea0d202e15a781fba98a5949bd84e879cc533e /db | |
| parent | 5b9351272ec0f02c2c76fd8b3168cbbc6acdedff (diff) | |
| download | chouette-core-4ee768d80cc5374c84ed0b06a43eb4f4bda0f825.tar.bz2 | |
Take into account code review
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 |
