20180813113448_copy_status_stats_cleanup.rb 337 B

123456789101112
  1. # frozen_string_literal: true
  2. class CopyStatusStatsCleanup < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def change
  5. safety_assured do
  6. remove_column :statuses, :reblogs_count, :integer, default: 0, null: false
  7. remove_column :statuses, :favourites_count, :integer, default: 0, null: false
  8. end
  9. end
  10. end