class

Avram::Migrator::Migration::V1

Inherits Avram::Migrator::StatementHelpers < Avram::TableFor < Avram::Migrator::IndexStatementHelpers < Reference < Object

Instance methods

down(quiet = false)

Same as #up except calls rollback method in migration.

Source
migrate
Source
migrated?
Source
pending?
Source
prepared_statements
Source
reset_prepared_statements
Source
rollback
Source
run_in_transaction
Source
up(quiet = false)

Unless already migrated, calls migrate which in turn calls statement helpers to generate and collect SQL statements in the @prepared_statements array. Each statement is then executed in a transaction and tracked upon completion.

Source
version
Source

Macros

unsafe_migration

This macro will tell the migration to run all prepared statements outside of a transaction. This is considered "unsafe" as improper SQL could pose risk to data integrity if not handled correctly

Source

Nested types