Represents a parsed SQL migration file
Constructors
from_file(filepath :
String) :
Migration Parse a migration file from disk
SourceInstance methods
<=>(other : Migration)
Comparison for sorting (by version)
Sourcedown_sql
Get combined down SQL (for display/debugging)
Sourcedown_statements
SQL statements for the down migration
Sourcefilepath
Full path to the .sql file
Sourcehas_down?
Check if migration has down statements
Sourcehas_up?
Check if migration has up statements
Sourcename
The migration name (derived from filename)
Sourceno_transaction?
Whether to run outside a transaction
Sourceup_sql
Get combined up SQL (for display/debugging)
Sourceup_statements
SQL statements for the up migration
Sourceversion
The migration version (timestamp from filename)
Source