Avram::Migrator::Runner
Constants
MIGRATIONS_TABLE_NAME = "migrations"
Constructors
Class methods
cmd_args
Sourcecmd_args_array
Returns the DB connection args used
for postgres in an array so you can pass
them to Process.run
credentials
Sourcedb_host
Sourcedb_name
Sourcedb_password
Sourcedb_port
Sourcedb_user
SourceCreates a new file at dump_to with your database schema,
and includes the migtation data.
migrations
SourceDEPRECATED Calling run with a single string is deprecated. Pass the args as a separate Array
run(command : String, args : Array(String), output : IO = STDOUT, input : Process::Stdio = Process::Redirect::Close)
Sourcesetup_migration_tracking_tables
SourceInstance methods
ensure_migrated!
Sourcerollback_all
Sourcerollback_one
Sourcerun_next_migration
Sourcerun_pending_migrations
Source