Avram::Migrator::Migration::V1
Inherits Avram::Migrator::StatementHelpers < Avram::TableFor < Avram::Migrator::IndexStatementHelpers < Reference < Object
Instance methods
migrate
Sourcemigrated?
Sourcepending?
Sourceprepared_statements
Sourcereset_prepared_statements
Sourcerollback
Sourcerun_in_transaction
Sourceup(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.
version
SourceMacros
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