AzuCLI::Generate::Migration
Inherits Teeplate::FileTree < Reference < Object
Migration generator that creates CQL::Migration classes
Constants
OUTPUT_DIR = "./db/migrations"
Constructors
new(name : String, attributes : Hash(String, String), timestamps : Bool = true, id_type : String = "Int64")
SourceInstance methods
__ecr0(____io)
Sourceaction_prefix
Sourceaction_prefix=(action_prefix : String)
Sourceattributes
Sourceattributes=(attributes : Hash(String, String))
Sourceid_type
Sourceid_type=(id_type : String)
Sourcemigration_field_options(attr_type : String, field : String) : String
Get migration field options
should_add_index?(attr_type : String, field : String) : Bool
Check if field should have an index
snake_case_name=(snake_case_name : String)
Sourcetable_name
Sourcetable_name=(table_name : String)
Sourcetable_name_for_template
Sourcetable_name_for_template=(table_name_for_template : String)
Sourcetimestamp
Sourcetimestamp=(timestamp : String)
Sourcetimestamps
Sourcetimestamps=(timestamps : Bool)
Source