### ----------------------------------------------------
### -- Red
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Correa de Oliveira
### -- File: t/44-error-without-id.rakutest
### ----------------------------------------------------
use Test;

lives-ok {
    use Red:api<2>;

    model Ingredient {
        has Str         $.name      is column;
        has Str         $.unit      is column;
    }

    my $*RED-DB = database "SQLite";
    Ingredient.^create-table;

    my $ingredient = Ingredient.^create:
            :name("Banana"),
            :unit("Unit");
}

done-testing;


