aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorXinhui2016-09-09 15:30:11 +0200
committerXinhui2016-09-09 15:36:33 +0200
commit4f5b086bab1390d3408692890ccd94d1f897dbcb (patch)
treecef9d7ace73b1dcf4465fcc62f0f4450cebbd14c /db/migrate
parentc01628bc90abf553b0ed9c8b88a9c3b194da13b1 (diff)
downloadchouette-core-4f5b086bab1390d3408692890ccd94d1f897dbcb.tar.bz2
Fix stop_areas#index memory issue + slow query
Refs #1607
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160909130810_add_index_to_stop_areas.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20160909130810_add_index_to_stop_areas.rb b/db/migrate/20160909130810_add_index_to_stop_areas.rb
new file mode 100644
index 000000000..e5d4d2f40
--- /dev/null
+++ b/db/migrate/20160909130810_add_index_to_stop_areas.rb
@@ -0,0 +1,5 @@
+class AddIndexToStopAreas < ActiveRecord::Migration
+ def change
+ add_index :stop_areas, :name
+ end
+end