diff --git a/db/migrate/20131210181901_migrate_word_counts.rb b/db/migrate/20131210181901_migrate_word_counts.rb index f5fcd94de..c0c2299c6 100644 --- a/db/migrate/20131210181901_migrate_word_counts.rb +++ b/db/migrate/20131210181901_migrate_word_counts.rb @@ -1,8 +1,7 @@ class MigrateWordCounts < ActiveRecord::Migration + disable_ddl_transaction! + def up - - disable_ddl_transaction - post_ids = execute("SELECT id FROM posts WHERE word_count IS NULL LIMIT 500").map {|r| r['id'].to_i } while post_ids.length > 0 3.times do