0.0
No commit activity in last 3 years
No release in over 3 years
Replaces db:test:purge with task that clears but doesn't drop schema'
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

truncate_purge

Install

Rails 3

# Gemfile
gem 'truncate_purge'

Rails 2

# config/environment.rb
config.gem 'truncate_purge'

# Rakefile (at the end)
begin
  require 'truncate_purge' 
rescue Exception => e
  puts "Run rake gems:install to install truncate_purge"
end

Usage

Once installed the db:test:purge rake task gets replaced with a version that clears the database instead of dropping it. This allows you to run rake test against those pesky schemas where you don't have drop permissions.