Method: Fixation::Fixtures#apply_fixtures

Defined in:
lib/fixation/fixtures.rb

#apply_fixtures(connection = ActiveRecord::Base.connection) ⇒ Object



64
65
66
67
68
69
70
71
# File 'lib/fixation/fixtures.rb', line 64

def apply_fixtures(connection = ActiveRecord::Base.connection)
  connection.disable_referential_integrity do
    connection.transaction do
      apply_fixture_statements(connection)
      clear_other_tables(connection) if Fixation.clear_other_tables
    end
  end
end