class Avram::Migrator::Runner
- Avram::Migrator::Runner
- Reference
- Object
Extended Modules
- LuckyTask::TextHelpers
Defined in:
avram/migrator/runner.crConstant Summary
-
MIGRATIONS_TABLE_NAME =
"migrations"
Constructors
Class Method Summary
- .cmd_args
- .create_db(quiet? : Bool = false)
- .credentials
- .db_host
- .db_name
- .db_password
- .db_port
- .db_user
- .drop_db(quiet? : Bool = false)
-
.dump_db(dump_to : String = "db/structure.sql", quiet : Bool = false)
Creates a new file at
dump_to
with your database schema, and includes the migtation data. - .migrations
- .restore_db(restore_file : String, quiet : Bool = false)
- .run(command : String, output : IO = STDOUT)
- .setup_migration_tracking_tables
Instance Method Summary
- #ensure_migrated!
- #rollback_all
- #rollback_one
- #rollback_to(last_version : Int64)
- #run_next_migration
- #run_pending_migrations
Instance methods inherited from class Object
blank_for_validates_required? : Bool
blank_for_validates_required?
Constructor Detail
Class Method Detail
Creates a new file at dump_to
with your database schema,
and includes the migtation data.