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 }