1 2 3 4 5
class RemoveDevices < ActiveRecord::Migration[5.0] def change drop_table :devices if table_exists?(:devices) end end