class Avram::Migrator::MigrationGenerator

Included Modules

Defined in:

avram/tasks/gen/migration_generator.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Constructor Detail

def self.new(name : String, io : IO, migrate_contents : String, rollback_contents : String) #

[View source]
def self.new(name : String, io : IO) #

[View source]

Instance Method Detail

def formatted_migrate_contents : String | Nil #

[View source]
def formatted_rollback_contents : String | Nil #

[View source]
def generate(_version : Nil | String = @_version) #

[View source]
def io : IO #

[View source]
def name : String #

[View source]
def to_s(__io__ : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]