class Gen::Migration

Included Modules

Defined in:

avram/tasks/gen/migration.cr

Constant Summary

HABITAT_SETTINGS = [{decl: io : IO = STDOUT, example: nil, validation: nil}] of Nil
PARSER_OPTS = [:migration_name] of Symbol

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Class Method Detail

def self.configure(&) #

[View source]
def self.settings #

[View source]
def self.silence_output(&) #

[View source]
def self.task_help_message : String #

The help text to be displayed when a help flag is passed in (e.g. -h, --help) Use the help_message


[View source]
def self.task_name : String #

The name of your task as derived by the class name Use the .task_name macro to define a custom task name


[View source]
def self.task_summary : String #

By default, task summaries are optional. Use the summary macro to define a custom summary


[View source]

Instance Method Detail

def call #

[View source]
def migration_name : String #

[View source]
def option_parser : OptionParser #

def option_parser=(option_parser : OptionParser) #

def output : IO #

def output=(output : IO) #

def print_help_or_call(args : Array(String)) #

[View source]
def set_opt_for_migration_name(args : Array(String)) #

[View source]
def settings #

[View source]