method
insert_fixture
v8.1.1 -
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 (e.g. 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.