diff options
| author | Zog | 2018-01-31 10:46:02 +0100 |
|---|---|---|
| committer | cedricnjanga | 2018-02-06 11:04:59 -0800 |
| commit | aa4fa0970e35920e7e1553112fc2d1f792abe05d (patch) | |
| tree | 4b3fdfc7dd94d4a1ab19d52f3db270c49379b851 /db | |
| parent | c539b09d834476a36804072a92f8c2c373aa487b (diff) | |
| download | chouette-core-aa4fa0970e35920e7e1553112fc2d1f792abe05d.tar.bz2 | |
Refs #5750; Fix validation
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20180126134944_add_kind_to_stop_areas.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180126134944_add_kind_to_stop_areas.rb b/db/migrate/20180126134944_add_kind_to_stop_areas.rb index 7da227cd9..08f54a6c5 100644 --- a/db/migrate/20180126134944_add_kind_to_stop_areas.rb +++ b/db/migrate/20180126134944_add_kind_to_stop_areas.rb @@ -1,6 +1,6 @@ class AddKindToStopAreas < ActiveRecord::Migration def change add_column :stop_areas, :kind, :string - Chouette::StopArea.update_all kind: :commmercial + Chouette::StopArea.where.not(kind: :non_commercial).update_all kind: :commercial end end |
