Example Usage
Jeff Madsen edited this page Sep 15, 2016
·
2 revisions
Here's a simple walk through with some notes for the included genscaffolding.yml
models:
Book:
stub: model_default
migration: true
name: Book
table: books
primary_key: book_id
fields:
book_id:
type: increment
title:
type: string
fillable: true
unique: true
url:
type: string
fillable: true
nullable: true
created_at:
type: date
dates : true
Author:
migration: false
name: Author
table: authors
fields:
title:
type: string
fillable: false
url:
type: string
fillable: true
nullable: true
controllers:
Book:
name: Book
Author:
name: Author