class DropUselessTables < ActiveRecord::Migration[6.0]
  def change
    begin
      drop_table :consume_records
    rescue
      puts "Table 'consume_records' not exist, ignore."
    end

    begin
      drop_table :device_agents
    rescue
      puts "Table 'device_agents' not exist, ignore."
    end

    begin
      drop_table :disease_categories
    rescue
      puts "Table 'disease_categories' not exist, ignore."
    end

    begin
      drop_table :stores
    rescue
      puts "Table 'stores' not exist, ignore."
    end
  end
end
