module DynFork::QPaladins::Fixtures

Overview

Fixtures - To populate the database with pre-created data.
config/fixtures - Directory for creating fixtures.

NOTE How to use, see example.

NOTE How to use, see example.

Direct including types

Defined in:

dynfork/paladins/fixtures.cr

Instance Method Summary

Instance Method Detail

def apply_fixture(fixture_name : String | Nil, collection_ptr : Pointer(Mongo::Collection)) : Nil #

Apply fixture for current Model.

NOTE How to use, see example.

NOTE How to use, see example.

WARNING Runs automatically during Model migration.


[View source]