aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorZog2018-01-31 10:46:02 +0100
committercedricnjanga2018-02-06 11:04:59 -0800
commitaa4fa0970e35920e7e1553112fc2d1f792abe05d (patch)
tree4b3fdfc7dd94d4a1ab19d52f3db270c49379b851 /db
parentc539b09d834476a36804072a92f8c2c373aa487b (diff)
downloadchouette-core-aa4fa0970e35920e7e1553112fc2d1f792abe05d.tar.bz2
Refs #5750; Fix validation
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180126134944_add_kind_to_stop_areas.rb2
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