method
insert_fixture
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::DatabaseStatements
insert_fixture(fixture, table_name)public
Inserts the given fixture into the table. Overridden in adapters that require something beyond a simple insert (eg. Oracle). Most of adapters should implement `insert_fixtures_set` that leverages bulk SQL insert. We keep this method to provide fallback for databases like sqlite that do not support bulk inserts.