class Cql::Migrator::MigrationRecord

Overview

Represents a migration record. @field id [Int64] the migration record id @field name [String] the migration name @field version [Int64] the migration version @field created_at [Time] the creation time @field updated_at [Time] the update time Example Creating a migration record

record = Cql::MigrationRecord.new(0_i64, "CreateUsersTable", 1_i64)

Included Modules

Defined in:

migrations.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(id : Int64, name : String, version : Int32, created_at : Time = Time.local, updated_at : Time = Time.local) #

[View source]
def self.new(rs : DB::ResultSet) #

[View source]

Class Method Detail

def self.from_rs(rs : DB::ResultSet) #

[View source]

Instance Method Detail

def created_at : Time #

[View source]
def id : Int64 #

[View source]
def name : String #

[View source]
def updated_at : Time #

[View source]
def version : Int32 #

[View source]