lib/generators/dry_crud/templates/test/crud_test_model.rb
# Removes the crud_test_models table from the database.
Removes the crud_test_models table from the database.
Removes the crud_test_models table from the database .
def reset_db
    c = ActiveRecord::Base.connection
    [:crud_test_models, :other_crud_test_models, :crud_test_models_other_crud_test_models].each do |table|
      if c.table_exists?(table)
        c.drop_table(table) rescue nil
      end
    end
  end
def reset_db c = ActiveRecord :: Base . connection [ :crud_test_models , :other_crud_test_models , :crud_test_models_other_crud_test_models ] . each do | table | if c . table_exists? ( table ) c . drop_table ( table ) rescue nil end end end
Removes the crud_test_models table from the database.
Removes the crud_test_models table from the database .