From c9b4393dce76729fed4b7a0fd504a975f33a0bf4 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 17 Jun 2015 14:31:40 -0700 Subject: [PATCH] Fix for iterator --- migrations/069_add_stat_created_indexes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/069_add_stat_created_indexes.rb b/migrations/069_add_stat_created_indexes.rb index bc5a6741..f041c183 100644 --- a/migrations/069_add_stat_created_indexes.rb +++ b/migrations/069_add_stat_created_indexes.rb @@ -1,12 +1,12 @@ Sequel.migration do up { - %i{stat_referrers stat_locations stat_paths} do |t| + %i{stat_referrers stat_locations stat_paths}.each do |t| DB.add_index t, :created_at end } down { - %i{stat_referrers stat_locations stat_paths} do |t| + %i{stat_referrers stat_locations stat_paths}.each do |t| DB.drop_index t, :created_at end }