Marten::DB::Migration
Inherits Marten::DB::Migration::DSL / Marten::Apps::Association / Reference / Object
Constructors
Class methods
Allows to specify whether the whole migration should run inside a single transaction or not.
By default, for databases that support DDL transactions, each migration will run inside a single transaction. This can be disabled on a per-migration basis, which can be useful is the migration is intended to affect large tables or when performing data migrations.
Allows to specify the dependencies of the current migration.
This class method takes an app_name and a migration_name as argument and adds the corresponding migration
to the list of migration dependencies of the current migration.
Allows to specify the migrations the current migration is replacing.
This class method takes an app_name and a migration_name as argument and adds the corresponding migration
to the list of migration replaced by the current migration.