Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
micrate
v0.2.0
Micrate
Cli
DB
Migration
StatementBuilder
UnorderedMigrationsException
Built with Crystal 1.9.2
2023-10-08 00:53:26 UTC
class
Micrate::Migration
Micrate::Migration
Reference
Object
Defined in:
micrate/migration.cr
Constant Summary
SQL_CMD_PREFIX
=
"-- +micrate "
Constructors
.new
(version : Int64, name : String, source : String)
Class Method Summary
.from_file
(file_name)
.from_version
(version)
Instance Method Summary
#ends_with_semicolon
(s)
#name
: String
#source
: String
#statements
(direction)
#version
: Int64
Constructor Detail
def self.
new
(version : Int64, name : String, source : String)
#
[
View source
]
Class Method Detail
def self.
from_file
(file_name)
#
[
View source
]
def self.
from_version
(version)
#
[
View source
]
Instance Method Detail
def
ends_with_semicolon
(s)
#
[
View source
]
def
name
: String
#
[
View source
]
def
source
: String
#
[
View source
]
def
statements
(direction)
#
[
View source
]
def
version
: Int64
#
[
View source
]