Module: FixtureBackground
- Defined in:
- lib/fixture_background/ivars.rb,
lib/fixture_background/version.rb,
lib/fixture_background/generator.rb,
lib/fixture_background/background.rb,
lib/fixture_background/active_support/test_case.rb
Defined Under Namespace
Modules: ActiveSupport Classes: Background, Generator, IVars
Constant Summary collapse
- VERSION =
"0.9.10.1"
Class Method Summary collapse
Class Method Details
.clean_database! ⇒ Object
4 5 6 7 8 |
# File 'lib/fixture_background/background.rb', line 4 def clean_database! (ActiveRecord::Base.connection.tables - ["schema_migrations"]).each do |table_name| ActiveRecord::Base.connection.execute "DELETE FROM #{table_name}" end end |