diff options
| author | Xinhui | 2016-09-09 15:30:11 +0200 | 
|---|---|---|
| committer | Xinhui | 2016-09-09 15:36:33 +0200 | 
| commit | 4f5b086bab1390d3408692890ccd94d1f897dbcb (patch) | |
| tree | cef9d7ace73b1dcf4465fcc62f0f4450cebbd14c /db/migrate | |
| parent | c01628bc90abf553b0ed9c8b88a9c3b194da13b1 (diff) | |
| download | chouette-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.rb | 5 | 
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  | 
