class

Ralph::Cli::Generators::PulledModelGenerator

Inherits Reference / Object

Generates a Ralph model from a database table schema

Constructors

new(table : Schema::DatabaseTable, associations : Array(InferredAssociation), output_dir : String, dialect : Symbol = :sqlite)
Source

Instance methods

generate

Generate and return the result

Source
generate!

Generate and write the file

Source