Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/activerecord_unload_all_fixtures.rb
Class Method Summary collapse
Class Method Details
.without_foreign_key_checks ⇒ Object
103 104 105 106 107 108 109 110 |
# File 'lib/activerecord_unload_all_fixtures.rb', line 103 def self.without_foreign_key_checks begin connection.disable_foreign_key_checks yield ensure connection.enable_foreign_key_checks end end |